[2025-02-22 00:00:05] Production.INFO: next invoice date [2025-02-22 00:00:05] Production.INFO: 2025-03-22 [2025-02-22 00:00:05] Production.INFO: getdaysdiff [2025-02-22 00:00:05] Production.INFO: +28 [2025-02-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,28,28,'RMScheduler',2025-02-22 00:00:05,1,0,,,0) [2025-02-22 00:00:05] Production.INFO: next invoice date [2025-02-22 00:00:05] Production.INFO: 2025-03-22 [2025-02-22 00:00:05] Production.INFO: getdaysdiff [2025-02-22 00:00:05] Production.INFO: +28 [2025-02-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,28,28,'RMScheduler',2025-02-22 00:00:05,1,0,,,0) [2025-02-22 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:00:07 [end_date_ymd] => 2025-02-22 00:00:07 [RateCDR] => 1 ) [2025-02-22 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:00:07' and `end` < '2025-02-22 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:00:19] Production.INFO: count ==1026 [2025-02-22 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 21:00:07 - End Time 2025-02-22 00:00:07 [2025-02-22 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528598', 'tblTempUsageDetail_20' ) start [2025-02-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528598', 'tblTempUsageDetail_20' ) end [2025-02-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528598', 'tblTempVendorCDR_20' ) start [2025-02-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528598', 'tblTempVendorCDR_20' ) end [2025-02-22 00:00:20] Production.INFO: ProcessCDR(1,14528598,1,1,2) [2025-02-22 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528598', 'tblTempUsageDetail_20' ) start [2025-02-22 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528598', 'tblTempUsageDetail_20' ) end [2025-02-22 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:00:27] Production.INFO: ==26842== Releasing lock... [2025-02-22 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:00:27] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:01:06 [end_date_ymd] => 2025-02-22 00:01:06 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:01:06' and `end` < '2025-02-22 00: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-02-22 00:01:18] Production.INFO: count ==1059 [2025-02-22 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:01:06 - End Time 2025-02-22 00:01:06 [2025-02-22 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528604', 'tblTempUsageDetail_20' ) start [2025-02-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528604', 'tblTempUsageDetail_20' ) end [2025-02-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528604', 'tblTempVendorCDR_20' ) start [2025-02-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528604', 'tblTempVendorCDR_20' ) end [2025-02-22 00:01:18] Production.INFO: ProcessCDR(1,14528604,1,1,2) [2025-02-22 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528604', 'tblTempUsageDetail_20' ) start [2025-02-22 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528604', 'tblTempUsageDetail_20' ) end [2025-02-22 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:01:21] Production.INFO: ==26930== Releasing lock... [2025-02-22 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-22 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:02:06 [end_date_ymd] => 2025-02-22 00:02:06 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:02:06' and `end` < '2025-02-22 00: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-02-22 00:02:20] Production.INFO: count ==515 [2025-02-22 00:02:20] Production.ERROR: pbx CDR StartTime 2025-02-21 21:02:06 - End Time 2025-02-22 00:02:06 [2025-02-22 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528609', 'tblTempUsageDetail_20' ) start [2025-02-22 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528609', 'tblTempUsageDetail_20' ) end [2025-02-22 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528609', 'tblTempVendorCDR_20' ) start [2025-02-22 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528609', 'tblTempVendorCDR_20' ) end [2025-02-22 00:02:20] Production.INFO: ProcessCDR(1,14528609,1,1,2) [2025-02-22 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528609', 'tblTempUsageDetail_20' ) start [2025-02-22 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528609', 'tblTempUsageDetail_20' ) end [2025-02-22 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:02:23] Production.INFO: ==27006== Releasing lock... [2025-02-22 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:02:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:03:05 [end_date_ymd] => 2025-02-22 00:03:05 [RateCDR] => 1 ) [2025-02-22 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:03:05' and `end` < '2025-02-22 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:03:17] Production.INFO: count ==513 [2025-02-22 00:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:03:05 - End Time 2025-02-22 00:03:05 [2025-02-22 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528614', 'tblTempUsageDetail_20' ) start [2025-02-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528614', 'tblTempUsageDetail_20' ) end [2025-02-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528614', 'tblTempVendorCDR_20' ) start [2025-02-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528614', 'tblTempVendorCDR_20' ) end [2025-02-22 00:03:17] Production.INFO: ProcessCDR(1,14528614,1,1,2) [2025-02-22 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528614', 'tblTempUsageDetail_20' ) start [2025-02-22 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528614', 'tblTempUsageDetail_20' ) end [2025-02-22 00:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:03:20] Production.INFO: ==27084== Releasing lock... [2025-02-22 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:03:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:04:05 [end_date_ymd] => 2025-02-22 00:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:04:05' and `end` < '2025-02-22 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-02-22 00:04:17] Production.INFO: count ==511 [2025-02-22 00:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:04:05 - End Time 2025-02-22 00:04:05 [2025-02-22 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528619', 'tblTempUsageDetail_20' ) start [2025-02-22 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528619', 'tblTempUsageDetail_20' ) end [2025-02-22 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528619', 'tblTempVendorCDR_20' ) start [2025-02-22 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528619', 'tblTempVendorCDR_20' ) end [2025-02-22 00:04:17] Production.INFO: ProcessCDR(1,14528619,1,1,2) [2025-02-22 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528619', 'tblTempUsageDetail_20' ) start [2025-02-22 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528619', 'tblTempUsageDetail_20' ) end [2025-02-22 00:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:04:20] Production.INFO: ==27185== Releasing lock... [2025-02-22 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:04:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:05:05 [end_date_ymd] => 2025-02-22 00:05:05 [RateCDR] => 1 ) [2025-02-22 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:05:05' and `end` < '2025-02-22 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:05:16] Production.INFO: count ==511 [2025-02-22 00:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:05:05 - End Time 2025-02-22 00:05:05 [2025-02-22 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528623', 'tblTempUsageDetail_20' ) start [2025-02-22 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528623', 'tblTempUsageDetail_20' ) end [2025-02-22 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528623', 'tblTempVendorCDR_20' ) start [2025-02-22 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528623', 'tblTempVendorCDR_20' ) end [2025-02-22 00:05:17] Production.INFO: ProcessCDR(1,14528623,1,1,2) [2025-02-22 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528623', 'tblTempUsageDetail_20' ) start [2025-02-22 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528623', 'tblTempUsageDetail_20' ) end [2025-02-22 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:05:20] Production.INFO: ==27279== Releasing lock... [2025-02-22 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:05:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:06:06 [end_date_ymd] => 2025-02-22 00:06:06 [RateCDR] => 1 ) [2025-02-22 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:06:06' and `end` < '2025-02-22 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:06:18] Production.INFO: count ==506 [2025-02-22 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:06:06 - End Time 2025-02-22 00:06:06 [2025-02-22 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528629', 'tblTempUsageDetail_20' ) start [2025-02-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528629', 'tblTempUsageDetail_20' ) end [2025-02-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528629', 'tblTempVendorCDR_20' ) start [2025-02-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528629', 'tblTempVendorCDR_20' ) end [2025-02-22 00:06:18] Production.INFO: ProcessCDR(1,14528629,1,1,2) [2025-02-22 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528629', 'tblTempUsageDetail_20' ) start [2025-02-22 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528629', 'tblTempUsageDetail_20' ) end [2025-02-22 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:06:21] Production.INFO: ==27360== Releasing lock... [2025-02-22 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:07:05 [end_date_ymd] => 2025-02-22 00:07:05 [RateCDR] => 1 ) [2025-02-22 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:07:05' and `end` < '2025-02-22 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:07:17] Production.INFO: count ==500 [2025-02-22 00:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:07:05 - End Time 2025-02-22 00:07:05 [2025-02-22 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528634', 'tblTempUsageDetail_20' ) start [2025-02-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528634', 'tblTempUsageDetail_20' ) end [2025-02-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528634', 'tblTempVendorCDR_20' ) start [2025-02-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528634', 'tblTempVendorCDR_20' ) end [2025-02-22 00:07:17] Production.INFO: ProcessCDR(1,14528634,1,1,2) [2025-02-22 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528634', 'tblTempUsageDetail_20' ) start [2025-02-22 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528634', 'tblTempUsageDetail_20' ) end [2025-02-22 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:07:20] Production.INFO: ==27438== Releasing lock... [2025-02-22 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:07:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:08:05 [end_date_ymd] => 2025-02-22 00:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:08:05' and `end` < '2025-02-22 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-02-22 00:08:17] Production.INFO: count ==497 [2025-02-22 00:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:08:05 - End Time 2025-02-22 00:08:05 [2025-02-22 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528639', 'tblTempUsageDetail_20' ) start [2025-02-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528639', 'tblTempUsageDetail_20' ) end [2025-02-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528639', 'tblTempVendorCDR_20' ) start [2025-02-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528639', 'tblTempVendorCDR_20' ) end [2025-02-22 00:08:17] Production.INFO: ProcessCDR(1,14528639,1,1,2) [2025-02-22 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528639', 'tblTempUsageDetail_20' ) start [2025-02-22 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528639', 'tblTempUsageDetail_20' ) end [2025-02-22 00:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:08:20] Production.INFO: ==27556== Releasing lock... [2025-02-22 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:08:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:09:05 [end_date_ymd] => 2025-02-22 00:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:09:05' and `end` < '2025-02-22 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-02-22 00:09:17] Production.INFO: count ==497 [2025-02-22 00:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:09:05 - End Time 2025-02-22 00:09:05 [2025-02-22 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528644', 'tblTempUsageDetail_20' ) start [2025-02-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528644', 'tblTempUsageDetail_20' ) end [2025-02-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528644', 'tblTempVendorCDR_20' ) start [2025-02-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528644', 'tblTempVendorCDR_20' ) end [2025-02-22 00:09:17] Production.INFO: ProcessCDR(1,14528644,1,1,2) [2025-02-22 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528644', 'tblTempUsageDetail_20' ) start [2025-02-22 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528644', 'tblTempUsageDetail_20' ) end [2025-02-22 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:09:20] Production.INFO: ==27674== Releasing lock... [2025-02-22 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:09:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:10:06 [end_date_ymd] => 2025-02-22 00:10:06 [RateCDR] => 1 ) [2025-02-22 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:10:06' and `end` < '2025-02-22 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:10:18] Production.INFO: count ==506 [2025-02-22 00:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:10:06 - End Time 2025-02-22 00:10:06 [2025-02-22 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528650', 'tblTempUsageDetail_20' ) start [2025-02-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528650', 'tblTempUsageDetail_20' ) end [2025-02-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528650', 'tblTempVendorCDR_20' ) start [2025-02-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528650', 'tblTempVendorCDR_20' ) end [2025-02-22 00:10:18] Production.INFO: ProcessCDR(1,14528650,1,1,2) [2025-02-22 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528650', 'tblTempUsageDetail_20' ) start [2025-02-22 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528650', 'tblTempUsageDetail_20' ) end [2025-02-22 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:10:23] Production.INFO: ==27762== Releasing lock... [2025-02-22 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:10:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:11:05 [end_date_ymd] => 2025-02-22 00:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:11:05' and `end` < '2025-02-22 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-02-22 00:11:17] Production.INFO: count ==521 [2025-02-22 00:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:11:05 - End Time 2025-02-22 00:11:05 [2025-02-22 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528655', 'tblTempUsageDetail_20' ) start [2025-02-22 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528655', 'tblTempUsageDetail_20' ) end [2025-02-22 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528655', 'tblTempVendorCDR_20' ) start [2025-02-22 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528655', 'tblTempVendorCDR_20' ) end [2025-02-22 00:11:17] Production.INFO: ProcessCDR(1,14528655,1,1,2) [2025-02-22 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528655', 'tblTempUsageDetail_20' ) start [2025-02-22 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528655', 'tblTempUsageDetail_20' ) end [2025-02-22 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:11:20] Production.INFO: ==27845== Releasing lock... [2025-02-22 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:11:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:12:05 [end_date_ymd] => 2025-02-22 00:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:12:05' and `end` < '2025-02-22 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-02-22 00:12:18] Production.INFO: count ==515 [2025-02-22 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:12:05 - End Time 2025-02-22 00:12:05 [2025-02-22 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528660', 'tblTempUsageDetail_20' ) start [2025-02-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528660', 'tblTempUsageDetail_20' ) end [2025-02-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528660', 'tblTempVendorCDR_20' ) start [2025-02-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528660', 'tblTempVendorCDR_20' ) end [2025-02-22 00:12:18] Production.INFO: ProcessCDR(1,14528660,1,1,2) [2025-02-22 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528660', 'tblTempUsageDetail_20' ) start [2025-02-22 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528660', 'tblTempUsageDetail_20' ) end [2025-02-22 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:12:22] Production.INFO: ==27922== Releasing lock... [2025-02-22 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:12:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:13:04 [end_date_ymd] => 2025-02-22 00:13:04 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:13:04' and `end` < '2025-02-22 00: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-02-22 00:13:17] Production.INFO: count ==514 [2025-02-22 00:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:13:04 - End Time 2025-02-22 00:13:04 [2025-02-22 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528665', 'tblTempUsageDetail_20' ) start [2025-02-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528665', 'tblTempUsageDetail_20' ) end [2025-02-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528665', 'tblTempVendorCDR_20' ) start [2025-02-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528665', 'tblTempVendorCDR_20' ) end [2025-02-22 00:13:17] Production.INFO: ProcessCDR(1,14528665,1,1,2) [2025-02-22 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528665', 'tblTempUsageDetail_20' ) start [2025-02-22 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528665', 'tblTempUsageDetail_20' ) end [2025-02-22 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:13:20] Production.INFO: ==28001== Releasing lock... [2025-02-22 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:13:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:14:05 [end_date_ymd] => 2025-02-22 00:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:14:05' and `end` < '2025-02-22 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-02-22 00:14:17] Production.INFO: count ==514 [2025-02-22 00:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:14:05 - End Time 2025-02-22 00:14:05 [2025-02-22 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528670', 'tblTempUsageDetail_20' ) start [2025-02-22 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528670', 'tblTempUsageDetail_20' ) end [2025-02-22 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528670', 'tblTempVendorCDR_20' ) start [2025-02-22 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528670', 'tblTempVendorCDR_20' ) end [2025-02-22 00:14:17] Production.INFO: ProcessCDR(1,14528670,1,1,2) [2025-02-22 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528670', 'tblTempUsageDetail_20' ) start [2025-02-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528670', 'tblTempUsageDetail_20' ) end [2025-02-22 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:14:21] Production.INFO: ==28075== Releasing lock... [2025-02-22 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:14:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:15:05 [end_date_ymd] => 2025-02-22 00:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:15:05' and `end` < '2025-02-22 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-02-22 00:15:17] Production.INFO: count ==507 [2025-02-22 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:15:05 - End Time 2025-02-22 00:15:05 [2025-02-22 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528675', 'tblTempUsageDetail_20' ) start [2025-02-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528675', 'tblTempUsageDetail_20' ) end [2025-02-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528675', 'tblTempVendorCDR_20' ) start [2025-02-22 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528675', 'tblTempVendorCDR_20' ) end [2025-02-22 00:15:18] Production.INFO: ProcessCDR(1,14528675,1,1,2) [2025-02-22 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528675', 'tblTempUsageDetail_20' ) start [2025-02-22 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528675', 'tblTempUsageDetail_20' ) end [2025-02-22 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:15:21] Production.INFO: ==28155== Releasing lock... [2025-02-22 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:16:05 [end_date_ymd] => 2025-02-22 00:16:05 [RateCDR] => 1 ) [2025-02-22 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:16:05' and `end` < '2025-02-22 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:16:17] Production.INFO: count ==499 [2025-02-22 00:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:16:05 - End Time 2025-02-22 00:16:05 [2025-02-22 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528680', 'tblTempUsageDetail_20' ) start [2025-02-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528680', 'tblTempUsageDetail_20' ) end [2025-02-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528680', 'tblTempVendorCDR_20' ) start [2025-02-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528680', 'tblTempVendorCDR_20' ) end [2025-02-22 00:16:17] Production.INFO: ProcessCDR(1,14528680,1,1,2) [2025-02-22 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528680', 'tblTempUsageDetail_20' ) start [2025-02-22 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528680', 'tblTempUsageDetail_20' ) end [2025-02-22 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:16:20] Production.INFO: ==28237== Releasing lock... [2025-02-22 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:16:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:17:05 [end_date_ymd] => 2025-02-22 00:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:17:05' and `end` < '2025-02-22 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-02-22 00:17:17] Production.INFO: count ==489 [2025-02-22 00:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:17:05 - End Time 2025-02-22 00:17:05 [2025-02-22 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528685', 'tblTempUsageDetail_20' ) start [2025-02-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528685', 'tblTempUsageDetail_20' ) end [2025-02-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528685', 'tblTempVendorCDR_20' ) start [2025-02-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528685', 'tblTempVendorCDR_20' ) end [2025-02-22 00:17:17] Production.INFO: ProcessCDR(1,14528685,1,1,2) [2025-02-22 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528685', 'tblTempUsageDetail_20' ) start [2025-02-22 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528685', 'tblTempUsageDetail_20' ) end [2025-02-22 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:17:20] Production.INFO: ==28318== Releasing lock... [2025-02-22 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:17:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:18:05 [end_date_ymd] => 2025-02-22 00:18:05 [RateCDR] => 1 ) [2025-02-22 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:18:05' and `end` < '2025-02-22 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:18:17] Production.INFO: count ==482 [2025-02-22 00:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:18:05 - End Time 2025-02-22 00:18:05 [2025-02-22 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528690', 'tblTempUsageDetail_20' ) start [2025-02-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528690', 'tblTempUsageDetail_20' ) end [2025-02-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528690', 'tblTempVendorCDR_20' ) start [2025-02-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528690', 'tblTempVendorCDR_20' ) end [2025-02-22 00:18:17] Production.INFO: ProcessCDR(1,14528690,1,1,2) [2025-02-22 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528690', 'tblTempUsageDetail_20' ) start [2025-02-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528690', 'tblTempUsageDetail_20' ) end [2025-02-22 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:18:22] Production.INFO: ==28406== Releasing lock... [2025-02-22 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:19:05 [end_date_ymd] => 2025-02-22 00:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:19:05' and `end` < '2025-02-22 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-02-22 00:19:17] Production.INFO: count ==479 [2025-02-22 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:19:05 - End Time 2025-02-22 00:19:05 [2025-02-22 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528695', 'tblTempUsageDetail_20' ) start [2025-02-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528695', 'tblTempUsageDetail_20' ) end [2025-02-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528695', 'tblTempVendorCDR_20' ) start [2025-02-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528695', 'tblTempVendorCDR_20' ) end [2025-02-22 00:19:17] Production.INFO: ProcessCDR(1,14528695,1,1,2) [2025-02-22 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528695', 'tblTempUsageDetail_20' ) start [2025-02-22 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528695', 'tblTempUsageDetail_20' ) end [2025-02-22 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:19:22] Production.INFO: ==28484== Releasing lock... [2025-02-22 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:19:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:20:06 [end_date_ymd] => 2025-02-22 00:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:20:06' and `end` < '2025-02-22 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-02-22 00:20:18] Production.INFO: count ==482 [2025-02-22 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:20:06 - End Time 2025-02-22 00:20:06 [2025-02-22 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528701', 'tblTempUsageDetail_20' ) start [2025-02-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528701', 'tblTempUsageDetail_20' ) end [2025-02-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528701', 'tblTempVendorCDR_20' ) start [2025-02-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528701', 'tblTempVendorCDR_20' ) end [2025-02-22 00:20:18] Production.INFO: ProcessCDR(1,14528701,1,1,2) [2025-02-22 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528701', 'tblTempUsageDetail_20' ) start [2025-02-22 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528701', 'tblTempUsageDetail_20' ) end [2025-02-22 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:20:22] Production.INFO: ==28615== Releasing lock... [2025-02-22 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:21:06 [end_date_ymd] => 2025-02-22 00:21:06 [RateCDR] => 1 ) [2025-02-22 00:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:21:06' and `end` < '2025-02-22 00:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:21:18] Production.INFO: count ==518 [2025-02-22 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:21:06 - End Time 2025-02-22 00:21:06 [2025-02-22 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528706', 'tblTempUsageDetail_20' ) start [2025-02-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528706', 'tblTempUsageDetail_20' ) end [2025-02-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528706', 'tblTempVendorCDR_20' ) start [2025-02-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528706', 'tblTempVendorCDR_20' ) end [2025-02-22 00:21:18] Production.INFO: ProcessCDR(1,14528706,1,1,2) [2025-02-22 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528706', 'tblTempUsageDetail_20' ) start [2025-02-22 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528706', 'tblTempUsageDetail_20' ) end [2025-02-22 00:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:21:23] Production.INFO: ==28697== Releasing lock... [2025-02-22 00:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:21:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:22:05 [end_date_ymd] => 2025-02-22 00:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:22:05' and `end` < '2025-02-22 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-02-22 00:22:17] Production.INFO: count ==508 [2025-02-22 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:22:05 - End Time 2025-02-22 00:22:05 [2025-02-22 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528711', 'tblTempUsageDetail_20' ) start [2025-02-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528711', 'tblTempUsageDetail_20' ) end [2025-02-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528711', 'tblTempVendorCDR_20' ) start [2025-02-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528711', 'tblTempVendorCDR_20' ) end [2025-02-22 00:22:17] Production.INFO: ProcessCDR(1,14528711,1,1,2) [2025-02-22 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528711', 'tblTempUsageDetail_20' ) start [2025-02-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528711', 'tblTempUsageDetail_20' ) end [2025-02-22 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:22:21] Production.INFO: ==28780== Releasing lock... [2025-02-22 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:23:06 [end_date_ymd] => 2025-02-22 00:23:06 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:23:06' and `end` < '2025-02-22 00: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-02-22 00:23:18] Production.INFO: count ==505 [2025-02-22 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:23:06 - End Time 2025-02-22 00:23:06 [2025-02-22 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528716', 'tblTempUsageDetail_20' ) start [2025-02-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528716', 'tblTempUsageDetail_20' ) end [2025-02-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528716', 'tblTempVendorCDR_20' ) start [2025-02-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528716', 'tblTempVendorCDR_20' ) end [2025-02-22 00:23:18] Production.INFO: ProcessCDR(1,14528716,1,1,2) [2025-02-22 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528716', 'tblTempUsageDetail_20' ) start [2025-02-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528716', 'tblTempUsageDetail_20' ) end [2025-02-22 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:23:21] Production.INFO: ==28856== Releasing lock... [2025-02-22 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:24:05 [end_date_ymd] => 2025-02-22 00:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:24:05' and `end` < '2025-02-22 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-02-22 00:24:17] Production.INFO: count ==505 [2025-02-22 00:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:24:05 - End Time 2025-02-22 00:24:05 [2025-02-22 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528721', 'tblTempUsageDetail_20' ) start [2025-02-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528721', 'tblTempUsageDetail_20' ) end [2025-02-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528721', 'tblTempVendorCDR_20' ) start [2025-02-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528721', 'tblTempVendorCDR_20' ) end [2025-02-22 00:24:17] Production.INFO: ProcessCDR(1,14528721,1,1,2) [2025-02-22 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528721', 'tblTempUsageDetail_20' ) start [2025-02-22 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528721', 'tblTempUsageDetail_20' ) end [2025-02-22 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:24:20] Production.INFO: ==28932== Releasing lock... [2025-02-22 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:24:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:25:06 [end_date_ymd] => 2025-02-22 00:25:06 [RateCDR] => 1 ) [2025-02-22 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:25:06' and `end` < '2025-02-22 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:25:17] Production.INFO: count ==513 [2025-02-22 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:25:06 - End Time 2025-02-22 00:25:06 [2025-02-22 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528726', 'tblTempUsageDetail_20' ) start [2025-02-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528726', 'tblTempUsageDetail_20' ) end [2025-02-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528726', 'tblTempVendorCDR_20' ) start [2025-02-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528726', 'tblTempVendorCDR_20' ) end [2025-02-22 00:25:18] Production.INFO: ProcessCDR(1,14528726,1,1,2) [2025-02-22 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528726', 'tblTempUsageDetail_20' ) start [2025-02-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528726', 'tblTempUsageDetail_20' ) end [2025-02-22 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:25:21] Production.INFO: ==29012== Releasing lock... [2025-02-22 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:26:05 [end_date_ymd] => 2025-02-22 00:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:26:05' and `end` < '2025-02-22 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-02-22 00:26:17] Production.INFO: count ==513 [2025-02-22 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:26:05 - End Time 2025-02-22 00:26:05 [2025-02-22 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528731', 'tblTempUsageDetail_20' ) start [2025-02-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528731', 'tblTempUsageDetail_20' ) end [2025-02-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528731', 'tblTempVendorCDR_20' ) start [2025-02-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528731', 'tblTempVendorCDR_20' ) end [2025-02-22 00:26:17] Production.INFO: ProcessCDR(1,14528731,1,1,2) [2025-02-22 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528731', 'tblTempUsageDetail_20' ) start [2025-02-22 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528731', 'tblTempUsageDetail_20' ) end [2025-02-22 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:26:22] Production.INFO: ==29089== Releasing lock... [2025-02-22 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:26:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:27:06 [end_date_ymd] => 2025-02-22 00:27:06 [RateCDR] => 1 ) [2025-02-22 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:27:06' and `end` < '2025-02-22 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:27:18] Production.INFO: count ==509 [2025-02-22 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:27:06 - End Time 2025-02-22 00:27:06 [2025-02-22 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528736', 'tblTempUsageDetail_20' ) start [2025-02-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528736', 'tblTempUsageDetail_20' ) end [2025-02-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528736', 'tblTempVendorCDR_20' ) start [2025-02-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528736', 'tblTempVendorCDR_20' ) end [2025-02-22 00:27:18] Production.INFO: ProcessCDR(1,14528736,1,1,2) [2025-02-22 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528736', 'tblTempUsageDetail_20' ) start [2025-02-22 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528736', 'tblTempUsageDetail_20' ) end [2025-02-22 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:27:23] Production.INFO: ==29167== Releasing lock... [2025-02-22 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:27:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:28:05 [end_date_ymd] => 2025-02-22 00:28:05 [RateCDR] => 1 ) [2025-02-22 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:28:05' and `end` < '2025-02-22 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:28:17] Production.INFO: count ==506 [2025-02-22 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:28:05 - End Time 2025-02-22 00:28:05 [2025-02-22 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528741', 'tblTempUsageDetail_20' ) start [2025-02-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528741', 'tblTempUsageDetail_20' ) end [2025-02-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528741', 'tblTempVendorCDR_20' ) start [2025-02-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528741', 'tblTempVendorCDR_20' ) end [2025-02-22 00:28:17] Production.INFO: ProcessCDR(1,14528741,1,1,2) [2025-02-22 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528741', 'tblTempUsageDetail_20' ) start [2025-02-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528741', 'tblTempUsageDetail_20' ) end [2025-02-22 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:28:20] Production.INFO: ==29252== Releasing lock... [2025-02-22 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:28:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:29:05 [end_date_ymd] => 2025-02-22 00:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:29:05' and `end` < '2025-02-22 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-02-22 00:29:16] Production.INFO: count ==507 [2025-02-22 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:29:05 - End Time 2025-02-22 00:29:05 [2025-02-22 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528746', 'tblTempUsageDetail_20' ) start [2025-02-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528746', 'tblTempUsageDetail_20' ) end [2025-02-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528746', 'tblTempVendorCDR_20' ) start [2025-02-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528746', 'tblTempVendorCDR_20' ) end [2025-02-22 00:29:17] Production.INFO: ProcessCDR(1,14528746,1,1,2) [2025-02-22 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528746', 'tblTempUsageDetail_20' ) start [2025-02-22 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528746', 'tblTempUsageDetail_20' ) end [2025-02-22 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:29:22] Production.INFO: ==29328== Releasing lock... [2025-02-22 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:30:07 [end_date_ymd] => 2025-02-22 00:30:07 [RateCDR] => 1 ) [2025-02-22 00:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:30:07' and `end` < '2025-02-22 00:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:30:19] Production.INFO: count ==512 [2025-02-22 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 21:30:07 - End Time 2025-02-22 00:30:07 [2025-02-22 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528752', 'tblTempUsageDetail_20' ) start [2025-02-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528752', 'tblTempUsageDetail_20' ) end [2025-02-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528752', 'tblTempVendorCDR_20' ) start [2025-02-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528752', 'tblTempVendorCDR_20' ) end [2025-02-22 00:30:19] Production.INFO: ProcessCDR(1,14528752,1,1,2) [2025-02-22 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528752', 'tblTempUsageDetail_20' ) start [2025-02-22 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528752', 'tblTempUsageDetail_20' ) end [2025-02-22 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:30:22] Production.INFO: ==29424== Releasing lock... [2025-02-22 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:31:05 [end_date_ymd] => 2025-02-22 00:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:31:05' and `end` < '2025-02-22 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-02-22 00:31:17] Production.INFO: count ==542 [2025-02-22 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:31:05 - End Time 2025-02-22 00:31:05 [2025-02-22 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528757', 'tblTempUsageDetail_20' ) start [2025-02-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528757', 'tblTempUsageDetail_20' ) end [2025-02-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528757', 'tblTempVendorCDR_20' ) start [2025-02-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528757', 'tblTempVendorCDR_20' ) end [2025-02-22 00:31:17] Production.INFO: ProcessCDR(1,14528757,1,1,2) [2025-02-22 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528757', 'tblTempUsageDetail_20' ) start [2025-02-22 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528757', 'tblTempUsageDetail_20' ) end [2025-02-22 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:31:22] Production.INFO: ==29519== Releasing lock... [2025-02-22 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:32:05 [end_date_ymd] => 2025-02-22 00:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:32:05' and `end` < '2025-02-22 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-02-22 00:32:17] Production.INFO: count ==542 [2025-02-22 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:32:05 - End Time 2025-02-22 00:32:05 [2025-02-22 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528762', 'tblTempUsageDetail_20' ) start [2025-02-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528762', 'tblTempUsageDetail_20' ) end [2025-02-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528762', 'tblTempVendorCDR_20' ) start [2025-02-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528762', 'tblTempVendorCDR_20' ) end [2025-02-22 00:32:17] Production.INFO: ProcessCDR(1,14528762,1,1,2) [2025-02-22 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528762', 'tblTempUsageDetail_20' ) start [2025-02-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528762', 'tblTempUsageDetail_20' ) end [2025-02-22 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:32:21] Production.INFO: ==29610== Releasing lock... [2025-02-22 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:33:05 [end_date_ymd] => 2025-02-22 00:33:05 [RateCDR] => 1 ) [2025-02-22 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:33:05' and `end` < '2025-02-22 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:33:17] Production.INFO: count ==542 [2025-02-22 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:33:05 - End Time 2025-02-22 00:33:05 [2025-02-22 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528767', 'tblTempUsageDetail_20' ) start [2025-02-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528767', 'tblTempUsageDetail_20' ) end [2025-02-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528767', 'tblTempVendorCDR_20' ) start [2025-02-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528767', 'tblTempVendorCDR_20' ) end [2025-02-22 00:33:17] Production.INFO: ProcessCDR(1,14528767,1,1,2) [2025-02-22 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528767', 'tblTempUsageDetail_20' ) start [2025-02-22 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528767', 'tblTempUsageDetail_20' ) end [2025-02-22 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:33:20] Production.INFO: ==29704== Releasing lock... [2025-02-22 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:33:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:34:06 [end_date_ymd] => 2025-02-22 00:34:06 [RateCDR] => 1 ) [2025-02-22 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:34:06' and `end` < '2025-02-22 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:34:17] Production.INFO: count ==534 [2025-02-22 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:34:06 - End Time 2025-02-22 00:34:06 [2025-02-22 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528772', 'tblTempUsageDetail_20' ) start [2025-02-22 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528772', 'tblTempUsageDetail_20' ) end [2025-02-22 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528772', 'tblTempVendorCDR_20' ) start [2025-02-22 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528772', 'tblTempVendorCDR_20' ) end [2025-02-22 00:34:18] Production.INFO: ProcessCDR(1,14528772,1,1,2) [2025-02-22 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528772', 'tblTempUsageDetail_20' ) start [2025-02-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528772', 'tblTempUsageDetail_20' ) end [2025-02-22 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:34:21] Production.INFO: ==29801== Releasing lock... [2025-02-22 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:35:04 [end_date_ymd] => 2025-02-22 00:35:04 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:35:04' and `end` < '2025-02-22 00: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-02-22 00:35:16] Production.INFO: count ==524 [2025-02-22 00:35:16] Production.ERROR: pbx CDR StartTime 2025-02-21 21:35:04 - End Time 2025-02-22 00:35:04 [2025-02-22 00:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528773', 'tblTempUsageDetail_20' ) start [2025-02-22 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528773', 'tblTempUsageDetail_20' ) end [2025-02-22 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528773', 'tblTempVendorCDR_20' ) start [2025-02-22 00:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528773', 'tblTempVendorCDR_20' ) end [2025-02-22 00:35:16] Production.INFO: ProcessCDR(1,14528773,1,1,2) [2025-02-22 00:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528773', 'tblTempUsageDetail_20' ) start [2025-02-22 00:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528773', 'tblTempUsageDetail_20' ) end [2025-02-22 00:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:35:19] Production.INFO: ==29936== Releasing lock... [2025-02-22 00:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:35:19] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:36:05 [end_date_ymd] => 2025-02-22 00:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:36:05' and `end` < '2025-02-22 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-02-22 00:36:17] Production.INFO: count ==526 [2025-02-22 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:36:05 - End Time 2025-02-22 00:36:05 [2025-02-22 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528782', 'tblTempUsageDetail_20' ) start [2025-02-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528782', 'tblTempUsageDetail_20' ) end [2025-02-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528782', 'tblTempVendorCDR_20' ) start [2025-02-22 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528782', 'tblTempVendorCDR_20' ) end [2025-02-22 00:36:17] Production.INFO: ProcessCDR(1,14528782,1,1,2) [2025-02-22 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528782', 'tblTempUsageDetail_20' ) start [2025-02-22 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528782', 'tblTempUsageDetail_20' ) end [2025-02-22 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:36:22] Production.INFO: ==30035== Releasing lock... [2025-02-22 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:37:05 [end_date_ymd] => 2025-02-22 00:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:37:05' and `end` < '2025-02-22 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-02-22 00:37:16] Production.INFO: count ==525 [2025-02-22 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:37:05 - End Time 2025-02-22 00:37:05 [2025-02-22 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528787', 'tblTempUsageDetail_20' ) start [2025-02-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528787', 'tblTempUsageDetail_20' ) end [2025-02-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528787', 'tblTempVendorCDR_20' ) start [2025-02-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528787', 'tblTempVendorCDR_20' ) end [2025-02-22 00:37:17] Production.INFO: ProcessCDR(1,14528787,1,1,2) [2025-02-22 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528787', 'tblTempUsageDetail_20' ) start [2025-02-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528787', 'tblTempUsageDetail_20' ) end [2025-02-22 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:37:20] Production.INFO: ==30130== Releasing lock... [2025-02-22 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:37:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:38:05 [end_date_ymd] => 2025-02-22 00:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:38:05' and `end` < '2025-02-22 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-02-22 00:38:17] Production.INFO: count ==520 [2025-02-22 00:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:38:05 - End Time 2025-02-22 00:38:05 [2025-02-22 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528792', 'tblTempUsageDetail_20' ) start [2025-02-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528792', 'tblTempUsageDetail_20' ) end [2025-02-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528792', 'tblTempVendorCDR_20' ) start [2025-02-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528792', 'tblTempVendorCDR_20' ) end [2025-02-22 00:38:17] Production.INFO: ProcessCDR(1,14528792,1,1,2) [2025-02-22 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528792', 'tblTempUsageDetail_20' ) start [2025-02-22 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528792', 'tblTempUsageDetail_20' ) end [2025-02-22 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:38:20] Production.INFO: ==30222== Releasing lock... [2025-02-22 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:39:05 [end_date_ymd] => 2025-02-22 00:39:05 [RateCDR] => 1 ) [2025-02-22 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:39:05' and `end` < '2025-02-22 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:39:17] Production.INFO: count ==525 [2025-02-22 00:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:39:05 - End Time 2025-02-22 00:39:05 [2025-02-22 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528797', 'tblTempUsageDetail_20' ) start [2025-02-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528797', 'tblTempUsageDetail_20' ) end [2025-02-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528797', 'tblTempVendorCDR_20' ) start [2025-02-22 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528797', 'tblTempVendorCDR_20' ) end [2025-02-22 00:39:17] Production.INFO: ProcessCDR(1,14528797,1,1,2) [2025-02-22 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528797', 'tblTempUsageDetail_20' ) start [2025-02-22 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528797', 'tblTempUsageDetail_20' ) end [2025-02-22 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:39:22] Production.INFO: ==30318== Releasing lock... [2025-02-22 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:39:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:40:06 [end_date_ymd] => 2025-02-22 00:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:40:06' and `end` < '2025-02-22 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-02-22 00:40:18] Production.INFO: count ==533 [2025-02-22 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:40:06 - End Time 2025-02-22 00:40:06 [2025-02-22 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528803', 'tblTempUsageDetail_20' ) start [2025-02-22 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528803', 'tblTempUsageDetail_20' ) end [2025-02-22 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528803', 'tblTempVendorCDR_20' ) start [2025-02-22 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528803', 'tblTempVendorCDR_20' ) end [2025-02-22 00:40:18] Production.INFO: ProcessCDR(1,14528803,1,1,2) [2025-02-22 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528803', 'tblTempUsageDetail_20' ) start [2025-02-22 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528803', 'tblTempUsageDetail_20' ) end [2025-02-22 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:40:21] Production.INFO: ==30411== Releasing lock... [2025-02-22 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:40:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:41:05 [end_date_ymd] => 2025-02-22 00:41:05 [RateCDR] => 1 ) [2025-02-22 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:41:05' and `end` < '2025-02-22 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:41:17] Production.INFO: count ==556 [2025-02-22 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:41:05 - End Time 2025-02-22 00:41:05 [2025-02-22 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528808', 'tblTempUsageDetail_20' ) start [2025-02-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528808', 'tblTempUsageDetail_20' ) end [2025-02-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528808', 'tblTempVendorCDR_20' ) start [2025-02-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528808', 'tblTempVendorCDR_20' ) end [2025-02-22 00:41:17] Production.INFO: ProcessCDR(1,14528808,1,1,2) [2025-02-22 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528808', 'tblTempUsageDetail_20' ) start [2025-02-22 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528808', 'tblTempUsageDetail_20' ) end [2025-02-22 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:41:20] Production.INFO: ==30508== Releasing lock... [2025-02-22 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:41:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:42:05 [end_date_ymd] => 2025-02-22 00:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:42:05' and `end` < '2025-02-22 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-02-22 00:42:17] Production.INFO: count ==555 [2025-02-22 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:42:05 - End Time 2025-02-22 00:42:05 [2025-02-22 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528813', 'tblTempUsageDetail_20' ) start [2025-02-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528813', 'tblTempUsageDetail_20' ) end [2025-02-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528813', 'tblTempVendorCDR_20' ) start [2025-02-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528813', 'tblTempVendorCDR_20' ) end [2025-02-22 00:42:17] Production.INFO: ProcessCDR(1,14528813,1,1,2) [2025-02-22 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528813', 'tblTempUsageDetail_20' ) start [2025-02-22 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528813', 'tblTempUsageDetail_20' ) end [2025-02-22 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:42:20] Production.INFO: ==30597== Releasing lock... [2025-02-22 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:42:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:43:06 [end_date_ymd] => 2025-02-22 00:43:06 [RateCDR] => 1 ) [2025-02-22 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:43:06' and `end` < '2025-02-22 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:43:17] Production.INFO: count ==555 [2025-02-22 00:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:43:06 - End Time 2025-02-22 00:43:06 [2025-02-22 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528818', 'tblTempUsageDetail_20' ) start [2025-02-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528818', 'tblTempUsageDetail_20' ) end [2025-02-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528818', 'tblTempVendorCDR_20' ) start [2025-02-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528818', 'tblTempVendorCDR_20' ) end [2025-02-22 00:43:18] Production.INFO: ProcessCDR(1,14528818,1,1,2) [2025-02-22 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528818', 'tblTempUsageDetail_20' ) start [2025-02-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528818', 'tblTempUsageDetail_20' ) end [2025-02-22 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:43:21] Production.INFO: ==30690== Releasing lock... [2025-02-22 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:43:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:44:05 [end_date_ymd] => 2025-02-22 00:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:44:05' and `end` < '2025-02-22 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-02-22 00:44:17] Production.INFO: count ==552 [2025-02-22 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:44:05 - End Time 2025-02-22 00:44:05 [2025-02-22 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528823', 'tblTempUsageDetail_20' ) start [2025-02-22 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528823', 'tblTempUsageDetail_20' ) end [2025-02-22 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528823', 'tblTempVendorCDR_20' ) start [2025-02-22 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528823', 'tblTempVendorCDR_20' ) end [2025-02-22 00:44:17] Production.INFO: ProcessCDR(1,14528823,1,1,2) [2025-02-22 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528823', 'tblTempUsageDetail_20' ) start [2025-02-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528823', 'tblTempUsageDetail_20' ) end [2025-02-22 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:44:21] Production.INFO: ==30784== Releasing lock... [2025-02-22 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:45:06 [end_date_ymd] => 2025-02-22 00:45:06 [RateCDR] => 1 ) [2025-02-22 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:45:06' and `end` < '2025-02-22 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:45:18] Production.INFO: count ==551 [2025-02-22 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:45:06 - End Time 2025-02-22 00:45:06 [2025-02-22 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528828', 'tblTempUsageDetail_20' ) start [2025-02-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528828', 'tblTempUsageDetail_20' ) end [2025-02-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528828', 'tblTempVendorCDR_20' ) start [2025-02-22 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528828', 'tblTempVendorCDR_20' ) end [2025-02-22 00:45:18] Production.INFO: ProcessCDR(1,14528828,1,1,2) [2025-02-22 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528828', 'tblTempUsageDetail_20' ) start [2025-02-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528828', 'tblTempUsageDetail_20' ) end [2025-02-22 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:45:21] Production.INFO: ==30881== Releasing lock... [2025-02-22 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:45:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:46:05 [end_date_ymd] => 2025-02-22 00:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:46:05' and `end` < '2025-02-22 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-02-22 00:46:16] Production.INFO: count ==551 [2025-02-22 00:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:46:05 - End Time 2025-02-22 00:46:05 [2025-02-22 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528833', 'tblTempUsageDetail_20' ) start [2025-02-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528833', 'tblTempUsageDetail_20' ) end [2025-02-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528833', 'tblTempVendorCDR_20' ) start [2025-02-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528833', 'tblTempVendorCDR_20' ) end [2025-02-22 00:46:17] Production.INFO: ProcessCDR(1,14528833,1,1,2) [2025-02-22 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528833', 'tblTempUsageDetail_20' ) start [2025-02-22 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528833', 'tblTempUsageDetail_20' ) end [2025-02-22 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:46:20] Production.INFO: ==30974== Releasing lock... [2025-02-22 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:46:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:47:05 [end_date_ymd] => 2025-02-22 00:47:05 [RateCDR] => 1 ) [2025-02-22 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:47:05' and `end` < '2025-02-22 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:47:17] Production.INFO: count ==546 [2025-02-22 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:47:05 - End Time 2025-02-22 00:47:05 [2025-02-22 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528838', 'tblTempUsageDetail_20' ) start [2025-02-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528838', 'tblTempUsageDetail_20' ) end [2025-02-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528838', 'tblTempVendorCDR_20' ) start [2025-02-22 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528838', 'tblTempVendorCDR_20' ) end [2025-02-22 00:47:17] Production.INFO: ProcessCDR(1,14528838,1,1,2) [2025-02-22 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528838', 'tblTempUsageDetail_20' ) start [2025-02-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528838', 'tblTempUsageDetail_20' ) end [2025-02-22 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:47:21] Production.INFO: ==31074== Releasing lock... [2025-02-22 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:48:05 [end_date_ymd] => 2025-02-22 00:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:48:05' and `end` < '2025-02-22 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-02-22 00:48:17] Production.INFO: count ==546 [2025-02-22 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:48:05 - End Time 2025-02-22 00:48:05 [2025-02-22 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528843', 'tblTempUsageDetail_20' ) start [2025-02-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528843', 'tblTempUsageDetail_20' ) end [2025-02-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528843', 'tblTempVendorCDR_20' ) start [2025-02-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528843', 'tblTempVendorCDR_20' ) end [2025-02-22 00:48:17] Production.INFO: ProcessCDR(1,14528843,1,1,2) [2025-02-22 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528843', 'tblTempUsageDetail_20' ) start [2025-02-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528843', 'tblTempUsageDetail_20' ) end [2025-02-22 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:48:20] Production.INFO: ==31169== Releasing lock... [2025-02-22 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:49:05 [end_date_ymd] => 2025-02-22 00:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:49:05' and `end` < '2025-02-22 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-02-22 00:49:17] Production.INFO: count ==549 [2025-02-22 00:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:49:05 - End Time 2025-02-22 00:49:05 [2025-02-22 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528848', 'tblTempUsageDetail_20' ) start [2025-02-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528848', 'tblTempUsageDetail_20' ) end [2025-02-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528848', 'tblTempVendorCDR_20' ) start [2025-02-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528848', 'tblTempVendorCDR_20' ) end [2025-02-22 00:49:17] Production.INFO: ProcessCDR(1,14528848,1,1,2) [2025-02-22 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528848', 'tblTempUsageDetail_20' ) start [2025-02-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528848', 'tblTempUsageDetail_20' ) end [2025-02-22 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:49:21] Production.INFO: ==31269== Releasing lock... [2025-02-22 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:50:06 [end_date_ymd] => 2025-02-22 00:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:50:06' and `end` < '2025-02-22 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-02-22 00:50:17] Production.INFO: count ==557 [2025-02-22 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:50:06 - End Time 2025-02-22 00:50:06 [2025-02-22 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528854', 'tblTempUsageDetail_20' ) start [2025-02-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528854', 'tblTempUsageDetail_20' ) end [2025-02-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528854', 'tblTempVendorCDR_20' ) start [2025-02-22 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528854', 'tblTempVendorCDR_20' ) end [2025-02-22 00:50:18] Production.INFO: ProcessCDR(1,14528854,1,1,2) [2025-02-22 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528854', 'tblTempUsageDetail_20' ) start [2025-02-22 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528854', 'tblTempUsageDetail_20' ) end [2025-02-22 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:50:21] Production.INFO: ==31366== Releasing lock... [2025-02-22 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:51:05 [end_date_ymd] => 2025-02-22 00:51:05 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:51:05' and `end` < '2025-02-22 00: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-02-22 00:51:17] Production.INFO: count ==568 [2025-02-22 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:51:05 - End Time 2025-02-22 00:51:05 [2025-02-22 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528859', 'tblTempUsageDetail_20' ) start [2025-02-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528859', 'tblTempUsageDetail_20' ) end [2025-02-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528859', 'tblTempVendorCDR_20' ) start [2025-02-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528859', 'tblTempVendorCDR_20' ) end [2025-02-22 00:51:17] Production.INFO: ProcessCDR(1,14528859,1,1,2) [2025-02-22 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528859', 'tblTempUsageDetail_20' ) start [2025-02-22 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528859', 'tblTempUsageDetail_20' ) end [2025-02-22 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:51:22] Production.INFO: ==31500== Releasing lock... [2025-02-22 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:51:22] Production.INFO: 33 MB #Memory Used# [2025-02-22 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:52:05 [end_date_ymd] => 2025-02-22 00:52:05 [RateCDR] => 1 ) [2025-02-22 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:52:05' and `end` < '2025-02-22 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:52:17] Production.INFO: count ==564 [2025-02-22 00:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:52:05 - End Time 2025-02-22 00:52:05 [2025-02-22 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528864', 'tblTempUsageDetail_20' ) start [2025-02-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528864', 'tblTempUsageDetail_20' ) end [2025-02-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528864', 'tblTempVendorCDR_20' ) start [2025-02-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528864', 'tblTempVendorCDR_20' ) end [2025-02-22 00:52:17] Production.INFO: ProcessCDR(1,14528864,1,1,2) [2025-02-22 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528864', 'tblTempUsageDetail_20' ) start [2025-02-22 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528864', 'tblTempUsageDetail_20' ) end [2025-02-22 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:52:20] Production.INFO: ==31590== Releasing lock... [2025-02-22 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:52:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:53:05 [end_date_ymd] => 2025-02-22 00:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:53:05' and `end` < '2025-02-22 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-02-22 00:53:17] Production.INFO: count ==567 [2025-02-22 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:53:05 - End Time 2025-02-22 00:53:05 [2025-02-22 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528869', 'tblTempUsageDetail_20' ) start [2025-02-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528869', 'tblTempUsageDetail_20' ) end [2025-02-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528869', 'tblTempVendorCDR_20' ) start [2025-02-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528869', 'tblTempVendorCDR_20' ) end [2025-02-22 00:53:17] Production.INFO: ProcessCDR(1,14528869,1,1,2) [2025-02-22 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528869', 'tblTempUsageDetail_20' ) start [2025-02-22 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528869', 'tblTempUsageDetail_20' ) end [2025-02-22 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:53:21] Production.INFO: ==31683== Releasing lock... [2025-02-22 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:54:05 [end_date_ymd] => 2025-02-22 00:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:54:05' and `end` < '2025-02-22 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-02-22 00:54:17] Production.INFO: count ==566 [2025-02-22 00:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:54:05 - End Time 2025-02-22 00:54:05 [2025-02-22 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528874', 'tblTempUsageDetail_20' ) start [2025-02-22 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528874', 'tblTempUsageDetail_20' ) end [2025-02-22 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528874', 'tblTempVendorCDR_20' ) start [2025-02-22 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528874', 'tblTempVendorCDR_20' ) end [2025-02-22 00:54:17] Production.INFO: ProcessCDR(1,14528874,1,1,2) [2025-02-22 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528874', 'tblTempUsageDetail_20' ) start [2025-02-22 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528874', 'tblTempUsageDetail_20' ) end [2025-02-22 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:54:22] Production.INFO: ==31774== Releasing lock... [2025-02-22 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:55:05 [end_date_ymd] => 2025-02-22 00:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:55:05' and `end` < '2025-02-22 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-02-22 00:55:16] Production.INFO: count ==566 [2025-02-22 00:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:55:05 - End Time 2025-02-22 00:55:05 [2025-02-22 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528879', 'tblTempUsageDetail_20' ) start [2025-02-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528879', 'tblTempUsageDetail_20' ) end [2025-02-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528879', 'tblTempVendorCDR_20' ) start [2025-02-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528879', 'tblTempVendorCDR_20' ) end [2025-02-22 00:55:17] Production.INFO: ProcessCDR(1,14528879,1,1,2) [2025-02-22 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528879', 'tblTempUsageDetail_20' ) start [2025-02-22 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528879', 'tblTempUsageDetail_20' ) end [2025-02-22 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:55:22] Production.INFO: ==31865== Releasing lock... [2025-02-22 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:56:06 [end_date_ymd] => 2025-02-22 00:56:06 [RateCDR] => 1 ) [2025-02-22 00: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-02-21 21:56:06' and `end` < '2025-02-22 00: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-02-22 00:56:17] Production.INFO: count ==568 [2025-02-22 00:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:56:06 - End Time 2025-02-22 00:56:06 [2025-02-22 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528884', 'tblTempUsageDetail_20' ) start [2025-02-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528884', 'tblTempUsageDetail_20' ) end [2025-02-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528884', 'tblTempVendorCDR_20' ) start [2025-02-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528884', 'tblTempVendorCDR_20' ) end [2025-02-22 00:56:17] Production.INFO: ProcessCDR(1,14528884,1,1,2) [2025-02-22 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528884', 'tblTempUsageDetail_20' ) start [2025-02-22 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528884', 'tblTempUsageDetail_20' ) end [2025-02-22 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:56:22] Production.INFO: ==31963== Releasing lock... [2025-02-22 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:57:05 [end_date_ymd] => 2025-02-22 00:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:57:05' and `end` < '2025-02-22 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-02-22 00:57:17] Production.INFO: count ==568 [2025-02-22 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:57:05 - End Time 2025-02-22 00:57:05 [2025-02-22 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528889', 'tblTempUsageDetail_20' ) start [2025-02-22 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528889', 'tblTempUsageDetail_20' ) end [2025-02-22 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528889', 'tblTempVendorCDR_20' ) start [2025-02-22 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528889', 'tblTempVendorCDR_20' ) end [2025-02-22 00:57:17] Production.INFO: ProcessCDR(1,14528889,1,1,2) [2025-02-22 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528889', 'tblTempUsageDetail_20' ) start [2025-02-22 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528889', 'tblTempUsageDetail_20' ) end [2025-02-22 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:57:20] Production.INFO: ==32055== Releasing lock... [2025-02-22 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:57:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:58:06 [end_date_ymd] => 2025-02-22 00:58:06 [RateCDR] => 1 ) [2025-02-22 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 21:58:06' and `end` < '2025-02-22 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 00:58:18] Production.INFO: count ==568 [2025-02-22 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 21:58:06 - End Time 2025-02-22 00:58:06 [2025-02-22 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528894', 'tblTempUsageDetail_20' ) start [2025-02-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528894', 'tblTempUsageDetail_20' ) end [2025-02-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528894', 'tblTempVendorCDR_20' ) start [2025-02-22 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528894', 'tblTempVendorCDR_20' ) end [2025-02-22 00:58:18] Production.INFO: ProcessCDR(1,14528894,1,1,2) [2025-02-22 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528894', 'tblTempUsageDetail_20' ) start [2025-02-22 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528894', 'tblTempUsageDetail_20' ) end [2025-02-22 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:58:21] Production.INFO: ==32147== Releasing lock... [2025-02-22 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 21:59:05 [end_date_ymd] => 2025-02-22 00:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 21:59:05' and `end` < '2025-02-22 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-02-22 00:59:17] Production.INFO: count ==568 [2025-02-22 00:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 21:59:05 - End Time 2025-02-22 00:59:05 [2025-02-22 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528899', 'tblTempUsageDetail_20' ) start [2025-02-22 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528899', 'tblTempUsageDetail_20' ) end [2025-02-22 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528899', 'tblTempVendorCDR_20' ) start [2025-02-22 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528899', 'tblTempVendorCDR_20' ) end [2025-02-22 00:59:17] Production.INFO: ProcessCDR(1,14528899,1,1,2) [2025-02-22 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528899', 'tblTempUsageDetail_20' ) start [2025-02-22 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528899', 'tblTempUsageDetail_20' ) end [2025-02-22 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 00:59:20] Production.INFO: ==32239== Releasing lock... [2025-02-22 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 00:59:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:00:06 [end_date_ymd] => 2025-02-22 01:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:00:06' and `end` < '2025-02-22 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-02-22 01:00:18] Production.INFO: count ==554 [2025-02-22 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:00:06 - End Time 2025-02-22 01:00:06 [2025-02-22 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528905', 'tblTempUsageDetail_20' ) start [2025-02-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528905', 'tblTempUsageDetail_20' ) end [2025-02-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528905', 'tblTempVendorCDR_20' ) start [2025-02-22 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528905', 'tblTempVendorCDR_20' ) end [2025-02-22 01:00:19] Production.INFO: ProcessCDR(1,14528905,1,1,2) [2025-02-22 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528905', 'tblTempUsageDetail_20' ) start [2025-02-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528905', 'tblTempUsageDetail_20' ) end [2025-02-22 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:00:22] Production.INFO: ==32330== Releasing lock... [2025-02-22 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:00:22] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:01:06 [end_date_ymd] => 2025-02-22 01:01:06 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:01:06' and `end` < '2025-02-22 01: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-02-22 01:01:18] Production.INFO: count ==553 [2025-02-22 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:01:06 - End Time 2025-02-22 01:01:06 [2025-02-22 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528910', 'tblTempUsageDetail_20' ) start [2025-02-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528910', 'tblTempUsageDetail_20' ) end [2025-02-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528910', 'tblTempVendorCDR_20' ) start [2025-02-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528910', 'tblTempVendorCDR_20' ) end [2025-02-22 01:01:18] Production.INFO: ProcessCDR(1,14528910,1,1,2) [2025-02-22 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528910', 'tblTempUsageDetail_20' ) start [2025-02-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528910', 'tblTempUsageDetail_20' ) end [2025-02-22 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:01:21] Production.INFO: ==32441== Releasing lock... [2025-02-22 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:01:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:02:05 [end_date_ymd] => 2025-02-22 01:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:02:05' and `end` < '2025-02-22 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-02-22 01:02:17] Production.INFO: count ==553 [2025-02-22 01:02:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:02:05 - End Time 2025-02-22 01:02:05 [2025-02-22 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528915', 'tblTempUsageDetail_20' ) start [2025-02-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528915', 'tblTempUsageDetail_20' ) end [2025-02-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528915', 'tblTempVendorCDR_20' ) start [2025-02-22 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528915', 'tblTempVendorCDR_20' ) end [2025-02-22 01:02:17] Production.INFO: ProcessCDR(1,14528915,1,1,2) [2025-02-22 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528915', 'tblTempUsageDetail_20' ) start [2025-02-22 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528915', 'tblTempUsageDetail_20' ) end [2025-02-22 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:02:20] Production.INFO: ==32534== Releasing lock... [2025-02-22 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:02:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:03:05 [end_date_ymd] => 2025-02-22 01:03:05 [RateCDR] => 1 ) [2025-02-22 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:03:05' and `end` < '2025-02-22 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:03:17] Production.INFO: count ==552 [2025-02-22 01:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:03:05 - End Time 2025-02-22 01:03:05 [2025-02-22 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528920', 'tblTempUsageDetail_20' ) start [2025-02-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528920', 'tblTempUsageDetail_20' ) end [2025-02-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528920', 'tblTempVendorCDR_20' ) start [2025-02-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528920', 'tblTempVendorCDR_20' ) end [2025-02-22 01:03:17] Production.INFO: ProcessCDR(1,14528920,1,1,2) [2025-02-22 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528920', 'tblTempUsageDetail_20' ) start [2025-02-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528920', 'tblTempUsageDetail_20' ) end [2025-02-22 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:03:21] Production.INFO: ==32633== Releasing lock... [2025-02-22 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:03:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:04:05 [end_date_ymd] => 2025-02-22 01:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:04:05' and `end` < '2025-02-22 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-02-22 01:04:17] Production.INFO: count ==552 [2025-02-22 01:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:04:05 - End Time 2025-02-22 01:04:05 [2025-02-22 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528925', 'tblTempUsageDetail_20' ) start [2025-02-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528925', 'tblTempUsageDetail_20' ) end [2025-02-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528925', 'tblTempVendorCDR_20' ) start [2025-02-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528925', 'tblTempVendorCDR_20' ) end [2025-02-22 01:04:17] Production.INFO: ProcessCDR(1,14528925,1,1,2) [2025-02-22 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528925', 'tblTempUsageDetail_20' ) start [2025-02-22 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528925', 'tblTempUsageDetail_20' ) end [2025-02-22 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:04:20] Production.INFO: ==32725== Releasing lock... [2025-02-22 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:04:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:05:05 [end_date_ymd] => 2025-02-22 01:05:05 [RateCDR] => 1 ) [2025-02-22 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:05:05' and `end` < '2025-02-22 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:05:17] Production.INFO: count ==551 [2025-02-22 01:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:05:05 - End Time 2025-02-22 01:05:05 [2025-02-22 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528930', 'tblTempUsageDetail_20' ) start [2025-02-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528930', 'tblTempUsageDetail_20' ) end [2025-02-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528930', 'tblTempVendorCDR_20' ) start [2025-02-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528930', 'tblTempVendorCDR_20' ) end [2025-02-22 01:05:17] Production.INFO: ProcessCDR(1,14528930,1,1,2) [2025-02-22 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528930', 'tblTempUsageDetail_20' ) start [2025-02-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528930', 'tblTempUsageDetail_20' ) end [2025-02-22 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:05:21] Production.INFO: ==373== Releasing lock... [2025-02-22 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:06:05 [end_date_ymd] => 2025-02-22 01:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:06:05' and `end` < '2025-02-22 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-02-22 01:06:17] Production.INFO: count ==543 [2025-02-22 01:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:06:05 - End Time 2025-02-22 01:06:05 [2025-02-22 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528935', 'tblTempUsageDetail_20' ) start [2025-02-22 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528935', 'tblTempUsageDetail_20' ) end [2025-02-22 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528935', 'tblTempVendorCDR_20' ) start [2025-02-22 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528935', 'tblTempVendorCDR_20' ) end [2025-02-22 01:06:17] Production.INFO: ProcessCDR(1,14528935,1,1,2) [2025-02-22 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528935', 'tblTempUsageDetail_20' ) start [2025-02-22 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528935', 'tblTempUsageDetail_20' ) end [2025-02-22 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:06:21] Production.INFO: ==512== Releasing lock... [2025-02-22 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:07:05 [end_date_ymd] => 2025-02-22 01:07:05 [RateCDR] => 1 ) [2025-02-22 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:07:05' and `end` < '2025-02-22 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:07:17] Production.INFO: count ==528 [2025-02-22 01:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:07:05 - End Time 2025-02-22 01:07:05 [2025-02-22 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528940', 'tblTempUsageDetail_20' ) start [2025-02-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528940', 'tblTempUsageDetail_20' ) end [2025-02-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528940', 'tblTempVendorCDR_20' ) start [2025-02-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528940', 'tblTempVendorCDR_20' ) end [2025-02-22 01:07:17] Production.INFO: ProcessCDR(1,14528940,1,1,2) [2025-02-22 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528940', 'tblTempUsageDetail_20' ) start [2025-02-22 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528940', 'tblTempUsageDetail_20' ) end [2025-02-22 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:07:21] Production.INFO: ==600== Releasing lock... [2025-02-22 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:08:06 [end_date_ymd] => 2025-02-22 01:08:06 [RateCDR] => 1 ) [2025-02-22 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:08:06' and `end` < '2025-02-22 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:08:17] Production.INFO: count ==511 [2025-02-22 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:08:06 - End Time 2025-02-22 01:08:06 [2025-02-22 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528945', 'tblTempUsageDetail_20' ) start [2025-02-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528945', 'tblTempUsageDetail_20' ) end [2025-02-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528945', 'tblTempVendorCDR_20' ) start [2025-02-22 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528945', 'tblTempVendorCDR_20' ) end [2025-02-22 01:08:18] Production.INFO: ProcessCDR(1,14528945,1,1,2) [2025-02-22 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528945', 'tblTempUsageDetail_20' ) start [2025-02-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528945', 'tblTempUsageDetail_20' ) end [2025-02-22 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:08:21] Production.INFO: ==711== Releasing lock... [2025-02-22 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:09:05 [end_date_ymd] => 2025-02-22 01:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:09:05' and `end` < '2025-02-22 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-02-22 01:09:17] Production.INFO: count ==490 [2025-02-22 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:09:05 - End Time 2025-02-22 01:09:05 [2025-02-22 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528950', 'tblTempUsageDetail_20' ) start [2025-02-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528950', 'tblTempUsageDetail_20' ) end [2025-02-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528950', 'tblTempVendorCDR_20' ) start [2025-02-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528950', 'tblTempVendorCDR_20' ) end [2025-02-22 01:09:17] Production.INFO: ProcessCDR(1,14528950,1,1,2) [2025-02-22 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528950', 'tblTempUsageDetail_20' ) start [2025-02-22 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528950', 'tblTempUsageDetail_20' ) end [2025-02-22 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:09:20] Production.INFO: ==798== Releasing lock... [2025-02-22 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:09:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:10:06 [end_date_ymd] => 2025-02-22 01:10:06 [RateCDR] => 1 ) [2025-02-22 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:10:06' and `end` < '2025-02-22 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:10:18] Production.INFO: count ==498 [2025-02-22 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:10:06 - End Time 2025-02-22 01:10:06 [2025-02-22 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528956', 'tblTempUsageDetail_20' ) start [2025-02-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528956', 'tblTempUsageDetail_20' ) end [2025-02-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528956', 'tblTempVendorCDR_20' ) start [2025-02-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528956', 'tblTempVendorCDR_20' ) end [2025-02-22 01:10:18] Production.INFO: ProcessCDR(1,14528956,1,1,2) [2025-02-22 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528956', 'tblTempUsageDetail_20' ) start [2025-02-22 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528956', 'tblTempUsageDetail_20' ) end [2025-02-22 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:10:21] Production.INFO: ==886== Releasing lock... [2025-02-22 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:10:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:11:04 [end_date_ymd] => 2025-02-22 01:11:04 [RateCDR] => 1 ) [2025-02-22 01:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:11:04' and `end` < '2025-02-22 01:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:11:16] Production.INFO: count ==501 [2025-02-22 01:11:16] Production.ERROR: pbx CDR StartTime 2025-02-21 22:11:04 - End Time 2025-02-22 01:11:04 [2025-02-22 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528961', 'tblTempUsageDetail_20' ) start [2025-02-22 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528961', 'tblTempUsageDetail_20' ) end [2025-02-22 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528961', 'tblTempVendorCDR_20' ) start [2025-02-22 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528961', 'tblTempVendorCDR_20' ) end [2025-02-22 01:11:16] Production.INFO: ProcessCDR(1,14528961,1,1,2) [2025-02-22 01:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528961', 'tblTempUsageDetail_20' ) start [2025-02-22 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528961', 'tblTempUsageDetail_20' ) end [2025-02-22 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:11:20] Production.INFO: ==971== Releasing lock... [2025-02-22 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:11:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:12:05 [end_date_ymd] => 2025-02-22 01:12:05 [RateCDR] => 1 ) [2025-02-22 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:12:05' and `end` < '2025-02-22 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:12:17] Production.INFO: count ==500 [2025-02-22 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:12:05 - End Time 2025-02-22 01:12:05 [2025-02-22 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528966', 'tblTempUsageDetail_20' ) start [2025-02-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528966', 'tblTempUsageDetail_20' ) end [2025-02-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528966', 'tblTempVendorCDR_20' ) start [2025-02-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528966', 'tblTempVendorCDR_20' ) end [2025-02-22 01:12:17] Production.INFO: ProcessCDR(1,14528966,1,1,2) [2025-02-22 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528966', 'tblTempUsageDetail_20' ) start [2025-02-22 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528966', 'tblTempUsageDetail_20' ) end [2025-02-22 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:12:20] Production.INFO: ==1046== Releasing lock... [2025-02-22 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:12:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:13:05 [end_date_ymd] => 2025-02-22 01:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:13:05' and `end` < '2025-02-22 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-02-22 01:13:17] Production.INFO: count ==500 [2025-02-22 01:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:13:05 - End Time 2025-02-22 01:13:05 [2025-02-22 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528971', 'tblTempUsageDetail_20' ) start [2025-02-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528971', 'tblTempUsageDetail_20' ) end [2025-02-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528971', 'tblTempVendorCDR_20' ) start [2025-02-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528971', 'tblTempVendorCDR_20' ) end [2025-02-22 01:13:17] Production.INFO: ProcessCDR(1,14528971,1,1,2) [2025-02-22 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528971', 'tblTempUsageDetail_20' ) start [2025-02-22 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528971', 'tblTempUsageDetail_20' ) end [2025-02-22 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:13:20] Production.INFO: ==1128== Releasing lock... [2025-02-22 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:13:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:14:06 [end_date_ymd] => 2025-02-22 01:14:06 [RateCDR] => 1 ) [2025-02-22 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:14:06' and `end` < '2025-02-22 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:14:18] Production.INFO: count ==525 [2025-02-22 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:14:06 - End Time 2025-02-22 01:14:06 [2025-02-22 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528976', 'tblTempUsageDetail_20' ) start [2025-02-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528976', 'tblTempUsageDetail_20' ) end [2025-02-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528976', 'tblTempVendorCDR_20' ) start [2025-02-22 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528976', 'tblTempVendorCDR_20' ) end [2025-02-22 01:14:18] Production.INFO: ProcessCDR(1,14528976,1,1,2) [2025-02-22 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528976', 'tblTempUsageDetail_20' ) start [2025-02-22 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528976', 'tblTempUsageDetail_20' ) end [2025-02-22 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:14:21] Production.INFO: ==1217== Releasing lock... [2025-02-22 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:15:04 [end_date_ymd] => 2025-02-22 01:15:04 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:15:04' and `end` < '2025-02-22 01: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-02-22 01:15:16] Production.INFO: count ==527 [2025-02-22 01:15:16] Production.ERROR: pbx CDR StartTime 2025-02-21 22:15:04 - End Time 2025-02-22 01:15:04 [2025-02-22 01:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528980', 'tblTempUsageDetail_20' ) start [2025-02-22 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528980', 'tblTempUsageDetail_20' ) end [2025-02-22 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528980', 'tblTempVendorCDR_20' ) start [2025-02-22 01:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528980', 'tblTempVendorCDR_20' ) end [2025-02-22 01:15:16] Production.INFO: ProcessCDR(1,14528980,1,1,2) [2025-02-22 01:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528980', 'tblTempUsageDetail_20' ) start [2025-02-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528980', 'tblTempUsageDetail_20' ) end [2025-02-22 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:15:21] Production.INFO: ==1316== Releasing lock... [2025-02-22 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:16:05 [end_date_ymd] => 2025-02-22 01:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:16:05' and `end` < '2025-02-22 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-02-22 01:16:17] Production.INFO: count ==528 [2025-02-22 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:16:05 - End Time 2025-02-22 01:16:05 [2025-02-22 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528986', 'tblTempUsageDetail_20' ) start [2025-02-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528986', 'tblTempUsageDetail_20' ) end [2025-02-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528986', 'tblTempVendorCDR_20' ) start [2025-02-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528986', 'tblTempVendorCDR_20' ) end [2025-02-22 01:16:17] Production.INFO: ProcessCDR(1,14528986,1,1,2) [2025-02-22 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528986', 'tblTempUsageDetail_20' ) start [2025-02-22 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528986', 'tblTempUsageDetail_20' ) end [2025-02-22 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:16:22] Production.INFO: ==1398== Releasing lock... [2025-02-22 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:17:06 [end_date_ymd] => 2025-02-22 01:17:06 [RateCDR] => 1 ) [2025-02-22 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:17:06' and `end` < '2025-02-22 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:17:18] Production.INFO: count ==524 [2025-02-22 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:17:06 - End Time 2025-02-22 01:17:06 [2025-02-22 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528991', 'tblTempUsageDetail_20' ) start [2025-02-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528991', 'tblTempUsageDetail_20' ) end [2025-02-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528991', 'tblTempVendorCDR_20' ) start [2025-02-22 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528991', 'tblTempVendorCDR_20' ) end [2025-02-22 01:17:18] Production.INFO: ProcessCDR(1,14528991,1,1,2) [2025-02-22 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528991', 'tblTempUsageDetail_20' ) start [2025-02-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528991', 'tblTempUsageDetail_20' ) end [2025-02-22 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:17:21] Production.INFO: ==1489== Releasing lock... [2025-02-22 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:18:05 [end_date_ymd] => 2025-02-22 01:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:18:05' and `end` < '2025-02-22 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-02-22 01:18:17] Production.INFO: count ==523 [2025-02-22 01:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:18:05 - End Time 2025-02-22 01:18:05 [2025-02-22 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528996', 'tblTempUsageDetail_20' ) start [2025-02-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528996', 'tblTempUsageDetail_20' ) end [2025-02-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528996', 'tblTempVendorCDR_20' ) start [2025-02-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528996', 'tblTempVendorCDR_20' ) end [2025-02-22 01:18:17] Production.INFO: ProcessCDR(1,14528996,1,1,2) [2025-02-22 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528996', 'tblTempUsageDetail_20' ) start [2025-02-22 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528996', 'tblTempUsageDetail_20' ) end [2025-02-22 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:18:20] Production.INFO: ==1604== Releasing lock... [2025-02-22 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:19:05 [end_date_ymd] => 2025-02-22 01:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:19:05' and `end` < '2025-02-22 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-02-22 01:19:17] Production.INFO: count ==524 [2025-02-22 01:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:19:05 - End Time 2025-02-22 01:19:05 [2025-02-22 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529001', 'tblTempUsageDetail_20' ) start [2025-02-22 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529001', 'tblTempUsageDetail_20' ) end [2025-02-22 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529001', 'tblTempVendorCDR_20' ) start [2025-02-22 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529001', 'tblTempVendorCDR_20' ) end [2025-02-22 01:19:17] Production.INFO: ProcessCDR(1,14529001,1,1,2) [2025-02-22 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529001', 'tblTempUsageDetail_20' ) start [2025-02-22 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529001', 'tblTempUsageDetail_20' ) end [2025-02-22 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:19:22] Production.INFO: ==1680== Releasing lock... [2025-02-22 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:20:05 [end_date_ymd] => 2025-02-22 01:20:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:20:05' and `end` < '2025-02-22 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-02-22 01:20:17] Production.INFO: count ==532 [2025-02-22 01:20:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:20:05 - End Time 2025-02-22 01:20:05 [2025-02-22 01:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529007', 'tblTempUsageDetail_20' ) start [2025-02-22 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529007', 'tblTempUsageDetail_20' ) end [2025-02-22 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529007', 'tblTempVendorCDR_20' ) start [2025-02-22 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529007', 'tblTempVendorCDR_20' ) end [2025-02-22 01:20:17] Production.INFO: ProcessCDR(1,14529007,1,1,2) [2025-02-22 01:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529007', 'tblTempUsageDetail_20' ) start [2025-02-22 01:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529007', 'tblTempUsageDetail_20' ) end [2025-02-22 01:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:20:20] Production.INFO: ==1763== Releasing lock... [2025-02-22 01:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:20:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:21:05 [end_date_ymd] => 2025-02-22 01:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:21:05' and `end` < '2025-02-22 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-02-22 01:21:17] Production.INFO: count ==543 [2025-02-22 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:21:05 - End Time 2025-02-22 01:21:05 [2025-02-22 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529012', 'tblTempUsageDetail_20' ) start [2025-02-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529012', 'tblTempUsageDetail_20' ) end [2025-02-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529012', 'tblTempVendorCDR_20' ) start [2025-02-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529012', 'tblTempVendorCDR_20' ) end [2025-02-22 01:21:17] Production.INFO: ProcessCDR(1,14529012,1,1,2) [2025-02-22 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529012', 'tblTempUsageDetail_20' ) start [2025-02-22 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529012', 'tblTempUsageDetail_20' ) end [2025-02-22 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:21:20] Production.INFO: ==1846== Releasing lock... [2025-02-22 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:21:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:22:05 [end_date_ymd] => 2025-02-22 01:22:05 [RateCDR] => 1 ) [2025-02-22 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:22:05' and `end` < '2025-02-22 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:22:17] Production.INFO: count ==533 [2025-02-22 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:22:05 - End Time 2025-02-22 01:22:05 [2025-02-22 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529017', 'tblTempUsageDetail_20' ) start [2025-02-22 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529017', 'tblTempUsageDetail_20' ) end [2025-02-22 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529017', 'tblTempVendorCDR_20' ) start [2025-02-22 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529017', 'tblTempVendorCDR_20' ) end [2025-02-22 01:22:17] Production.INFO: ProcessCDR(1,14529017,1,1,2) [2025-02-22 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529017', 'tblTempUsageDetail_20' ) start [2025-02-22 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529017', 'tblTempUsageDetail_20' ) end [2025-02-22 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:22:20] Production.INFO: ==1966== Releasing lock... [2025-02-22 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:22:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:23:05 [end_date_ymd] => 2025-02-22 01:23:05 [RateCDR] => 1 ) [2025-02-22 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:23:05' and `end` < '2025-02-22 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:23:17] Production.INFO: count ==523 [2025-02-22 01:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:23:05 - End Time 2025-02-22 01:23:05 [2025-02-22 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529022', 'tblTempUsageDetail_20' ) start [2025-02-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529022', 'tblTempUsageDetail_20' ) end [2025-02-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529022', 'tblTempVendorCDR_20' ) start [2025-02-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529022', 'tblTempVendorCDR_20' ) end [2025-02-22 01:23:17] Production.INFO: ProcessCDR(1,14529022,1,1,2) [2025-02-22 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529022', 'tblTempUsageDetail_20' ) start [2025-02-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529022', 'tblTempUsageDetail_20' ) end [2025-02-22 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:23:21] Production.INFO: ==2046== Releasing lock... [2025-02-22 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:24:05 [end_date_ymd] => 2025-02-22 01:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:24:05' and `end` < '2025-02-22 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-02-22 01:24:16] Production.INFO: count ==512 [2025-02-22 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:24:05 - End Time 2025-02-22 01:24:05 [2025-02-22 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529027', 'tblTempUsageDetail_20' ) start [2025-02-22 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529027', 'tblTempUsageDetail_20' ) end [2025-02-22 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529027', 'tblTempVendorCDR_20' ) start [2025-02-22 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529027', 'tblTempVendorCDR_20' ) end [2025-02-22 01:24:17] Production.INFO: ProcessCDR(1,14529027,1,1,2) [2025-02-22 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529027', 'tblTempUsageDetail_20' ) start [2025-02-22 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529027', 'tblTempUsageDetail_20' ) end [2025-02-22 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:24:20] Production.INFO: ==2122== Releasing lock... [2025-02-22 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:24:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:25:05 [end_date_ymd] => 2025-02-22 01:25:05 [RateCDR] => 1 ) [2025-02-22 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:25:05' and `end` < '2025-02-22 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:25:17] Production.INFO: count ==502 [2025-02-22 01:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:25:05 - End Time 2025-02-22 01:25:05 [2025-02-22 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529032', 'tblTempUsageDetail_20' ) start [2025-02-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529032', 'tblTempUsageDetail_20' ) end [2025-02-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529032', 'tblTempVendorCDR_20' ) start [2025-02-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529032', 'tblTempVendorCDR_20' ) end [2025-02-22 01:25:17] Production.INFO: ProcessCDR(1,14529032,1,1,2) [2025-02-22 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529032', 'tblTempUsageDetail_20' ) start [2025-02-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529032', 'tblTempUsageDetail_20' ) end [2025-02-22 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:25:21] Production.INFO: ==2200== Releasing lock... [2025-02-22 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:26:05 [end_date_ymd] => 2025-02-22 01:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:26:05' and `end` < '2025-02-22 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-02-22 01:26:17] Production.INFO: count ==488 [2025-02-22 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:26:05 - End Time 2025-02-22 01:26:05 [2025-02-22 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529037', 'tblTempUsageDetail_20' ) start [2025-02-22 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529037', 'tblTempUsageDetail_20' ) end [2025-02-22 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529037', 'tblTempVendorCDR_20' ) start [2025-02-22 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529037', 'tblTempVendorCDR_20' ) end [2025-02-22 01:26:17] Production.INFO: ProcessCDR(1,14529037,1,1,2) [2025-02-22 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529037', 'tblTempUsageDetail_20' ) start [2025-02-22 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529037', 'tblTempUsageDetail_20' ) end [2025-02-22 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:26:20] Production.INFO: ==2287== Releasing lock... [2025-02-22 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:26:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:27:05 [end_date_ymd] => 2025-02-22 01:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:27:05' and `end` < '2025-02-22 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-02-22 01:27:17] Production.INFO: count ==480 [2025-02-22 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:27:05 - End Time 2025-02-22 01:27:05 [2025-02-22 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529042', 'tblTempUsageDetail_20' ) start [2025-02-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529042', 'tblTempUsageDetail_20' ) end [2025-02-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529042', 'tblTempVendorCDR_20' ) start [2025-02-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529042', 'tblTempVendorCDR_20' ) end [2025-02-22 01:27:17] Production.INFO: ProcessCDR(1,14529042,1,1,2) [2025-02-22 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529042', 'tblTempUsageDetail_20' ) start [2025-02-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529042', 'tblTempUsageDetail_20' ) end [2025-02-22 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:27:20] Production.INFO: ==2364== Releasing lock... [2025-02-22 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:28:05 [end_date_ymd] => 2025-02-22 01:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:28:05' and `end` < '2025-02-22 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-02-22 01:28:17] Production.INFO: count ==480 [2025-02-22 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:28:05 - End Time 2025-02-22 01:28:05 [2025-02-22 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529047', 'tblTempUsageDetail_20' ) start [2025-02-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529047', 'tblTempUsageDetail_20' ) end [2025-02-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529047', 'tblTempVendorCDR_20' ) start [2025-02-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529047', 'tblTempVendorCDR_20' ) end [2025-02-22 01:28:17] Production.INFO: ProcessCDR(1,14529047,1,1,2) [2025-02-22 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529047', 'tblTempUsageDetail_20' ) start [2025-02-22 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529047', 'tblTempUsageDetail_20' ) end [2025-02-22 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:28:20] Production.INFO: ==2448== Releasing lock... [2025-02-22 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:28:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:29:05 [end_date_ymd] => 2025-02-22 01:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:29:05' and `end` < '2025-02-22 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-02-22 01:29:16] Production.INFO: count ==484 [2025-02-22 01:29:16] Production.ERROR: pbx CDR StartTime 2025-02-21 22:29:05 - End Time 2025-02-22 01:29:05 [2025-02-22 01:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529052', 'tblTempUsageDetail_20' ) start [2025-02-22 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529052', 'tblTempUsageDetail_20' ) end [2025-02-22 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529052', 'tblTempVendorCDR_20' ) start [2025-02-22 01:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529052', 'tblTempVendorCDR_20' ) end [2025-02-22 01:29:16] Production.INFO: ProcessCDR(1,14529052,1,1,2) [2025-02-22 01:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529052', 'tblTempUsageDetail_20' ) start [2025-02-22 01:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529052', 'tblTempUsageDetail_20' ) end [2025-02-22 01:29:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:29:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:29:19] Production.INFO: ==2524== Releasing lock... [2025-02-22 01:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:29:19] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:30:06 [end_date_ymd] => 2025-02-22 01:30:06 [RateCDR] => 1 ) [2025-02-22 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:30:06' and `end` < '2025-02-22 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:30:18] Production.INFO: count ==484 [2025-02-22 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:30:06 - End Time 2025-02-22 01:30:06 [2025-02-22 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529058', 'tblTempUsageDetail_20' ) start [2025-02-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529058', 'tblTempUsageDetail_20' ) end [2025-02-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529058', 'tblTempVendorCDR_20' ) start [2025-02-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529058', 'tblTempVendorCDR_20' ) end [2025-02-22 01:30:18] Production.INFO: ProcessCDR(1,14529058,1,1,2) [2025-02-22 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529058', 'tblTempUsageDetail_20' ) start [2025-02-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529058', 'tblTempUsageDetail_20' ) end [2025-02-22 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:30:21] Production.INFO: ==2612== Releasing lock... [2025-02-22 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:30:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:31:04 [end_date_ymd] => 2025-02-22 01:31:04 [RateCDR] => 1 ) [2025-02-22 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:31:04' and `end` < '2025-02-22 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:31:16] Production.INFO: count ==484 [2025-02-22 01:31:16] Production.ERROR: pbx CDR StartTime 2025-02-21 22:31:04 - End Time 2025-02-22 01:31:04 [2025-02-22 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529063', 'tblTempUsageDetail_20' ) start [2025-02-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529063', 'tblTempUsageDetail_20' ) end [2025-02-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529063', 'tblTempVendorCDR_20' ) start [2025-02-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529063', 'tblTempVendorCDR_20' ) end [2025-02-22 01:31:16] Production.INFO: ProcessCDR(1,14529063,1,1,2) [2025-02-22 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529063', 'tblTempUsageDetail_20' ) start [2025-02-22 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529063', 'tblTempUsageDetail_20' ) end [2025-02-22 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:31:20] Production.INFO: ==2696== Releasing lock... [2025-02-22 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:31:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:32:05 [end_date_ymd] => 2025-02-22 01:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:32:05' and `end` < '2025-02-22 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-02-22 01:32:17] Production.INFO: count ==484 [2025-02-22 01:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:32:05 - End Time 2025-02-22 01:32:05 [2025-02-22 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529068', 'tblTempUsageDetail_20' ) start [2025-02-22 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529068', 'tblTempUsageDetail_20' ) end [2025-02-22 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529068', 'tblTempVendorCDR_20' ) start [2025-02-22 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529068', 'tblTempVendorCDR_20' ) end [2025-02-22 01:32:17] Production.INFO: ProcessCDR(1,14529068,1,1,2) [2025-02-22 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529068', 'tblTempUsageDetail_20' ) start [2025-02-22 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529068', 'tblTempUsageDetail_20' ) end [2025-02-22 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:32:20] Production.INFO: ==2780== Releasing lock... [2025-02-22 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:32:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:33:05 [end_date_ymd] => 2025-02-22 01:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:33:05' and `end` < '2025-02-22 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-02-22 01:33:16] Production.INFO: count ==483 [2025-02-22 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:33:05 - End Time 2025-02-22 01:33:05 [2025-02-22 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529073', 'tblTempUsageDetail_20' ) start [2025-02-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529073', 'tblTempUsageDetail_20' ) end [2025-02-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529073', 'tblTempVendorCDR_20' ) start [2025-02-22 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529073', 'tblTempVendorCDR_20' ) end [2025-02-22 01:33:17] Production.INFO: ProcessCDR(1,14529073,1,1,2) [2025-02-22 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529073', 'tblTempUsageDetail_20' ) start [2025-02-22 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529073', 'tblTempUsageDetail_20' ) end [2025-02-22 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:33:20] Production.INFO: ==2861== Releasing lock... [2025-02-22 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:33:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:34:06 [end_date_ymd] => 2025-02-22 01:34:06 [RateCDR] => 1 ) [2025-02-22 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:34:06' and `end` < '2025-02-22 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:34:18] Production.INFO: count ==481 [2025-02-22 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:34:06 - End Time 2025-02-22 01:34:06 [2025-02-22 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529078', 'tblTempUsageDetail_20' ) start [2025-02-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529078', 'tblTempUsageDetail_20' ) end [2025-02-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529078', 'tblTempVendorCDR_20' ) start [2025-02-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529078', 'tblTempVendorCDR_20' ) end [2025-02-22 01:34:18] Production.INFO: ProcessCDR(1,14529078,1,1,2) [2025-02-22 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529078', 'tblTempUsageDetail_20' ) start [2025-02-22 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529078', 'tblTempUsageDetail_20' ) end [2025-02-22 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:34:23] Production.INFO: ==2942== Releasing lock... [2025-02-22 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:34:23] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:35:06 [end_date_ymd] => 2025-02-22 01:35:06 [RateCDR] => 1 ) [2025-02-22 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:35:06' and `end` < '2025-02-22 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:35:17] Production.INFO: count ==481 [2025-02-22 01:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:35:06 - End Time 2025-02-22 01:35:06 [2025-02-22 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529083', 'tblTempUsageDetail_20' ) start [2025-02-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529083', 'tblTempUsageDetail_20' ) end [2025-02-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529083', 'tblTempVendorCDR_20' ) start [2025-02-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529083', 'tblTempVendorCDR_20' ) end [2025-02-22 01:35:18] Production.INFO: ProcessCDR(1,14529083,1,1,2) [2025-02-22 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529083', 'tblTempUsageDetail_20' ) start [2025-02-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529083', 'tblTempUsageDetail_20' ) end [2025-02-22 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:35:21] Production.INFO: ==3021== Releasing lock... [2025-02-22 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:35:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:36:06 [end_date_ymd] => 2025-02-22 01:36:06 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:36:06' and `end` < '2025-02-22 01: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-02-22 01:36:18] Production.INFO: count ==478 [2025-02-22 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:36:06 - End Time 2025-02-22 01:36:06 [2025-02-22 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529088', 'tblTempUsageDetail_20' ) start [2025-02-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529088', 'tblTempUsageDetail_20' ) end [2025-02-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529088', 'tblTempVendorCDR_20' ) start [2025-02-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529088', 'tblTempVendorCDR_20' ) end [2025-02-22 01:36:18] Production.INFO: ProcessCDR(1,14529088,1,1,2) [2025-02-22 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529088', 'tblTempUsageDetail_20' ) start [2025-02-22 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529088', 'tblTempUsageDetail_20' ) end [2025-02-22 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:36:21] Production.INFO: ==3101== Releasing lock... [2025-02-22 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:37:05 [end_date_ymd] => 2025-02-22 01:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:37:05' and `end` < '2025-02-22 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-02-22 01:37:17] Production.INFO: count ==474 [2025-02-22 01:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:37:05 - End Time 2025-02-22 01:37:05 [2025-02-22 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529093', 'tblTempUsageDetail_20' ) start [2025-02-22 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529093', 'tblTempUsageDetail_20' ) end [2025-02-22 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529093', 'tblTempVendorCDR_20' ) start [2025-02-22 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529093', 'tblTempVendorCDR_20' ) end [2025-02-22 01:37:17] Production.INFO: ProcessCDR(1,14529093,1,1,2) [2025-02-22 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529093', 'tblTempUsageDetail_20' ) start [2025-02-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529093', 'tblTempUsageDetail_20' ) end [2025-02-22 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:37:21] Production.INFO: ==3218== Releasing lock... [2025-02-22 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:38:06 [end_date_ymd] => 2025-02-22 01:38:06 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:38:06' and `end` < '2025-02-22 01: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-02-22 01:38:18] Production.INFO: count ==479 [2025-02-22 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:38:06 - End Time 2025-02-22 01:38:06 [2025-02-22 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529098', 'tblTempUsageDetail_20' ) start [2025-02-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529098', 'tblTempUsageDetail_20' ) end [2025-02-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529098', 'tblTempVendorCDR_20' ) start [2025-02-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529098', 'tblTempVendorCDR_20' ) end [2025-02-22 01:38:18] Production.INFO: ProcessCDR(1,14529098,1,1,2) [2025-02-22 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529098', 'tblTempUsageDetail_20' ) start [2025-02-22 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529098', 'tblTempUsageDetail_20' ) end [2025-02-22 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:38:22] Production.INFO: ==3298== Releasing lock... [2025-02-22 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:39:05 [end_date_ymd] => 2025-02-22 01:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:39:05' and `end` < '2025-02-22 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-02-22 01:39:17] Production.INFO: count ==466 [2025-02-22 01:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:39:05 - End Time 2025-02-22 01:39:05 [2025-02-22 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529103', 'tblTempUsageDetail_20' ) start [2025-02-22 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529103', 'tblTempUsageDetail_20' ) end [2025-02-22 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529103', 'tblTempVendorCDR_20' ) start [2025-02-22 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529103', 'tblTempVendorCDR_20' ) end [2025-02-22 01:39:17] Production.INFO: ProcessCDR(1,14529103,1,1,2) [2025-02-22 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529103', 'tblTempUsageDetail_20' ) start [2025-02-22 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529103', 'tblTempUsageDetail_20' ) end [2025-02-22 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:39:21] Production.INFO: ==3377== Releasing lock... [2025-02-22 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:39:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:40:07 [end_date_ymd] => 2025-02-22 01:40:07 [RateCDR] => 1 ) [2025-02-22 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:40:07' and `end` < '2025-02-22 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:40:18] Production.INFO: count ==497 [2025-02-22 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 22:40:07 - End Time 2025-02-22 01:40:07 [2025-02-22 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529109', 'tblTempUsageDetail_20' ) start [2025-02-22 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529109', 'tblTempUsageDetail_20' ) end [2025-02-22 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529109', 'tblTempVendorCDR_20' ) start [2025-02-22 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529109', 'tblTempVendorCDR_20' ) end [2025-02-22 01:40:19] Production.INFO: ProcessCDR(1,14529109,1,1,2) [2025-02-22 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529109', 'tblTempUsageDetail_20' ) start [2025-02-22 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529109', 'tblTempUsageDetail_20' ) end [2025-02-22 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:40:22] Production.INFO: ==3455== Releasing lock... [2025-02-22 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:41:05 [end_date_ymd] => 2025-02-22 01:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:41:05' and `end` < '2025-02-22 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-02-22 01:41:17] Production.INFO: count ==501 [2025-02-22 01:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:41:05 - End Time 2025-02-22 01:41:05 [2025-02-22 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529114', 'tblTempUsageDetail_20' ) start [2025-02-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529114', 'tblTempUsageDetail_20' ) end [2025-02-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529114', 'tblTempVendorCDR_20' ) start [2025-02-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529114', 'tblTempVendorCDR_20' ) end [2025-02-22 01:41:17] Production.INFO: ProcessCDR(1,14529114,1,1,2) [2025-02-22 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529114', 'tblTempUsageDetail_20' ) start [2025-02-22 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529114', 'tblTempUsageDetail_20' ) end [2025-02-22 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:41:20] Production.INFO: ==3541== Releasing lock... [2025-02-22 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:41:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:42:06 [end_date_ymd] => 2025-02-22 01:42:06 [RateCDR] => 1 ) [2025-02-22 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:42:06' and `end` < '2025-02-22 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:42:18] Production.INFO: count ==519 [2025-02-22 01:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:42:06 - End Time 2025-02-22 01:42:06 [2025-02-22 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529119', 'tblTempUsageDetail_20' ) start [2025-02-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529119', 'tblTempUsageDetail_20' ) end [2025-02-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529119', 'tblTempVendorCDR_20' ) start [2025-02-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529119', 'tblTempVendorCDR_20' ) end [2025-02-22 01:42:18] Production.INFO: ProcessCDR(1,14529119,1,1,2) [2025-02-22 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529119', 'tblTempUsageDetail_20' ) start [2025-02-22 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529119', 'tblTempUsageDetail_20' ) end [2025-02-22 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:42:22] Production.INFO: ==3622== Releasing lock... [2025-02-22 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:43:05 [end_date_ymd] => 2025-02-22 01:43:05 [RateCDR] => 1 ) [2025-02-22 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:43:05' and `end` < '2025-02-22 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:43:17] Production.INFO: count ==519 [2025-02-22 01:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:43:05 - End Time 2025-02-22 01:43:05 [2025-02-22 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529124', 'tblTempUsageDetail_20' ) start [2025-02-22 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529124', 'tblTempUsageDetail_20' ) end [2025-02-22 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529124', 'tblTempVendorCDR_20' ) start [2025-02-22 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529124', 'tblTempVendorCDR_20' ) end [2025-02-22 01:43:17] Production.INFO: ProcessCDR(1,14529124,1,1,2) [2025-02-22 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529124', 'tblTempUsageDetail_20' ) start [2025-02-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529124', 'tblTempUsageDetail_20' ) end [2025-02-22 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:43:21] Production.INFO: ==3696== Releasing lock... [2025-02-22 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:44:06 [end_date_ymd] => 2025-02-22 01:44:06 [RateCDR] => 1 ) [2025-02-22 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:44:06' and `end` < '2025-02-22 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:44:18] Production.INFO: count ==519 [2025-02-22 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:44:06 - End Time 2025-02-22 01:44:06 [2025-02-22 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529129', 'tblTempUsageDetail_20' ) start [2025-02-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529129', 'tblTempUsageDetail_20' ) end [2025-02-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529129', 'tblTempVendorCDR_20' ) start [2025-02-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529129', 'tblTempVendorCDR_20' ) end [2025-02-22 01:44:18] Production.INFO: ProcessCDR(1,14529129,1,1,2) [2025-02-22 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529129', 'tblTempUsageDetail_20' ) start [2025-02-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529129', 'tblTempUsageDetail_20' ) end [2025-02-22 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:44:21] Production.INFO: ==3778== Releasing lock... [2025-02-22 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:45:05 [end_date_ymd] => 2025-02-22 01:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:45:05' and `end` < '2025-02-22 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-02-22 01:45:17] Production.INFO: count ==513 [2025-02-22 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:45:05 - End Time 2025-02-22 01:45:05 [2025-02-22 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529134', 'tblTempUsageDetail_20' ) start [2025-02-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529134', 'tblTempUsageDetail_20' ) end [2025-02-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529134', 'tblTempVendorCDR_20' ) start [2025-02-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529134', 'tblTempVendorCDR_20' ) end [2025-02-22 01:45:17] Production.INFO: ProcessCDR(1,14529134,1,1,2) [2025-02-22 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529134', 'tblTempUsageDetail_20' ) start [2025-02-22 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529134', 'tblTempUsageDetail_20' ) end [2025-02-22 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:45:20] Production.INFO: ==3861== Releasing lock... [2025-02-22 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:45:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:46:05 [end_date_ymd] => 2025-02-22 01:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:46:05' and `end` < '2025-02-22 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-02-22 01:46:17] Production.INFO: count ==509 [2025-02-22 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:46:05 - End Time 2025-02-22 01:46:05 [2025-02-22 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529139', 'tblTempUsageDetail_20' ) start [2025-02-22 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529139', 'tblTempUsageDetail_20' ) end [2025-02-22 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529139', 'tblTempVendorCDR_20' ) start [2025-02-22 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529139', 'tblTempVendorCDR_20' ) end [2025-02-22 01:46:17] Production.INFO: ProcessCDR(1,14529139,1,1,2) [2025-02-22 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529139', 'tblTempUsageDetail_20' ) start [2025-02-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529139', 'tblTempUsageDetail_20' ) end [2025-02-22 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:46:21] Production.INFO: ==3941== Releasing lock... [2025-02-22 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:47:05 [end_date_ymd] => 2025-02-22 01:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:47:05' and `end` < '2025-02-22 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-02-22 01:47:17] Production.INFO: count ==494 [2025-02-22 01:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:47:05 - End Time 2025-02-22 01:47:05 [2025-02-22 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529144', 'tblTempUsageDetail_20' ) start [2025-02-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529144', 'tblTempUsageDetail_20' ) end [2025-02-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529144', 'tblTempVendorCDR_20' ) start [2025-02-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529144', 'tblTempVendorCDR_20' ) end [2025-02-22 01:47:17] Production.INFO: ProcessCDR(1,14529144,1,1,2) [2025-02-22 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529144', 'tblTempUsageDetail_20' ) start [2025-02-22 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529144', 'tblTempUsageDetail_20' ) end [2025-02-22 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:47:21] Production.INFO: ==4020== Releasing lock... [2025-02-22 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:47:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:48:06 [end_date_ymd] => 2025-02-22 01:48:06 [RateCDR] => 1 ) [2025-02-22 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:48:06' and `end` < '2025-02-22 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:48:18] Production.INFO: count ==491 [2025-02-22 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:48:06 - End Time 2025-02-22 01:48:06 [2025-02-22 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529149', 'tblTempUsageDetail_20' ) start [2025-02-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529149', 'tblTempUsageDetail_20' ) end [2025-02-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529149', 'tblTempVendorCDR_20' ) start [2025-02-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529149', 'tblTempVendorCDR_20' ) end [2025-02-22 01:48:18] Production.INFO: ProcessCDR(1,14529149,1,1,2) [2025-02-22 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529149', 'tblTempUsageDetail_20' ) start [2025-02-22 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529149', 'tblTempUsageDetail_20' ) end [2025-02-22 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:48:22] Production.INFO: ==4094== Releasing lock... [2025-02-22 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:49:06 [end_date_ymd] => 2025-02-22 01:49:06 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:49:06' and `end` < '2025-02-22 01: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-02-22 01:49:17] Production.INFO: count ==491 [2025-02-22 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:49:06 - End Time 2025-02-22 01:49:06 [2025-02-22 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529154', 'tblTempUsageDetail_20' ) start [2025-02-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529154', 'tblTempUsageDetail_20' ) end [2025-02-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529154', 'tblTempVendorCDR_20' ) start [2025-02-22 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529154', 'tblTempVendorCDR_20' ) end [2025-02-22 01:49:18] Production.INFO: ProcessCDR(1,14529154,1,1,2) [2025-02-22 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529154', 'tblTempUsageDetail_20' ) start [2025-02-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529154', 'tblTempUsageDetail_20' ) end [2025-02-22 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:49:21] Production.INFO: ==4170== Releasing lock... [2025-02-22 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:49:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:50:07 [end_date_ymd] => 2025-02-22 01:50:07 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:50:07' and `end` < '2025-02-22 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-02-22 01:50:19] Production.INFO: count ==503 [2025-02-22 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 22:50:07 - End Time 2025-02-22 01:50:07 [2025-02-22 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529160', 'tblTempUsageDetail_20' ) start [2025-02-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529160', 'tblTempUsageDetail_20' ) end [2025-02-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529160', 'tblTempVendorCDR_20' ) start [2025-02-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529160', 'tblTempVendorCDR_20' ) end [2025-02-22 01:50:19] Production.INFO: ProcessCDR(1,14529160,1,1,2) [2025-02-22 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529160', 'tblTempUsageDetail_20' ) start [2025-02-22 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529160', 'tblTempUsageDetail_20' ) end [2025-02-22 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:50:22] Production.INFO: ==4249== Releasing lock... [2025-02-22 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:51:05 [end_date_ymd] => 2025-02-22 01:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:51:05' and `end` < '2025-02-22 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-02-22 01:51:17] Production.INFO: count ==510 [2025-02-22 01:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:51:05 - End Time 2025-02-22 01:51:05 [2025-02-22 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529165', 'tblTempUsageDetail_20' ) start [2025-02-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529165', 'tblTempUsageDetail_20' ) end [2025-02-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529165', 'tblTempVendorCDR_20' ) start [2025-02-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529165', 'tblTempVendorCDR_20' ) end [2025-02-22 01:51:17] Production.INFO: ProcessCDR(1,14529165,1,1,2) [2025-02-22 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529165', 'tblTempUsageDetail_20' ) start [2025-02-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529165', 'tblTempUsageDetail_20' ) end [2025-02-22 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:51:21] Production.INFO: ==4323== Releasing lock... [2025-02-22 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:52:06 [end_date_ymd] => 2025-02-22 01:52:06 [RateCDR] => 1 ) [2025-02-22 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:52:06' and `end` < '2025-02-22 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:52:18] Production.INFO: count ==510 [2025-02-22 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:52:06 - End Time 2025-02-22 01:52:06 [2025-02-22 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529170', 'tblTempUsageDetail_20' ) start [2025-02-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529170', 'tblTempUsageDetail_20' ) end [2025-02-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529170', 'tblTempVendorCDR_20' ) start [2025-02-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529170', 'tblTempVendorCDR_20' ) end [2025-02-22 01:52:18] Production.INFO: ProcessCDR(1,14529170,1,1,2) [2025-02-22 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529170', 'tblTempUsageDetail_20' ) start [2025-02-22 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529170', 'tblTempUsageDetail_20' ) end [2025-02-22 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:52:22] Production.INFO: ==4396== Releasing lock... [2025-02-22 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:53:05 [end_date_ymd] => 2025-02-22 01:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:53:05' and `end` < '2025-02-22 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-02-22 01:53:17] Production.INFO: count ==514 [2025-02-22 01:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:53:05 - End Time 2025-02-22 01:53:05 [2025-02-22 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529175', 'tblTempUsageDetail_20' ) start [2025-02-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529175', 'tblTempUsageDetail_20' ) end [2025-02-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529175', 'tblTempVendorCDR_20' ) start [2025-02-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529175', 'tblTempVendorCDR_20' ) end [2025-02-22 01:53:17] Production.INFO: ProcessCDR(1,14529175,1,1,2) [2025-02-22 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529175', 'tblTempUsageDetail_20' ) start [2025-02-22 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529175', 'tblTempUsageDetail_20' ) end [2025-02-22 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:53:21] Production.INFO: ==4510== Releasing lock... [2025-02-22 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:54:05 [end_date_ymd] => 2025-02-22 01:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:54:05' and `end` < '2025-02-22 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-02-22 01:54:17] Production.INFO: count ==515 [2025-02-22 01:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:54:05 - End Time 2025-02-22 01:54:05 [2025-02-22 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529180', 'tblTempUsageDetail_20' ) start [2025-02-22 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529180', 'tblTempUsageDetail_20' ) end [2025-02-22 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529180', 'tblTempVendorCDR_20' ) start [2025-02-22 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529180', 'tblTempVendorCDR_20' ) end [2025-02-22 01:54:17] Production.INFO: ProcessCDR(1,14529180,1,1,2) [2025-02-22 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529180', 'tblTempUsageDetail_20' ) start [2025-02-22 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529180', 'tblTempUsageDetail_20' ) end [2025-02-22 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:54:22] Production.INFO: ==4589== Releasing lock... [2025-02-22 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:55:05 [end_date_ymd] => 2025-02-22 01:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 22:55:05' and `end` < '2025-02-22 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-02-22 01:55:17] Production.INFO: count ==515 [2025-02-22 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:55:05 - End Time 2025-02-22 01:55:05 [2025-02-22 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529185', 'tblTempUsageDetail_20' ) start [2025-02-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529185', 'tblTempUsageDetail_20' ) end [2025-02-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529185', 'tblTempVendorCDR_20' ) start [2025-02-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529185', 'tblTempVendorCDR_20' ) end [2025-02-22 01:55:17] Production.INFO: ProcessCDR(1,14529185,1,1,2) [2025-02-22 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529185', 'tblTempUsageDetail_20' ) start [2025-02-22 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529185', 'tblTempUsageDetail_20' ) end [2025-02-22 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:55:21] Production.INFO: ==4667== Releasing lock... [2025-02-22 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:56:06 [end_date_ymd] => 2025-02-22 01:56:06 [RateCDR] => 1 ) [2025-02-22 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:56:06' and `end` < '2025-02-22 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:56:17] Production.INFO: count ==515 [2025-02-22 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:56:06 - End Time 2025-02-22 01:56:06 [2025-02-22 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529190', 'tblTempUsageDetail_20' ) start [2025-02-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529190', 'tblTempUsageDetail_20' ) end [2025-02-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529190', 'tblTempVendorCDR_20' ) start [2025-02-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529190', 'tblTempVendorCDR_20' ) end [2025-02-22 01:56:18] Production.INFO: ProcessCDR(1,14529190,1,1,2) [2025-02-22 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529190', 'tblTempUsageDetail_20' ) start [2025-02-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529190', 'tblTempUsageDetail_20' ) end [2025-02-22 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:56:21] Production.INFO: ==4739== Releasing lock... [2025-02-22 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:57:06 [end_date_ymd] => 2025-02-22 01:57:06 [RateCDR] => 1 ) [2025-02-22 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:57:06' and `end` < '2025-02-22 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:57:17] Production.INFO: count ==515 [2025-02-22 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:57:06 - End Time 2025-02-22 01:57:06 [2025-02-22 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529195', 'tblTempUsageDetail_20' ) start [2025-02-22 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529195', 'tblTempUsageDetail_20' ) end [2025-02-22 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529195', 'tblTempVendorCDR_20' ) start [2025-02-22 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529195', 'tblTempVendorCDR_20' ) end [2025-02-22 01:57:17] Production.INFO: ProcessCDR(1,14529195,1,1,2) [2025-02-22 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529195', 'tblTempUsageDetail_20' ) start [2025-02-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529195', 'tblTempUsageDetail_20' ) end [2025-02-22 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:57:21] Production.INFO: ==4811== Releasing lock... [2025-02-22 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:58:06 [end_date_ymd] => 2025-02-22 01:58:06 [RateCDR] => 1 ) [2025-02-22 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 22:58:06' and `end` < '2025-02-22 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 01:58:17] Production.INFO: count ==515 [2025-02-22 01:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 22:58:06 - End Time 2025-02-22 01:58:06 [2025-02-22 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529200', 'tblTempUsageDetail_20' ) start [2025-02-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529200', 'tblTempUsageDetail_20' ) end [2025-02-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529200', 'tblTempVendorCDR_20' ) start [2025-02-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529200', 'tblTempVendorCDR_20' ) end [2025-02-22 01:58:18] Production.INFO: ProcessCDR(1,14529200,1,1,2) [2025-02-22 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529200', 'tblTempUsageDetail_20' ) start [2025-02-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529200', 'tblTempUsageDetail_20' ) end [2025-02-22 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:58:21] Production.INFO: ==4892== Releasing lock... [2025-02-22 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 22:59:06 [end_date_ymd] => 2025-02-22 01:59:06 [RateCDR] => 1 ) [2025-02-22 01: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-02-21 22:59:06' and `end` < '2025-02-22 01: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-02-22 01:59:18] Production.INFO: count ==512 [2025-02-22 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-21 22:59:06 - End Time 2025-02-22 01:59:06 [2025-02-22 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529205', 'tblTempUsageDetail_20' ) start [2025-02-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529205', 'tblTempUsageDetail_20' ) end [2025-02-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529205', 'tblTempVendorCDR_20' ) start [2025-02-22 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529205', 'tblTempVendorCDR_20' ) end [2025-02-22 01:59:18] Production.INFO: ProcessCDR(1,14529205,1,1,2) [2025-02-22 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529205', 'tblTempUsageDetail_20' ) start [2025-02-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529205', 'tblTempUsageDetail_20' ) end [2025-02-22 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 01:59:21] Production.INFO: ==4964== Releasing lock... [2025-02-22 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 01:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:00:07 [end_date_ymd] => 2025-02-22 02:00:07 [RateCDR] => 1 ) [2025-02-22 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:00:07' and `end` < '2025-02-22 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:00:18] Production.INFO: count ==510 [2025-02-22 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-21 23:00:07 - End Time 2025-02-22 02:00:07 [2025-02-22 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529211', 'tblTempUsageDetail_20' ) start [2025-02-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529211', 'tblTempUsageDetail_20' ) end [2025-02-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529211', 'tblTempVendorCDR_20' ) start [2025-02-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529211', 'tblTempVendorCDR_20' ) end [2025-02-22 02:00:19] Production.INFO: ProcessCDR(1,14529211,1,1,2) [2025-02-22 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529211', 'tblTempUsageDetail_20' ) start [2025-02-22 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529211', 'tblTempUsageDetail_20' ) end [2025-02-22 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:00:24] Production.INFO: ==5044== Releasing lock... [2025-02-22 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:00:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:01:05 [end_date_ymd] => 2025-02-22 02:01:05 [RateCDR] => 1 ) [2025-02-22 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:01:05' and `end` < '2025-02-22 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:01:17] Production.INFO: count ==527 [2025-02-22 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:01:05 - End Time 2025-02-22 02:01:05 [2025-02-22 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529216', 'tblTempUsageDetail_20' ) start [2025-02-22 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529216', 'tblTempUsageDetail_20' ) end [2025-02-22 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529216', 'tblTempVendorCDR_20' ) start [2025-02-22 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529216', 'tblTempVendorCDR_20' ) end [2025-02-22 02:01:17] Production.INFO: ProcessCDR(1,14529216,1,1,2) [2025-02-22 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529216', 'tblTempUsageDetail_20' ) start [2025-02-22 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529216', 'tblTempUsageDetail_20' ) end [2025-02-22 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:01:21] Production.INFO: ==5218== Releasing lock... [2025-02-22 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:02:05 [end_date_ymd] => 2025-02-22 02:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:02:05' and `end` < '2025-02-22 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-02-22 02:02:17] Production.INFO: count ==525 [2025-02-22 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:02:05 - End Time 2025-02-22 02:02:05 [2025-02-22 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529221', 'tblTempUsageDetail_20' ) start [2025-02-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529221', 'tblTempUsageDetail_20' ) end [2025-02-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529221', 'tblTempVendorCDR_20' ) start [2025-02-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529221', 'tblTempVendorCDR_20' ) end [2025-02-22 02:02:18] Production.INFO: ProcessCDR(1,14529221,1,1,2) [2025-02-22 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529221', 'tblTempUsageDetail_20' ) start [2025-02-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529221', 'tblTempUsageDetail_20' ) end [2025-02-22 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:02:21] Production.INFO: ==5288== Releasing lock... [2025-02-22 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:02:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:03:06 [end_date_ymd] => 2025-02-22 02:03:06 [RateCDR] => 1 ) [2025-02-22 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:03:06' and `end` < '2025-02-22 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:03:18] Production.INFO: count ==523 [2025-02-22 02:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:03:06 - End Time 2025-02-22 02:03:06 [2025-02-22 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529226', 'tblTempUsageDetail_20' ) start [2025-02-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529226', 'tblTempUsageDetail_20' ) end [2025-02-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529226', 'tblTempVendorCDR_20' ) start [2025-02-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529226', 'tblTempVendorCDR_20' ) end [2025-02-22 02:03:18] Production.INFO: ProcessCDR(1,14529226,1,1,2) [2025-02-22 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529226', 'tblTempUsageDetail_20' ) start [2025-02-22 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529226', 'tblTempUsageDetail_20' ) end [2025-02-22 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:03:22] Production.INFO: ==5381== Releasing lock... [2025-02-22 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:03:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:04:05 [end_date_ymd] => 2025-02-22 02:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:04:05' and `end` < '2025-02-22 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-02-22 02:04:17] Production.INFO: count ==523 [2025-02-22 02:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:04:05 - End Time 2025-02-22 02:04:05 [2025-02-22 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529231', 'tblTempUsageDetail_20' ) start [2025-02-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529231', 'tblTempUsageDetail_20' ) end [2025-02-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529231', 'tblTempVendorCDR_20' ) start [2025-02-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529231', 'tblTempVendorCDR_20' ) end [2025-02-22 02:04:17] Production.INFO: ProcessCDR(1,14529231,1,1,2) [2025-02-22 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529231', 'tblTempUsageDetail_20' ) start [2025-02-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529231', 'tblTempUsageDetail_20' ) end [2025-02-22 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:04:22] Production.INFO: ==5477== Releasing lock... [2025-02-22 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:04:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:05:05 [end_date_ymd] => 2025-02-22 02:05:05 [RateCDR] => 1 ) [2025-02-22 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:05:05' and `end` < '2025-02-22 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:05:17] Production.INFO: count ==523 [2025-02-22 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:05:05 - End Time 2025-02-22 02:05:05 [2025-02-22 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529236', 'tblTempUsageDetail_20' ) start [2025-02-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529236', 'tblTempUsageDetail_20' ) end [2025-02-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529236', 'tblTempVendorCDR_20' ) start [2025-02-22 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529236', 'tblTempVendorCDR_20' ) end [2025-02-22 02:05:18] Production.INFO: ProcessCDR(1,14529236,1,1,2) [2025-02-22 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529236', 'tblTempUsageDetail_20' ) start [2025-02-22 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529236', 'tblTempUsageDetail_20' ) end [2025-02-22 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:05:21] Production.INFO: ==5582== Releasing lock... [2025-02-22 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:06:05 [end_date_ymd] => 2025-02-22 02:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:06:05' and `end` < '2025-02-22 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:06:17] Production.INFO: count ==523 [2025-02-22 02:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:06:05 - End Time 2025-02-22 02:06:05 [2025-02-22 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529241', 'tblTempUsageDetail_20' ) start [2025-02-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529241', 'tblTempUsageDetail_20' ) end [2025-02-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529241', 'tblTempVendorCDR_20' ) start [2025-02-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529241', 'tblTempVendorCDR_20' ) end [2025-02-22 02:06:17] Production.INFO: ProcessCDR(1,14529241,1,1,2) [2025-02-22 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529241', 'tblTempUsageDetail_20' ) start [2025-02-22 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529241', 'tblTempUsageDetail_20' ) end [2025-02-22 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:06:20] Production.INFO: ==5672== Releasing lock... [2025-02-22 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:06:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:07:06 [end_date_ymd] => 2025-02-22 02:07:06 [RateCDR] => 1 ) [2025-02-22 02: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-02-21 23:07:06' and `end` < '2025-02-22 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:07:17] Production.INFO: count ==522 [2025-02-22 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:07:06 - End Time 2025-02-22 02:07:06 [2025-02-22 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529246', 'tblTempUsageDetail_20' ) start [2025-02-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529246', 'tblTempUsageDetail_20' ) end [2025-02-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529246', 'tblTempVendorCDR_20' ) start [2025-02-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529246', 'tblTempVendorCDR_20' ) end [2025-02-22 02:07:18] Production.INFO: ProcessCDR(1,14529246,1,1,2) [2025-02-22 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529246', 'tblTempUsageDetail_20' ) start [2025-02-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529246', 'tblTempUsageDetail_20' ) end [2025-02-22 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:07:21] Production.INFO: ==5773== Releasing lock... [2025-02-22 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:08:05 [end_date_ymd] => 2025-02-22 02:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:08:05' and `end` < '2025-02-22 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-02-22 02:08:17] Production.INFO: count ==522 [2025-02-22 02:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:08:05 - End Time 2025-02-22 02:08:05 [2025-02-22 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529251', 'tblTempUsageDetail_20' ) start [2025-02-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529251', 'tblTempUsageDetail_20' ) end [2025-02-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529251', 'tblTempVendorCDR_20' ) start [2025-02-22 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529251', 'tblTempVendorCDR_20' ) end [2025-02-22 02:08:17] Production.INFO: ProcessCDR(1,14529251,1,1,2) [2025-02-22 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529251', 'tblTempUsageDetail_20' ) start [2025-02-22 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529251', 'tblTempUsageDetail_20' ) end [2025-02-22 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:08:20] Production.INFO: ==5911== Releasing lock... [2025-02-22 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:08:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:09:06 [end_date_ymd] => 2025-02-22 02:09:06 [RateCDR] => 1 ) [2025-02-22 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:09:06' and `end` < '2025-02-22 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:09:17] Production.INFO: count ==522 [2025-02-22 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:09:06 - End Time 2025-02-22 02:09:06 [2025-02-22 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529256', 'tblTempUsageDetail_20' ) start [2025-02-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529256', 'tblTempUsageDetail_20' ) end [2025-02-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529256', 'tblTempVendorCDR_20' ) start [2025-02-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529256', 'tblTempVendorCDR_20' ) end [2025-02-22 02:09:18] Production.INFO: ProcessCDR(1,14529256,1,1,2) [2025-02-22 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529256', 'tblTempUsageDetail_20' ) start [2025-02-22 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529256', 'tblTempUsageDetail_20' ) end [2025-02-22 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:09:21] Production.INFO: ==6006== Releasing lock... [2025-02-22 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:10:06 [end_date_ymd] => 2025-02-22 02:10:06 [RateCDR] => 1 ) [2025-02-22 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:10:06' and `end` < '2025-02-22 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:10:17] Production.INFO: count ==530 [2025-02-22 02:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:10:06 - End Time 2025-02-22 02:10:06 [2025-02-22 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529262', 'tblTempUsageDetail_20' ) start [2025-02-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529262', 'tblTempUsageDetail_20' ) end [2025-02-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529262', 'tblTempVendorCDR_20' ) start [2025-02-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529262', 'tblTempVendorCDR_20' ) end [2025-02-22 02:10:18] Production.INFO: ProcessCDR(1,14529262,1,1,2) [2025-02-22 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529262', 'tblTempUsageDetail_20' ) start [2025-02-22 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529262', 'tblTempUsageDetail_20' ) end [2025-02-22 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:10:21] Production.INFO: ==6104== Releasing lock... [2025-02-22 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:10:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:11:05 [end_date_ymd] => 2025-02-22 02:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:11:05' and `end` < '2025-02-22 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-02-22 02:11:17] Production.INFO: count ==559 [2025-02-22 02:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:11:05 - End Time 2025-02-22 02:11:05 [2025-02-22 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529267', 'tblTempUsageDetail_20' ) start [2025-02-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529267', 'tblTempUsageDetail_20' ) end [2025-02-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529267', 'tblTempVendorCDR_20' ) start [2025-02-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529267', 'tblTempVendorCDR_20' ) end [2025-02-22 02:11:17] Production.INFO: ProcessCDR(1,14529267,1,1,2) [2025-02-22 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529267', 'tblTempUsageDetail_20' ) start [2025-02-22 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529267', 'tblTempUsageDetail_20' ) end [2025-02-22 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:11:21] Production.INFO: ==6202== Releasing lock... [2025-02-22 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:11:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:12:05 [end_date_ymd] => 2025-02-22 02:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:12:05' and `end` < '2025-02-22 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-02-22 02:12:16] Production.INFO: count ==582 [2025-02-22 02:12:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:12:05 - End Time 2025-02-22 02:12:05 [2025-02-22 02:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529272', 'tblTempUsageDetail_20' ) start [2025-02-22 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529272', 'tblTempUsageDetail_20' ) end [2025-02-22 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529272', 'tblTempVendorCDR_20' ) start [2025-02-22 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529272', 'tblTempVendorCDR_20' ) end [2025-02-22 02:12:16] Production.INFO: ProcessCDR(1,14529272,1,1,2) [2025-02-22 02:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529272', 'tblTempUsageDetail_20' ) start [2025-02-22 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529272', 'tblTempUsageDetail_20' ) end [2025-02-22 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:12:20] Production.INFO: ==6308== Releasing lock... [2025-02-22 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:12:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:13:06 [end_date_ymd] => 2025-02-22 02:13:06 [RateCDR] => 1 ) [2025-02-22 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:13:06' and `end` < '2025-02-22 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:13:17] Production.INFO: count ==584 [2025-02-22 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:13:06 - End Time 2025-02-22 02:13:06 [2025-02-22 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529277', 'tblTempUsageDetail_20' ) start [2025-02-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529277', 'tblTempUsageDetail_20' ) end [2025-02-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529277', 'tblTempVendorCDR_20' ) start [2025-02-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529277', 'tblTempVendorCDR_20' ) end [2025-02-22 02:13:17] Production.INFO: ProcessCDR(1,14529277,1,1,2) [2025-02-22 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529277', 'tblTempUsageDetail_20' ) start [2025-02-22 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529277', 'tblTempUsageDetail_20' ) end [2025-02-22 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:13:22] Production.INFO: ==6412== Releasing lock... [2025-02-22 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:14:05 [end_date_ymd] => 2025-02-22 02:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:14:05' and `end` < '2025-02-22 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-02-22 02:14:16] Production.INFO: count ==584 [2025-02-22 02:14:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:14:05 - End Time 2025-02-22 02:14:05 [2025-02-22 02:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529282', 'tblTempUsageDetail_20' ) start [2025-02-22 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529282', 'tblTempUsageDetail_20' ) end [2025-02-22 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529282', 'tblTempVendorCDR_20' ) start [2025-02-22 02:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529282', 'tblTempVendorCDR_20' ) end [2025-02-22 02:14:16] Production.INFO: ProcessCDR(1,14529282,1,1,2) [2025-02-22 02:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529282', 'tblTempUsageDetail_20' ) start [2025-02-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529282', 'tblTempUsageDetail_20' ) end [2025-02-22 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:14:20] Production.INFO: ==6499== Releasing lock... [2025-02-22 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:14:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:15:05 [end_date_ymd] => 2025-02-22 02:15:05 [RateCDR] => 1 ) [2025-02-22 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:15:05' and `end` < '2025-02-22 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:15:16] Production.INFO: count ==615 [2025-02-22 02:15:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:15:05 - End Time 2025-02-22 02:15:05 [2025-02-22 02:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529287', 'tblTempUsageDetail_20' ) start [2025-02-22 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529287', 'tblTempUsageDetail_20' ) end [2025-02-22 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529287', 'tblTempVendorCDR_20' ) start [2025-02-22 02:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529287', 'tblTempVendorCDR_20' ) end [2025-02-22 02:15:16] Production.INFO: ProcessCDR(1,14529287,1,1,2) [2025-02-22 02:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529287', 'tblTempUsageDetail_20' ) start [2025-02-22 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529287', 'tblTempUsageDetail_20' ) end [2025-02-22 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:15:20] Production.INFO: ==6573== Releasing lock... [2025-02-22 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:15:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:16:05 [end_date_ymd] => 2025-02-22 02:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:16:05' and `end` < '2025-02-22 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-02-22 02:16:17] Production.INFO: count ==612 [2025-02-22 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:16:05 - End Time 2025-02-22 02:16:05 [2025-02-22 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529292', 'tblTempUsageDetail_20' ) start [2025-02-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529292', 'tblTempUsageDetail_20' ) end [2025-02-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529292', 'tblTempVendorCDR_20' ) start [2025-02-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529292', 'tblTempVendorCDR_20' ) end [2025-02-22 02:16:17] Production.INFO: ProcessCDR(1,14529292,1,1,2) [2025-02-22 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529292', 'tblTempUsageDetail_20' ) start [2025-02-22 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529292', 'tblTempUsageDetail_20' ) end [2025-02-22 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:16:20] Production.INFO: ==6645== Releasing lock... [2025-02-22 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:16:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:17:05 [end_date_ymd] => 2025-02-22 02:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:17:05' and `end` < '2025-02-22 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-02-22 02:17:17] Production.INFO: count ==611 [2025-02-22 02:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:17:05 - End Time 2025-02-22 02:17:05 [2025-02-22 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529297', 'tblTempUsageDetail_20' ) start [2025-02-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529297', 'tblTempUsageDetail_20' ) end [2025-02-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529297', 'tblTempVendorCDR_20' ) start [2025-02-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529297', 'tblTempVendorCDR_20' ) end [2025-02-22 02:17:17] Production.INFO: ProcessCDR(1,14529297,1,1,2) [2025-02-22 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529297', 'tblTempUsageDetail_20' ) start [2025-02-22 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529297', 'tblTempUsageDetail_20' ) end [2025-02-22 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:17:20] Production.INFO: ==6720== Releasing lock... [2025-02-22 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:17:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:18:05 [end_date_ymd] => 2025-02-22 02:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:18:05' and `end` < '2025-02-22 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-02-22 02:18:17] Production.INFO: count ==614 [2025-02-22 02:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:18:05 - End Time 2025-02-22 02:18:05 [2025-02-22 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529302', 'tblTempUsageDetail_20' ) start [2025-02-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529302', 'tblTempUsageDetail_20' ) end [2025-02-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529302', 'tblTempVendorCDR_20' ) start [2025-02-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529302', 'tblTempVendorCDR_20' ) end [2025-02-22 02:18:17] Production.INFO: ProcessCDR(1,14529302,1,1,2) [2025-02-22 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529302', 'tblTempUsageDetail_20' ) start [2025-02-22 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529302', 'tblTempUsageDetail_20' ) end [2025-02-22 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:18:21] Production.INFO: ==6794== Releasing lock... [2025-02-22 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:18:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:19:05 [end_date_ymd] => 2025-02-22 02:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:19:05' and `end` < '2025-02-22 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-02-22 02:19:17] Production.INFO: count ==610 [2025-02-22 02:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:19:05 - End Time 2025-02-22 02:19:05 [2025-02-22 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529307', 'tblTempUsageDetail_20' ) start [2025-02-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529307', 'tblTempUsageDetail_20' ) end [2025-02-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529307', 'tblTempVendorCDR_20' ) start [2025-02-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529307', 'tblTempVendorCDR_20' ) end [2025-02-22 02:19:17] Production.INFO: ProcessCDR(1,14529307,1,1,2) [2025-02-22 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529307', 'tblTempUsageDetail_20' ) start [2025-02-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529307', 'tblTempUsageDetail_20' ) end [2025-02-22 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:19:21] Production.INFO: ==6871== Releasing lock... [2025-02-22 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:20:07 [end_date_ymd] => 2025-02-22 02:20:07 [RateCDR] => 1 ) [2025-02-22 02:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:20:07' and `end` < '2025-02-22 02:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:20:19] Production.INFO: count ==614 [2025-02-22 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 23:20:07 - End Time 2025-02-22 02:20:07 [2025-02-22 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529313', 'tblTempUsageDetail_20' ) start [2025-02-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529313', 'tblTempUsageDetail_20' ) end [2025-02-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529313', 'tblTempVendorCDR_20' ) start [2025-02-22 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529313', 'tblTempVendorCDR_20' ) end [2025-02-22 02:20:19] Production.INFO: ProcessCDR(1,14529313,1,1,2) [2025-02-22 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529313', 'tblTempUsageDetail_20' ) start [2025-02-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529313', 'tblTempUsageDetail_20' ) end [2025-02-22 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:20:22] Production.INFO: ==6949== Releasing lock... [2025-02-22 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:21:05 [end_date_ymd] => 2025-02-22 02:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:21:05' and `end` < '2025-02-22 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-02-22 02:21:17] Production.INFO: count ==613 [2025-02-22 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:21:05 - End Time 2025-02-22 02:21:05 [2025-02-22 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529318', 'tblTempUsageDetail_20' ) start [2025-02-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529318', 'tblTempUsageDetail_20' ) end [2025-02-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529318', 'tblTempVendorCDR_20' ) start [2025-02-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529318', 'tblTempVendorCDR_20' ) end [2025-02-22 02:21:17] Production.INFO: ProcessCDR(1,14529318,1,1,2) [2025-02-22 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529318', 'tblTempUsageDetail_20' ) start [2025-02-22 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529318', 'tblTempUsageDetail_20' ) end [2025-02-22 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:21:20] Production.INFO: ==7022== Releasing lock... [2025-02-22 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:21:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:22:06 [end_date_ymd] => 2025-02-22 02:22:06 [RateCDR] => 1 ) [2025-02-22 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:22:06' and `end` < '2025-02-22 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:22:17] Production.INFO: count ==608 [2025-02-22 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:22:06 - End Time 2025-02-22 02:22:06 [2025-02-22 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529323', 'tblTempUsageDetail_20' ) start [2025-02-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529323', 'tblTempUsageDetail_20' ) end [2025-02-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529323', 'tblTempVendorCDR_20' ) start [2025-02-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529323', 'tblTempVendorCDR_20' ) end [2025-02-22 02:22:18] Production.INFO: ProcessCDR(1,14529323,1,1,2) [2025-02-22 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529323', 'tblTempUsageDetail_20' ) start [2025-02-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529323', 'tblTempUsageDetail_20' ) end [2025-02-22 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:22:21] Production.INFO: ==7096== Releasing lock... [2025-02-22 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:22:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:23:04 [end_date_ymd] => 2025-02-22 02:23:04 [RateCDR] => 1 ) [2025-02-22 02:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:23:04' and `end` < '2025-02-22 02:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:23:16] Production.INFO: count ==596 [2025-02-22 02:23:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:23:04 - End Time 2025-02-22 02:23:04 [2025-02-22 02:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529328', 'tblTempUsageDetail_20' ) start [2025-02-22 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529328', 'tblTempUsageDetail_20' ) end [2025-02-22 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529328', 'tblTempVendorCDR_20' ) start [2025-02-22 02:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529328', 'tblTempVendorCDR_20' ) end [2025-02-22 02:23:16] Production.INFO: ProcessCDR(1,14529328,1,1,2) [2025-02-22 02:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529328', 'tblTempUsageDetail_20' ) start [2025-02-22 02:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529328', 'tblTempUsageDetail_20' ) end [2025-02-22 02:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:23:20] Production.INFO: ==7172== Releasing lock... [2025-02-22 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:23:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:24:06 [end_date_ymd] => 2025-02-22 02:24:06 [RateCDR] => 1 ) [2025-02-22 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:24:06' and `end` < '2025-02-22 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:24:17] Production.INFO: count ==592 [2025-02-22 02:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:24:06 - End Time 2025-02-22 02:24:06 [2025-02-22 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529333', 'tblTempUsageDetail_20' ) start [2025-02-22 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529333', 'tblTempUsageDetail_20' ) end [2025-02-22 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529333', 'tblTempVendorCDR_20' ) start [2025-02-22 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529333', 'tblTempVendorCDR_20' ) end [2025-02-22 02:24:17] Production.INFO: ProcessCDR(1,14529333,1,1,2) [2025-02-22 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529333', 'tblTempUsageDetail_20' ) start [2025-02-22 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529333', 'tblTempUsageDetail_20' ) end [2025-02-22 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:24:22] Production.INFO: ==7314== Releasing lock... [2025-02-22 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:24:22] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:25:05 [end_date_ymd] => 2025-02-22 02:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:25:05' and `end` < '2025-02-22 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-02-22 02:25:17] Production.INFO: count ==599 [2025-02-22 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:25:05 - End Time 2025-02-22 02:25:05 [2025-02-22 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529338', 'tblTempUsageDetail_20' ) start [2025-02-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529338', 'tblTempUsageDetail_20' ) end [2025-02-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529338', 'tblTempVendorCDR_20' ) start [2025-02-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529338', 'tblTempVendorCDR_20' ) end [2025-02-22 02:25:17] Production.INFO: ProcessCDR(1,14529338,1,1,2) [2025-02-22 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529338', 'tblTempUsageDetail_20' ) start [2025-02-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529338', 'tblTempUsageDetail_20' ) end [2025-02-22 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:25:20] Production.INFO: ==7390== Releasing lock... [2025-02-22 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:25:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:26:05 [end_date_ymd] => 2025-02-22 02:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:26:05' and `end` < '2025-02-22 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-02-22 02:26:17] Production.INFO: count ==599 [2025-02-22 02:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:26:05 - End Time 2025-02-22 02:26:05 [2025-02-22 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529343', 'tblTempUsageDetail_20' ) start [2025-02-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529343', 'tblTempUsageDetail_20' ) end [2025-02-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529343', 'tblTempVendorCDR_20' ) start [2025-02-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529343', 'tblTempVendorCDR_20' ) end [2025-02-22 02:26:17] Production.INFO: ProcessCDR(1,14529343,1,1,2) [2025-02-22 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529343', 'tblTempUsageDetail_20' ) start [2025-02-22 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529343', 'tblTempUsageDetail_20' ) end [2025-02-22 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:26:20] Production.INFO: ==7470== Releasing lock... [2025-02-22 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:26:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:27:04 [end_date_ymd] => 2025-02-22 02:27:04 [RateCDR] => 1 ) [2025-02-22 02: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-02-21 23:27:04' and `end` < '2025-02-22 02: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-02-22 02:27:16] Production.INFO: count ==604 [2025-02-22 02:27:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:27:04 - End Time 2025-02-22 02:27:04 [2025-02-22 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529348', 'tblTempUsageDetail_20' ) start [2025-02-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529348', 'tblTempUsageDetail_20' ) end [2025-02-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529348', 'tblTempVendorCDR_20' ) start [2025-02-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529348', 'tblTempVendorCDR_20' ) end [2025-02-22 02:27:16] Production.INFO: ProcessCDR(1,14529348,1,1,2) [2025-02-22 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529348', 'tblTempUsageDetail_20' ) start [2025-02-22 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529348', 'tblTempUsageDetail_20' ) end [2025-02-22 02:27:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:27:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:27:19] Production.INFO: ==7547== Releasing lock... [2025-02-22 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:27:19] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:28:05 [end_date_ymd] => 2025-02-22 02:28:05 [RateCDR] => 1 ) [2025-02-22 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:28:05' and `end` < '2025-02-22 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:28:17] Production.INFO: count ==602 [2025-02-22 02:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:28:05 - End Time 2025-02-22 02:28:05 [2025-02-22 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529353', 'tblTempUsageDetail_20' ) start [2025-02-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529353', 'tblTempUsageDetail_20' ) end [2025-02-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529353', 'tblTempVendorCDR_20' ) start [2025-02-22 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529353', 'tblTempVendorCDR_20' ) end [2025-02-22 02:28:17] Production.INFO: ProcessCDR(1,14529353,1,1,2) [2025-02-22 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529353', 'tblTempUsageDetail_20' ) start [2025-02-22 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529353', 'tblTempUsageDetail_20' ) end [2025-02-22 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:28:20] Production.INFO: ==7622== Releasing lock... [2025-02-22 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:28:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:29:06 [end_date_ymd] => 2025-02-22 02:29:06 [RateCDR] => 1 ) [2025-02-22 02:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:29:06' and `end` < '2025-02-22 02:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:29:17] Production.INFO: count ==602 [2025-02-22 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:29:06 - End Time 2025-02-22 02:29:06 [2025-02-22 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529358', 'tblTempUsageDetail_20' ) start [2025-02-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529358', 'tblTempUsageDetail_20' ) end [2025-02-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529358', 'tblTempVendorCDR_20' ) start [2025-02-22 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529358', 'tblTempVendorCDR_20' ) end [2025-02-22 02:29:18] Production.INFO: ProcessCDR(1,14529358,1,1,2) [2025-02-22 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529358', 'tblTempUsageDetail_20' ) start [2025-02-22 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529358', 'tblTempUsageDetail_20' ) end [2025-02-22 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:29:21] Production.INFO: ==7699== Releasing lock... [2025-02-22 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:29:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:30:06 [end_date_ymd] => 2025-02-22 02:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:30:06' and `end` < '2025-02-22 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-02-22 02:30:18] Production.INFO: count ==607 [2025-02-22 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:30:06 - End Time 2025-02-22 02:30:06 [2025-02-22 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529364', 'tblTempUsageDetail_20' ) start [2025-02-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529364', 'tblTempUsageDetail_20' ) end [2025-02-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529364', 'tblTempVendorCDR_20' ) start [2025-02-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529364', 'tblTempVendorCDR_20' ) end [2025-02-22 02:30:18] Production.INFO: ProcessCDR(1,14529364,1,1,2) [2025-02-22 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529364', 'tblTempUsageDetail_20' ) start [2025-02-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529364', 'tblTempUsageDetail_20' ) end [2025-02-22 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:30:21] Production.INFO: ==7777== Releasing lock... [2025-02-22 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:30:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:31:05 [end_date_ymd] => 2025-02-22 02:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:31:05' and `end` < '2025-02-22 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-02-22 02:31:17] Production.INFO: count ==607 [2025-02-22 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:31:05 - End Time 2025-02-22 02:31:05 [2025-02-22 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529369', 'tblTempUsageDetail_20' ) start [2025-02-22 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529369', 'tblTempUsageDetail_20' ) end [2025-02-22 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529369', 'tblTempVendorCDR_20' ) start [2025-02-22 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529369', 'tblTempVendorCDR_20' ) end [2025-02-22 02:31:17] Production.INFO: ProcessCDR(1,14529369,1,1,2) [2025-02-22 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529369', 'tblTempUsageDetail_20' ) start [2025-02-22 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529369', 'tblTempUsageDetail_20' ) end [2025-02-22 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:31:20] Production.INFO: ==7853== Releasing lock... [2025-02-22 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:31:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:32:05 [end_date_ymd] => 2025-02-22 02:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:32:05' and `end` < '2025-02-22 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-02-22 02:32:17] Production.INFO: count ==602 [2025-02-22 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:32:05 - End Time 2025-02-22 02:32:05 [2025-02-22 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529374', 'tblTempUsageDetail_20' ) start [2025-02-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529374', 'tblTempUsageDetail_20' ) end [2025-02-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529374', 'tblTempVendorCDR_20' ) start [2025-02-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529374', 'tblTempVendorCDR_20' ) end [2025-02-22 02:32:17] Production.INFO: ProcessCDR(1,14529374,1,1,2) [2025-02-22 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529374', 'tblTempUsageDetail_20' ) start [2025-02-22 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529374', 'tblTempUsageDetail_20' ) end [2025-02-22 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:32:20] Production.INFO: ==7924== Releasing lock... [2025-02-22 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:32:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:33:05 [end_date_ymd] => 2025-02-22 02:33:05 [RateCDR] => 1 ) [2025-02-22 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:33:05' and `end` < '2025-02-22 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:33:17] Production.INFO: count ==602 [2025-02-22 02:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:33:05 - End Time 2025-02-22 02:33:05 [2025-02-22 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529379', 'tblTempUsageDetail_20' ) start [2025-02-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529379', 'tblTempUsageDetail_20' ) end [2025-02-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529379', 'tblTempVendorCDR_20' ) start [2025-02-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529379', 'tblTempVendorCDR_20' ) end [2025-02-22 02:33:17] Production.INFO: ProcessCDR(1,14529379,1,1,2) [2025-02-22 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529379', 'tblTempUsageDetail_20' ) start [2025-02-22 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529379', 'tblTempUsageDetail_20' ) end [2025-02-22 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:33:20] Production.INFO: ==8000== Releasing lock... [2025-02-22 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:33:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:34:05 [end_date_ymd] => 2025-02-22 02:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:34:05' and `end` < '2025-02-22 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-02-22 02:34:17] Production.INFO: count ==602 [2025-02-22 02:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:34:05 - End Time 2025-02-22 02:34:05 [2025-02-22 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529384', 'tblTempUsageDetail_20' ) start [2025-02-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529384', 'tblTempUsageDetail_20' ) end [2025-02-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529384', 'tblTempVendorCDR_20' ) start [2025-02-22 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529384', 'tblTempVendorCDR_20' ) end [2025-02-22 02:34:17] Production.INFO: ProcessCDR(1,14529384,1,1,2) [2025-02-22 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529384', 'tblTempUsageDetail_20' ) start [2025-02-22 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529384', 'tblTempUsageDetail_20' ) end [2025-02-22 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:34:20] Production.INFO: ==8077== Releasing lock... [2025-02-22 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:34:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:35:05 [end_date_ymd] => 2025-02-22 02:35:05 [RateCDR] => 1 ) [2025-02-22 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:35:05' and `end` < '2025-02-22 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:35:17] Production.INFO: count ==602 [2025-02-22 02:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:35:05 - End Time 2025-02-22 02:35:05 [2025-02-22 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529389', 'tblTempUsageDetail_20' ) start [2025-02-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529389', 'tblTempUsageDetail_20' ) end [2025-02-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529389', 'tblTempVendorCDR_20' ) start [2025-02-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529389', 'tblTempVendorCDR_20' ) end [2025-02-22 02:35:17] Production.INFO: ProcessCDR(1,14529389,1,1,2) [2025-02-22 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529389', 'tblTempUsageDetail_20' ) start [2025-02-22 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529389', 'tblTempUsageDetail_20' ) end [2025-02-22 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:35:20] Production.INFO: ==8153== Releasing lock... [2025-02-22 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:35:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:36:05 [end_date_ymd] => 2025-02-22 02:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:36:05' and `end` < '2025-02-22 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-02-22 02:36:17] Production.INFO: count ==602 [2025-02-22 02:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:36:05 - End Time 2025-02-22 02:36:05 [2025-02-22 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529394', 'tblTempUsageDetail_20' ) start [2025-02-22 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529394', 'tblTempUsageDetail_20' ) end [2025-02-22 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529394', 'tblTempVendorCDR_20' ) start [2025-02-22 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529394', 'tblTempVendorCDR_20' ) end [2025-02-22 02:36:17] Production.INFO: ProcessCDR(1,14529394,1,1,2) [2025-02-22 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529394', 'tblTempUsageDetail_20' ) start [2025-02-22 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529394', 'tblTempUsageDetail_20' ) end [2025-02-22 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:36:20] Production.INFO: ==8229== Releasing lock... [2025-02-22 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:36:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:37:05 [end_date_ymd] => 2025-02-22 02:37:05 [RateCDR] => 1 ) [2025-02-22 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:37:05' and `end` < '2025-02-22 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:37:17] Production.INFO: count ==600 [2025-02-22 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:37:05 - End Time 2025-02-22 02:37:05 [2025-02-22 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529399', 'tblTempUsageDetail_20' ) start [2025-02-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529399', 'tblTempUsageDetail_20' ) end [2025-02-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529399', 'tblTempVendorCDR_20' ) start [2025-02-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529399', 'tblTempVendorCDR_20' ) end [2025-02-22 02:37:17] Production.INFO: ProcessCDR(1,14529399,1,1,2) [2025-02-22 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529399', 'tblTempUsageDetail_20' ) start [2025-02-22 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529399', 'tblTempUsageDetail_20' ) end [2025-02-22 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:37:20] Production.INFO: ==8304== Releasing lock... [2025-02-22 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:37:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:38:05 [end_date_ymd] => 2025-02-22 02:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:38:05' and `end` < '2025-02-22 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-02-22 02:38:17] Production.INFO: count ==597 [2025-02-22 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:38:05 - End Time 2025-02-22 02:38:05 [2025-02-22 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529404', 'tblTempUsageDetail_20' ) start [2025-02-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529404', 'tblTempUsageDetail_20' ) end [2025-02-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529404', 'tblTempVendorCDR_20' ) start [2025-02-22 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529404', 'tblTempVendorCDR_20' ) end [2025-02-22 02:38:17] Production.INFO: ProcessCDR(1,14529404,1,1,2) [2025-02-22 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529404', 'tblTempUsageDetail_20' ) start [2025-02-22 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529404', 'tblTempUsageDetail_20' ) end [2025-02-22 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:38:20] Production.INFO: ==8378== Releasing lock... [2025-02-22 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:38:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:39:06 [end_date_ymd] => 2025-02-22 02:39:06 [RateCDR] => 1 ) [2025-02-22 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:39:06' and `end` < '2025-02-22 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:39:18] Production.INFO: count ==597 [2025-02-22 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:39:06 - End Time 2025-02-22 02:39:06 [2025-02-22 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529409', 'tblTempUsageDetail_20' ) start [2025-02-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529409', 'tblTempUsageDetail_20' ) end [2025-02-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529409', 'tblTempVendorCDR_20' ) start [2025-02-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529409', 'tblTempVendorCDR_20' ) end [2025-02-22 02:39:18] Production.INFO: ProcessCDR(1,14529409,1,1,2) [2025-02-22 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529409', 'tblTempUsageDetail_20' ) start [2025-02-22 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529409', 'tblTempUsageDetail_20' ) end [2025-02-22 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:39:21] Production.INFO: ==8491== Releasing lock... [2025-02-22 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:39:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:40:06 [end_date_ymd] => 2025-02-22 02:40:06 [RateCDR] => 1 ) [2025-02-22 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:40:06' and `end` < '2025-02-22 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:40:18] Production.INFO: count ==609 [2025-02-22 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:40:06 - End Time 2025-02-22 02:40:06 [2025-02-22 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529415', 'tblTempUsageDetail_20' ) start [2025-02-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529415', 'tblTempUsageDetail_20' ) end [2025-02-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529415', 'tblTempVendorCDR_20' ) start [2025-02-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529415', 'tblTempVendorCDR_20' ) end [2025-02-22 02:40:18] Production.INFO: ProcessCDR(1,14529415,1,1,2) [2025-02-22 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529415', 'tblTempUsageDetail_20' ) start [2025-02-22 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529415', 'tblTempUsageDetail_20' ) end [2025-02-22 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:40:21] Production.INFO: ==8565== Releasing lock... [2025-02-22 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:41:06 [end_date_ymd] => 2025-02-22 02:41:06 [RateCDR] => 1 ) [2025-02-22 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:41:06' and `end` < '2025-02-22 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:41:17] Production.INFO: count ==610 [2025-02-22 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:41:06 - End Time 2025-02-22 02:41:06 [2025-02-22 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529420', 'tblTempUsageDetail_20' ) start [2025-02-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529420', 'tblTempUsageDetail_20' ) end [2025-02-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529420', 'tblTempVendorCDR_20' ) start [2025-02-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529420', 'tblTempVendorCDR_20' ) end [2025-02-22 02:41:17] Production.INFO: ProcessCDR(1,14529420,1,1,2) [2025-02-22 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529420', 'tblTempUsageDetail_20' ) start [2025-02-22 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529420', 'tblTempUsageDetail_20' ) end [2025-02-22 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:41:21] Production.INFO: ==8644== Releasing lock... [2025-02-22 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:42:05 [end_date_ymd] => 2025-02-22 02:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:42:05' and `end` < '2025-02-22 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-02-22 02:42:17] Production.INFO: count ==607 [2025-02-22 02:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:42:05 - End Time 2025-02-22 02:42:05 [2025-02-22 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529425', 'tblTempUsageDetail_20' ) start [2025-02-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529425', 'tblTempUsageDetail_20' ) end [2025-02-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529425', 'tblTempVendorCDR_20' ) start [2025-02-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529425', 'tblTempVendorCDR_20' ) end [2025-02-22 02:42:17] Production.INFO: ProcessCDR(1,14529425,1,1,2) [2025-02-22 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529425', 'tblTempUsageDetail_20' ) start [2025-02-22 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529425', 'tblTempUsageDetail_20' ) end [2025-02-22 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:42:20] Production.INFO: ==8718== Releasing lock... [2025-02-22 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:42:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:43:05 [end_date_ymd] => 2025-02-22 02:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:43:05' and `end` < '2025-02-22 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-02-22 02:43:17] Production.INFO: count ==607 [2025-02-22 02:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:43:05 - End Time 2025-02-22 02:43:05 [2025-02-22 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529430', 'tblTempUsageDetail_20' ) start [2025-02-22 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529430', 'tblTempUsageDetail_20' ) end [2025-02-22 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529430', 'tblTempVendorCDR_20' ) start [2025-02-22 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529430', 'tblTempVendorCDR_20' ) end [2025-02-22 02:43:17] Production.INFO: ProcessCDR(1,14529430,1,1,2) [2025-02-22 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529430', 'tblTempUsageDetail_20' ) start [2025-02-22 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529430', 'tblTempUsageDetail_20' ) end [2025-02-22 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:43:20] Production.INFO: ==8797== Releasing lock... [2025-02-22 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:43:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:44:05 [end_date_ymd] => 2025-02-22 02:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:44:05' and `end` < '2025-02-22 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-02-22 02:44:17] Production.INFO: count ==603 [2025-02-22 02:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:44:05 - End Time 2025-02-22 02:44:05 [2025-02-22 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529435', 'tblTempUsageDetail_20' ) start [2025-02-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529435', 'tblTempUsageDetail_20' ) end [2025-02-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529435', 'tblTempVendorCDR_20' ) start [2025-02-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529435', 'tblTempVendorCDR_20' ) end [2025-02-22 02:44:17] Production.INFO: ProcessCDR(1,14529435,1,1,2) [2025-02-22 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529435', 'tblTempUsageDetail_20' ) start [2025-02-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529435', 'tblTempUsageDetail_20' ) end [2025-02-22 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:44:21] Production.INFO: ==8872== Releasing lock... [2025-02-22 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:44:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:45:05 [end_date_ymd] => 2025-02-22 02:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:45:05' and `end` < '2025-02-22 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-02-22 02:45:17] Production.INFO: count ==606 [2025-02-22 02:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:45:05 - End Time 2025-02-22 02:45:05 [2025-02-22 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529440', 'tblTempUsageDetail_20' ) start [2025-02-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529440', 'tblTempUsageDetail_20' ) end [2025-02-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529440', 'tblTempVendorCDR_20' ) start [2025-02-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529440', 'tblTempVendorCDR_20' ) end [2025-02-22 02:45:17] Production.INFO: ProcessCDR(1,14529440,1,1,2) [2025-02-22 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529440', 'tblTempUsageDetail_20' ) start [2025-02-22 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529440', 'tblTempUsageDetail_20' ) end [2025-02-22 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:45:20] Production.INFO: ==8948== Releasing lock... [2025-02-22 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:45:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:46:06 [end_date_ymd] => 2025-02-22 02:46:06 [RateCDR] => 1 ) [2025-02-22 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:46:06' and `end` < '2025-02-22 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:46:18] Production.INFO: count ==599 [2025-02-22 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:46:06 - End Time 2025-02-22 02:46:06 [2025-02-22 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529445', 'tblTempUsageDetail_20' ) start [2025-02-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529445', 'tblTempUsageDetail_20' ) end [2025-02-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529445', 'tblTempVendorCDR_20' ) start [2025-02-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529445', 'tblTempVendorCDR_20' ) end [2025-02-22 02:46:18] Production.INFO: ProcessCDR(1,14529445,1,1,2) [2025-02-22 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529445', 'tblTempUsageDetail_20' ) start [2025-02-22 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529445', 'tblTempUsageDetail_20' ) end [2025-02-22 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:46:23] Production.INFO: ==9025== Releasing lock... [2025-02-22 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:47:05 [end_date_ymd] => 2025-02-22 02:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:47:05' and `end` < '2025-02-22 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-02-22 02:47:17] Production.INFO: count ==596 [2025-02-22 02:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:47:05 - End Time 2025-02-22 02:47:05 [2025-02-22 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529450', 'tblTempUsageDetail_20' ) start [2025-02-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529450', 'tblTempUsageDetail_20' ) end [2025-02-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529450', 'tblTempVendorCDR_20' ) start [2025-02-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529450', 'tblTempVendorCDR_20' ) end [2025-02-22 02:47:17] Production.INFO: ProcessCDR(1,14529450,1,1,2) [2025-02-22 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529450', 'tblTempUsageDetail_20' ) start [2025-02-22 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529450', 'tblTempUsageDetail_20' ) end [2025-02-22 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:47:20] Production.INFO: ==9102== Releasing lock... [2025-02-22 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:47:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:48:05 [end_date_ymd] => 2025-02-22 02:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:48:05' and `end` < '2025-02-22 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-02-22 02:48:17] Production.INFO: count ==595 [2025-02-22 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:48:05 - End Time 2025-02-22 02:48:05 [2025-02-22 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529455', 'tblTempUsageDetail_20' ) start [2025-02-22 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529455', 'tblTempUsageDetail_20' ) end [2025-02-22 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529455', 'tblTempVendorCDR_20' ) start [2025-02-22 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529455', 'tblTempVendorCDR_20' ) end [2025-02-22 02:48:17] Production.INFO: ProcessCDR(1,14529455,1,1,2) [2025-02-22 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529455', 'tblTempUsageDetail_20' ) start [2025-02-22 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529455', 'tblTempUsageDetail_20' ) end [2025-02-22 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:48:20] Production.INFO: ==9177== Releasing lock... [2025-02-22 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:49:05 [end_date_ymd] => 2025-02-22 02:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:49:05' and `end` < '2025-02-22 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-02-22 02:49:17] Production.INFO: count ==593 [2025-02-22 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:49:05 - End Time 2025-02-22 02:49:05 [2025-02-22 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529460', 'tblTempUsageDetail_20' ) start [2025-02-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529460', 'tblTempUsageDetail_20' ) end [2025-02-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529460', 'tblTempVendorCDR_20' ) start [2025-02-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529460', 'tblTempVendorCDR_20' ) end [2025-02-22 02:49:17] Production.INFO: ProcessCDR(1,14529460,1,1,2) [2025-02-22 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529460', 'tblTempUsageDetail_20' ) start [2025-02-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529460', 'tblTempUsageDetail_20' ) end [2025-02-22 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:49:20] Production.INFO: ==9251== Releasing lock... [2025-02-22 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:49:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:50:07 [end_date_ymd] => 2025-02-22 02:50:07 [RateCDR] => 1 ) [2025-02-22 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:50:07' and `end` < '2025-02-22 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:50:18] Production.INFO: count ==593 [2025-02-22 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:50:07 - End Time 2025-02-22 02:50:07 [2025-02-22 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529466', 'tblTempUsageDetail_20' ) start [2025-02-22 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529466', 'tblTempUsageDetail_20' ) end [2025-02-22 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529466', 'tblTempVendorCDR_20' ) start [2025-02-22 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529466', 'tblTempVendorCDR_20' ) end [2025-02-22 02:50:18] Production.INFO: ProcessCDR(1,14529466,1,1,2) [2025-02-22 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529466', 'tblTempUsageDetail_20' ) start [2025-02-22 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529466', 'tblTempUsageDetail_20' ) end [2025-02-22 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:50:22] Production.INFO: ==9328== Releasing lock... [2025-02-22 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:51:05 [end_date_ymd] => 2025-02-22 02:51:05 [RateCDR] => 1 ) [2025-02-22 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:51:05' and `end` < '2025-02-22 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:51:16] Production.INFO: count ==593 [2025-02-22 02:51:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:51:05 - End Time 2025-02-22 02:51:05 [2025-02-22 02:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529471', 'tblTempUsageDetail_20' ) start [2025-02-22 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529471', 'tblTempUsageDetail_20' ) end [2025-02-22 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529471', 'tblTempVendorCDR_20' ) start [2025-02-22 02:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529471', 'tblTempVendorCDR_20' ) end [2025-02-22 02:51:16] Production.INFO: ProcessCDR(1,14529471,1,1,2) [2025-02-22 02:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529471', 'tblTempUsageDetail_20' ) start [2025-02-22 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529471', 'tblTempUsageDetail_20' ) end [2025-02-22 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:51:20] Production.INFO: ==9403== Releasing lock... [2025-02-22 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:51:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:52:05 [end_date_ymd] => 2025-02-22 02:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:52:05' and `end` < '2025-02-22 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-02-22 02:52:17] Production.INFO: count ==593 [2025-02-22 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:52:05 - End Time 2025-02-22 02:52:05 [2025-02-22 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529476', 'tblTempUsageDetail_20' ) start [2025-02-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529476', 'tblTempUsageDetail_20' ) end [2025-02-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529476', 'tblTempVendorCDR_20' ) start [2025-02-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529476', 'tblTempVendorCDR_20' ) end [2025-02-22 02:52:17] Production.INFO: ProcessCDR(1,14529476,1,1,2) [2025-02-22 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529476', 'tblTempUsageDetail_20' ) start [2025-02-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529476', 'tblTempUsageDetail_20' ) end [2025-02-22 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:52:21] Production.INFO: ==9474== Releasing lock... [2025-02-22 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:53:05 [end_date_ymd] => 2025-02-22 02:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:53:05' and `end` < '2025-02-22 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-02-22 02:53:17] Production.INFO: count ==590 [2025-02-22 02:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:53:05 - End Time 2025-02-22 02:53:05 [2025-02-22 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529481', 'tblTempUsageDetail_20' ) start [2025-02-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529481', 'tblTempUsageDetail_20' ) end [2025-02-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529481', 'tblTempVendorCDR_20' ) start [2025-02-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529481', 'tblTempVendorCDR_20' ) end [2025-02-22 02:53:17] Production.INFO: ProcessCDR(1,14529481,1,1,2) [2025-02-22 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529481', 'tblTempUsageDetail_20' ) start [2025-02-22 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529481', 'tblTempUsageDetail_20' ) end [2025-02-22 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:53:20] Production.INFO: ==9544== Releasing lock... [2025-02-22 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:53:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:54:06 [end_date_ymd] => 2025-02-22 02:54:06 [RateCDR] => 1 ) [2025-02-22 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:54:06' and `end` < '2025-02-22 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:54:17] Production.INFO: count ==590 [2025-02-22 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 23:54:06 - End Time 2025-02-22 02:54:06 [2025-02-22 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529486', 'tblTempUsageDetail_20' ) start [2025-02-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529486', 'tblTempUsageDetail_20' ) end [2025-02-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529486', 'tblTempVendorCDR_20' ) start [2025-02-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529486', 'tblTempVendorCDR_20' ) end [2025-02-22 02:54:18] Production.INFO: ProcessCDR(1,14529486,1,1,2) [2025-02-22 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529486', 'tblTempUsageDetail_20' ) start [2025-02-22 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529486', 'tblTempUsageDetail_20' ) end [2025-02-22 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:54:21] Production.INFO: ==9617== Releasing lock... [2025-02-22 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:55:05 [end_date_ymd] => 2025-02-22 02:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:55:05' and `end` < '2025-02-22 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-02-22 02:55:16] Production.INFO: count ==591 [2025-02-22 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:55:05 - End Time 2025-02-22 02:55:05 [2025-02-22 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529491', 'tblTempUsageDetail_20' ) start [2025-02-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529491', 'tblTempUsageDetail_20' ) end [2025-02-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529491', 'tblTempVendorCDR_20' ) start [2025-02-22 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529491', 'tblTempVendorCDR_20' ) end [2025-02-22 02:55:17] Production.INFO: ProcessCDR(1,14529491,1,1,2) [2025-02-22 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529491', 'tblTempUsageDetail_20' ) start [2025-02-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529491', 'tblTempUsageDetail_20' ) end [2025-02-22 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:55:21] Production.INFO: ==9726== Releasing lock... [2025-02-22 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:56:06 [end_date_ymd] => 2025-02-22 02:56:06 [RateCDR] => 1 ) [2025-02-22 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:56:06' and `end` < '2025-02-22 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:56:17] Production.INFO: count ==591 [2025-02-22 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:56:06 - End Time 2025-02-22 02:56:06 [2025-02-22 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529496', 'tblTempUsageDetail_20' ) start [2025-02-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529496', 'tblTempUsageDetail_20' ) end [2025-02-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529496', 'tblTempVendorCDR_20' ) start [2025-02-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529496', 'tblTempVendorCDR_20' ) end [2025-02-22 02:56:17] Production.INFO: ProcessCDR(1,14529496,1,1,2) [2025-02-22 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529496', 'tblTempUsageDetail_20' ) start [2025-02-22 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529496', 'tblTempUsageDetail_20' ) end [2025-02-22 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:56:21] Production.INFO: ==9799== Releasing lock... [2025-02-22 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:57:05 [end_date_ymd] => 2025-02-22 02:57:05 [RateCDR] => 1 ) [2025-02-22 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 23:57:05' and `end` < '2025-02-22 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 02:57:17] Production.INFO: count ==590 [2025-02-22 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:57:05 - End Time 2025-02-22 02:57:05 [2025-02-22 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529501', 'tblTempUsageDetail_20' ) start [2025-02-22 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529501', 'tblTempUsageDetail_20' ) end [2025-02-22 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529501', 'tblTempVendorCDR_20' ) start [2025-02-22 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529501', 'tblTempVendorCDR_20' ) end [2025-02-22 02:57:17] Production.INFO: ProcessCDR(1,14529501,1,1,2) [2025-02-22 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529501', 'tblTempUsageDetail_20' ) start [2025-02-22 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529501', 'tblTempUsageDetail_20' ) end [2025-02-22 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:57:20] Production.INFO: ==9872== Releasing lock... [2025-02-22 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:57:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:58:05 [end_date_ymd] => 2025-02-22 02:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:58:05' and `end` < '2025-02-22 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-02-22 02:58:17] Production.INFO: count ==590 [2025-02-22 02:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 23:58:05 - End Time 2025-02-22 02:58:05 [2025-02-22 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529506', 'tblTempUsageDetail_20' ) start [2025-02-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529506', 'tblTempUsageDetail_20' ) end [2025-02-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529506', 'tblTempVendorCDR_20' ) start [2025-02-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529506', 'tblTempVendorCDR_20' ) end [2025-02-22 02:58:17] Production.INFO: ProcessCDR(1,14529506,1,1,2) [2025-02-22 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529506', 'tblTempUsageDetail_20' ) start [2025-02-22 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529506', 'tblTempUsageDetail_20' ) end [2025-02-22 02:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:58:20] Production.INFO: ==9947== Releasing lock... [2025-02-22 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:58:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 23:59:05 [end_date_ymd] => 2025-02-22 02:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-21 23:59:05' and `end` < '2025-02-22 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-02-22 02:59:16] Production.INFO: count ==590 [2025-02-22 02:59:16] Production.ERROR: pbx CDR StartTime 2025-02-21 23:59:05 - End Time 2025-02-22 02:59:05 [2025-02-22 02:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529511', 'tblTempUsageDetail_20' ) start [2025-02-22 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529511', 'tblTempUsageDetail_20' ) end [2025-02-22 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529511', 'tblTempVendorCDR_20' ) start [2025-02-22 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529511', 'tblTempVendorCDR_20' ) end [2025-02-22 02:59:16] Production.INFO: ProcessCDR(1,14529511,1,1,2) [2025-02-22 02:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529511', 'tblTempUsageDetail_20' ) start [2025-02-22 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529511', 'tblTempUsageDetail_20' ) end [2025-02-22 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 02:59:20] Production.INFO: ==10024== Releasing lock... [2025-02-22 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 02:59:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:00:06 [end_date_ymd] => 2025-02-22 03:00:06 [RateCDR] => 1 ) [2025-02-22 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:00:06' and `end` < '2025-02-22 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:00:18] Production.INFO: count ==592 [2025-02-22 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:00:06 - End Time 2025-02-22 03:00:06 [2025-02-22 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529516', 'tblTempUsageDetail_20' ) start [2025-02-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529516', 'tblTempUsageDetail_20' ) end [2025-02-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529516', 'tblTempVendorCDR_20' ) start [2025-02-22 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529516', 'tblTempVendorCDR_20' ) end [2025-02-22 03:00:18] Production.INFO: ProcessCDR(1,14529516,1,1,2) [2025-02-22 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529516', 'tblTempUsageDetail_20' ) start [2025-02-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529516', 'tblTempUsageDetail_20' ) end [2025-02-22 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:00:22] Production.INFO: ==10101== Releasing lock... [2025-02-22 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:01:05 [end_date_ymd] => 2025-02-22 03:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:01:05' and `end` < '2025-02-22 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-02-22 03:01:17] Production.INFO: count ==592 [2025-02-22 03:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:01:05 - End Time 2025-02-22 03:01:05 [2025-02-22 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529522', 'tblTempUsageDetail_20' ) start [2025-02-22 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529522', 'tblTempUsageDetail_20' ) end [2025-02-22 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529522', 'tblTempVendorCDR_20' ) start [2025-02-22 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529522', 'tblTempVendorCDR_20' ) end [2025-02-22 03:01:17] Production.INFO: ProcessCDR(1,14529522,1,1,2) [2025-02-22 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529522', 'tblTempUsageDetail_20' ) start [2025-02-22 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529522', 'tblTempUsageDetail_20' ) end [2025-02-22 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:01:20] Production.INFO: ==10188== Releasing lock... [2025-02-22 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:01:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:02:05 [end_date_ymd] => 2025-02-22 03:02:05 [RateCDR] => 1 ) [2025-02-22 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:02:05' and `end` < '2025-02-22 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:02:17] Production.INFO: count ==592 [2025-02-22 03:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:02:05 - End Time 2025-02-22 03:02:05 [2025-02-22 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529527', 'tblTempUsageDetail_20' ) start [2025-02-22 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529527', 'tblTempUsageDetail_20' ) end [2025-02-22 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529527', 'tblTempVendorCDR_20' ) start [2025-02-22 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529527', 'tblTempVendorCDR_20' ) end [2025-02-22 03:02:17] Production.INFO: ProcessCDR(1,14529527,1,1,2) [2025-02-22 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529527', 'tblTempUsageDetail_20' ) start [2025-02-22 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529527', 'tblTempUsageDetail_20' ) end [2025-02-22 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:02:21] Production.INFO: ==10349== Releasing lock... [2025-02-22 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:03:05 [end_date_ymd] => 2025-02-22 03:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:03:05' and `end` < '2025-02-22 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-02-22 03:03:17] Production.INFO: count ==592 [2025-02-22 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:03:05 - End Time 2025-02-22 03:03:05 [2025-02-22 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529532', 'tblTempUsageDetail_20' ) start [2025-02-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529532', 'tblTempUsageDetail_20' ) end [2025-02-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529532', 'tblTempVendorCDR_20' ) start [2025-02-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529532', 'tblTempVendorCDR_20' ) end [2025-02-22 03:03:17] Production.INFO: ProcessCDR(1,14529532,1,1,2) [2025-02-22 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529532', 'tblTempUsageDetail_20' ) start [2025-02-22 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529532', 'tblTempUsageDetail_20' ) end [2025-02-22 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:03:20] Production.INFO: ==10434== Releasing lock... [2025-02-22 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:03:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:04:05 [end_date_ymd] => 2025-02-22 03:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:04:05' and `end` < '2025-02-22 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-02-22 03:04:17] Production.INFO: count ==592 [2025-02-22 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:04:05 - End Time 2025-02-22 03:04:05 [2025-02-22 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529537', 'tblTempUsageDetail_20' ) start [2025-02-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529537', 'tblTempUsageDetail_20' ) end [2025-02-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529537', 'tblTempVendorCDR_20' ) start [2025-02-22 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529537', 'tblTempVendorCDR_20' ) end [2025-02-22 03:04:17] Production.INFO: ProcessCDR(1,14529537,1,1,2) [2025-02-22 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529537', 'tblTempUsageDetail_20' ) start [2025-02-22 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529537', 'tblTempUsageDetail_20' ) end [2025-02-22 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:04:20] Production.INFO: ==10519== Releasing lock... [2025-02-22 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:04:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:05:04 [end_date_ymd] => 2025-02-22 03:05:04 [RateCDR] => 1 ) [2025-02-22 03:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:05:04' and `end` < '2025-02-22 03:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:05:16] Production.INFO: count ==592 [2025-02-22 03:05:16] Production.ERROR: pbx CDR StartTime 2025-02-22 00:05:04 - End Time 2025-02-22 03:05:04 [2025-02-22 03:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529542', 'tblTempUsageDetail_20' ) start [2025-02-22 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529542', 'tblTempUsageDetail_20' ) end [2025-02-22 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529542', 'tblTempVendorCDR_20' ) start [2025-02-22 03:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529542', 'tblTempVendorCDR_20' ) end [2025-02-22 03:05:16] Production.INFO: ProcessCDR(1,14529542,1,1,2) [2025-02-22 03:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529542', 'tblTempUsageDetail_20' ) start [2025-02-22 03:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529542', 'tblTempUsageDetail_20' ) end [2025-02-22 03:05:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:05:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:05:19] Production.INFO: ==10602== Releasing lock... [2025-02-22 03:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:05:19] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:06:05 [end_date_ymd] => 2025-02-22 03:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:06:05' and `end` < '2025-02-22 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-02-22 03:06:17] Production.INFO: count ==592 [2025-02-22 03:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:06:05 - End Time 2025-02-22 03:06:05 [2025-02-22 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529547', 'tblTempUsageDetail_20' ) start [2025-02-22 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529547', 'tblTempUsageDetail_20' ) end [2025-02-22 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529547', 'tblTempVendorCDR_20' ) start [2025-02-22 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529547', 'tblTempVendorCDR_20' ) end [2025-02-22 03:06:17] Production.INFO: ProcessCDR(1,14529547,1,1,2) [2025-02-22 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529547', 'tblTempUsageDetail_20' ) start [2025-02-22 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529547', 'tblTempUsageDetail_20' ) end [2025-02-22 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:06:20] Production.INFO: ==10766== Releasing lock... [2025-02-22 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:06:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:07:05 [end_date_ymd] => 2025-02-22 03:07:05 [RateCDR] => 1 ) [2025-02-22 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:07:05' and `end` < '2025-02-22 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-02-22 03:07:16] Production.INFO: count ==595 [2025-02-22 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:07:05 - End Time 2025-02-22 03:07:05 [2025-02-22 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529552', 'tblTempUsageDetail_20' ) start [2025-02-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529552', 'tblTempUsageDetail_20' ) end [2025-02-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529552', 'tblTempVendorCDR_20' ) start [2025-02-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529552', 'tblTempVendorCDR_20' ) end [2025-02-22 03:07:17] Production.INFO: ProcessCDR(1,14529552,1,1,2) [2025-02-22 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529552', 'tblTempUsageDetail_20' ) start [2025-02-22 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529552', 'tblTempUsageDetail_20' ) end [2025-02-22 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:07:20] Production.INFO: ==10848== Releasing lock... [2025-02-22 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:07:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:08:05 [end_date_ymd] => 2025-02-22 03:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:08:05' and `end` < '2025-02-22 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-02-22 03:08:17] Production.INFO: count ==595 [2025-02-22 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:08:05 - End Time 2025-02-22 03:08:05 [2025-02-22 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529557', 'tblTempUsageDetail_20' ) start [2025-02-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529557', 'tblTempUsageDetail_20' ) end [2025-02-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529557', 'tblTempVendorCDR_20' ) start [2025-02-22 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529557', 'tblTempVendorCDR_20' ) end [2025-02-22 03:08:17] Production.INFO: ProcessCDR(1,14529557,1,1,2) [2025-02-22 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529557', 'tblTempUsageDetail_20' ) start [2025-02-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529557', 'tblTempUsageDetail_20' ) end [2025-02-22 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:08:21] Production.INFO: ==10938== Releasing lock... [2025-02-22 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:09:05 [end_date_ymd] => 2025-02-22 03:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:09:05' and `end` < '2025-02-22 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-02-22 03:09:17] Production.INFO: count ==595 [2025-02-22 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:09:05 - End Time 2025-02-22 03:09:05 [2025-02-22 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529562', 'tblTempUsageDetail_20' ) start [2025-02-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529562', 'tblTempUsageDetail_20' ) end [2025-02-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529562', 'tblTempVendorCDR_20' ) start [2025-02-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529562', 'tblTempVendorCDR_20' ) end [2025-02-22 03:09:17] Production.INFO: ProcessCDR(1,14529562,1,1,2) [2025-02-22 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529562', 'tblTempUsageDetail_20' ) start [2025-02-22 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529562', 'tblTempUsageDetail_20' ) end [2025-02-22 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:09:21] Production.INFO: ==11109== Releasing lock... [2025-02-22 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:10:06 [end_date_ymd] => 2025-02-22 03:10:06 [RateCDR] => 1 ) [2025-02-22 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:10:06' and `end` < '2025-02-22 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:10:18] Production.INFO: count ==588 [2025-02-22 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:10:06 - End Time 2025-02-22 03:10:06 [2025-02-22 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529568', 'tblTempUsageDetail_20' ) start [2025-02-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529568', 'tblTempUsageDetail_20' ) end [2025-02-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529568', 'tblTempVendorCDR_20' ) start [2025-02-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529568', 'tblTempVendorCDR_20' ) end [2025-02-22 03:10:18] Production.INFO: ProcessCDR(1,14529568,1,1,2) [2025-02-22 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529568', 'tblTempUsageDetail_20' ) start [2025-02-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529568', 'tblTempUsageDetail_20' ) end [2025-02-22 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:10:21] Production.INFO: ==11258== Releasing lock... [2025-02-22 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:10:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:11:05 [end_date_ymd] => 2025-02-22 03:11:05 [RateCDR] => 1 ) [2025-02-22 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:11:05' and `end` < '2025-02-22 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:11:17] Production.INFO: count ==572 [2025-02-22 03:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:11:05 - End Time 2025-02-22 03:11:05 [2025-02-22 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529573', 'tblTempUsageDetail_20' ) start [2025-02-22 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529573', 'tblTempUsageDetail_20' ) end [2025-02-22 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529573', 'tblTempVendorCDR_20' ) start [2025-02-22 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529573', 'tblTempVendorCDR_20' ) end [2025-02-22 03:11:17] Production.INFO: ProcessCDR(1,14529573,1,1,2) [2025-02-22 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529573', 'tblTempUsageDetail_20' ) start [2025-02-22 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529573', 'tblTempUsageDetail_20' ) end [2025-02-22 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:11:20] Production.INFO: ==11341== Releasing lock... [2025-02-22 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:11:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:12:05 [end_date_ymd] => 2025-02-22 03:12:05 [RateCDR] => 1 ) [2025-02-22 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:12:05' and `end` < '2025-02-22 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:12:16] Production.INFO: count ==572 [2025-02-22 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:12:05 - End Time 2025-02-22 03:12:05 [2025-02-22 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529578', 'tblTempUsageDetail_20' ) start [2025-02-22 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529578', 'tblTempUsageDetail_20' ) end [2025-02-22 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529578', 'tblTempVendorCDR_20' ) start [2025-02-22 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529578', 'tblTempVendorCDR_20' ) end [2025-02-22 03:12:17] Production.INFO: ProcessCDR(1,14529578,1,1,2) [2025-02-22 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529578', 'tblTempUsageDetail_20' ) start [2025-02-22 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529578', 'tblTempUsageDetail_20' ) end [2025-02-22 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:12:20] Production.INFO: ==11423== Releasing lock... [2025-02-22 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:12:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:13:05 [end_date_ymd] => 2025-02-22 03:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:13:05' and `end` < '2025-02-22 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-02-22 03:13:17] Production.INFO: count ==568 [2025-02-22 03:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:13:05 - End Time 2025-02-22 03:13:05 [2025-02-22 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529583', 'tblTempUsageDetail_20' ) start [2025-02-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529583', 'tblTempUsageDetail_20' ) end [2025-02-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529583', 'tblTempVendorCDR_20' ) start [2025-02-22 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529583', 'tblTempVendorCDR_20' ) end [2025-02-22 03:13:17] Production.INFO: ProcessCDR(1,14529583,1,1,2) [2025-02-22 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529583', 'tblTempUsageDetail_20' ) start [2025-02-22 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529583', 'tblTempUsageDetail_20' ) end [2025-02-22 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:13:21] Production.INFO: ==11589== Releasing lock... [2025-02-22 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:14:05 [end_date_ymd] => 2025-02-22 03:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:14:05' and `end` < '2025-02-22 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-02-22 03:14:17] Production.INFO: count ==565 [2025-02-22 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:14:05 - End Time 2025-02-22 03:14:05 [2025-02-22 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529588', 'tblTempUsageDetail_20' ) start [2025-02-22 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529588', 'tblTempUsageDetail_20' ) end [2025-02-22 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529588', 'tblTempVendorCDR_20' ) start [2025-02-22 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529588', 'tblTempVendorCDR_20' ) end [2025-02-22 03:14:17] Production.INFO: ProcessCDR(1,14529588,1,1,2) [2025-02-22 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529588', 'tblTempUsageDetail_20' ) start [2025-02-22 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529588', 'tblTempUsageDetail_20' ) end [2025-02-22 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:14:20] Production.INFO: ==11675== Releasing lock... [2025-02-22 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:14:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:15:05 [end_date_ymd] => 2025-02-22 03:15:05 [RateCDR] => 1 ) [2025-02-22 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:15:05' and `end` < '2025-02-22 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:15:17] Production.INFO: count ==565 [2025-02-22 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:15:05 - End Time 2025-02-22 03:15:05 [2025-02-22 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529593', 'tblTempUsageDetail_20' ) start [2025-02-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529593', 'tblTempUsageDetail_20' ) end [2025-02-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529593', 'tblTempVendorCDR_20' ) start [2025-02-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529593', 'tblTempVendorCDR_20' ) end [2025-02-22 03:15:17] Production.INFO: ProcessCDR(1,14529593,1,1,2) [2025-02-22 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529593', 'tblTempUsageDetail_20' ) start [2025-02-22 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529593', 'tblTempUsageDetail_20' ) end [2025-02-22 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:15:20] Production.INFO: ==11760== Releasing lock... [2025-02-22 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:15:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:16:05 [end_date_ymd] => 2025-02-22 03:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:16:05' and `end` < '2025-02-22 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-02-22 03:16:17] Production.INFO: count ==564 [2025-02-22 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:16:05 - End Time 2025-02-22 03:16:05 [2025-02-22 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529598', 'tblTempUsageDetail_20' ) start [2025-02-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529598', 'tblTempUsageDetail_20' ) end [2025-02-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529598', 'tblTempVendorCDR_20' ) start [2025-02-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529598', 'tblTempVendorCDR_20' ) end [2025-02-22 03:16:17] Production.INFO: ProcessCDR(1,14529598,1,1,2) [2025-02-22 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529598', 'tblTempUsageDetail_20' ) start [2025-02-22 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529598', 'tblTempUsageDetail_20' ) end [2025-02-22 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:16:20] Production.INFO: ==11833== Releasing lock... [2025-02-22 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:16:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:17:05 [end_date_ymd] => 2025-02-22 03:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:17:05' and `end` < '2025-02-22 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-02-22 03:17:17] Production.INFO: count ==564 [2025-02-22 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:17:05 - End Time 2025-02-22 03:17:05 [2025-02-22 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529603', 'tblTempUsageDetail_20' ) start [2025-02-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529603', 'tblTempUsageDetail_20' ) end [2025-02-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529603', 'tblTempVendorCDR_20' ) start [2025-02-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529603', 'tblTempVendorCDR_20' ) end [2025-02-22 03:17:17] Production.INFO: ProcessCDR(1,14529603,1,1,2) [2025-02-22 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529603', 'tblTempUsageDetail_20' ) start [2025-02-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529603', 'tblTempUsageDetail_20' ) end [2025-02-22 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:17:21] Production.INFO: ==11998== Releasing lock... [2025-02-22 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:18:05 [end_date_ymd] => 2025-02-22 03:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:18:05' and `end` < '2025-02-22 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-02-22 03:18:16] Production.INFO: count ==563 [2025-02-22 03:18:16] Production.ERROR: pbx CDR StartTime 2025-02-22 00:18:05 - End Time 2025-02-22 03:18:05 [2025-02-22 03:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529608', 'tblTempUsageDetail_20' ) start [2025-02-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529608', 'tblTempUsageDetail_20' ) end [2025-02-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529608', 'tblTempVendorCDR_20' ) start [2025-02-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529608', 'tblTempVendorCDR_20' ) end [2025-02-22 03:18:17] Production.INFO: ProcessCDR(1,14529608,1,1,2) [2025-02-22 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529608', 'tblTempUsageDetail_20' ) start [2025-02-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529608', 'tblTempUsageDetail_20' ) end [2025-02-22 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:18:20] Production.INFO: ==12083== Releasing lock... [2025-02-22 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:18:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:19:06 [end_date_ymd] => 2025-02-22 03:19:06 [RateCDR] => 1 ) [2025-02-22 03: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-02-22 00:19:06' and `end` < '2025-02-22 03: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-02-22 03:19:17] Production.INFO: count ==562 [2025-02-22 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:19:06 - End Time 2025-02-22 03:19:06 [2025-02-22 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529613', 'tblTempUsageDetail_20' ) start [2025-02-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529613', 'tblTempUsageDetail_20' ) end [2025-02-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529613', 'tblTempVendorCDR_20' ) start [2025-02-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529613', 'tblTempVendorCDR_20' ) end [2025-02-22 03:19:18] Production.INFO: ProcessCDR(1,14529613,1,1,2) [2025-02-22 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529613', 'tblTempUsageDetail_20' ) start [2025-02-22 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529613', 'tblTempUsageDetail_20' ) end [2025-02-22 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:19:23] Production.INFO: ==12170== Releasing lock... [2025-02-22 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:19:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:20:06 [end_date_ymd] => 2025-02-22 03:20:06 [RateCDR] => 1 ) [2025-02-22 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:20:06' and `end` < '2025-02-22 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:20:18] Production.INFO: count ==553 [2025-02-22 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:20:06 - End Time 2025-02-22 03:20:06 [2025-02-22 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529619', 'tblTempUsageDetail_20' ) start [2025-02-22 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529619', 'tblTempUsageDetail_20' ) end [2025-02-22 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529619', 'tblTempVendorCDR_20' ) start [2025-02-22 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529619', 'tblTempVendorCDR_20' ) end [2025-02-22 03:20:18] Production.INFO: ProcessCDR(1,14529619,1,1,2) [2025-02-22 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529619', 'tblTempUsageDetail_20' ) start [2025-02-22 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529619', 'tblTempUsageDetail_20' ) end [2025-02-22 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:20:22] Production.INFO: ==12252== Releasing lock... [2025-02-22 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:21:05 [end_date_ymd] => 2025-02-22 03:21:05 [RateCDR] => 1 ) [2025-02-22 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:21:05' and `end` < '2025-02-22 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:21:17] Production.INFO: count ==507 [2025-02-22 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:21:05 - End Time 2025-02-22 03:21:05 [2025-02-22 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529624', 'tblTempUsageDetail_20' ) start [2025-02-22 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529624', 'tblTempUsageDetail_20' ) end [2025-02-22 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529624', 'tblTempVendorCDR_20' ) start [2025-02-22 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529624', 'tblTempVendorCDR_20' ) end [2025-02-22 03:21:17] Production.INFO: ProcessCDR(1,14529624,1,1,2) [2025-02-22 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529624', 'tblTempUsageDetail_20' ) start [2025-02-22 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529624', 'tblTempUsageDetail_20' ) end [2025-02-22 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:21:21] Production.INFO: ==12338== Releasing lock... [2025-02-22 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:22:05 [end_date_ymd] => 2025-02-22 03:22:05 [RateCDR] => 1 ) [2025-02-22 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:22:05' and `end` < '2025-02-22 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:22:16] Production.INFO: count ==501 [2025-02-22 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:22:05 - End Time 2025-02-22 03:22:05 [2025-02-22 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529629', 'tblTempUsageDetail_20' ) start [2025-02-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529629', 'tblTempUsageDetail_20' ) end [2025-02-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529629', 'tblTempVendorCDR_20' ) start [2025-02-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529629', 'tblTempVendorCDR_20' ) end [2025-02-22 03:22:17] Production.INFO: ProcessCDR(1,14529629,1,1,2) [2025-02-22 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529629', 'tblTempUsageDetail_20' ) start [2025-02-22 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529629', 'tblTempUsageDetail_20' ) end [2025-02-22 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:22:20] Production.INFO: ==12428== Releasing lock... [2025-02-22 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:22:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:23:05 [end_date_ymd] => 2025-02-22 03:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:23:05' and `end` < '2025-02-22 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-02-22 03:23:17] Production.INFO: count ==501 [2025-02-22 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:23:05 - End Time 2025-02-22 03:23:05 [2025-02-22 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529634', 'tblTempUsageDetail_20' ) start [2025-02-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529634', 'tblTempUsageDetail_20' ) end [2025-02-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529634', 'tblTempVendorCDR_20' ) start [2025-02-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529634', 'tblTempVendorCDR_20' ) end [2025-02-22 03:23:17] Production.INFO: ProcessCDR(1,14529634,1,1,2) [2025-02-22 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529634', 'tblTempUsageDetail_20' ) start [2025-02-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529634', 'tblTempUsageDetail_20' ) end [2025-02-22 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:23:20] Production.INFO: ==12516== Releasing lock... [2025-02-22 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:23:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:24:06 [end_date_ymd] => 2025-02-22 03:24:06 [RateCDR] => 1 ) [2025-02-22 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:24:06' and `end` < '2025-02-22 03: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-02-22 03:24:18] Production.INFO: count ==501 [2025-02-22 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:24:06 - End Time 2025-02-22 03:24:06 [2025-02-22 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529639', 'tblTempUsageDetail_20' ) start [2025-02-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529639', 'tblTempUsageDetail_20' ) end [2025-02-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529639', 'tblTempVendorCDR_20' ) start [2025-02-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529639', 'tblTempVendorCDR_20' ) end [2025-02-22 03:24:18] Production.INFO: ProcessCDR(1,14529639,1,1,2) [2025-02-22 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529639', 'tblTempUsageDetail_20' ) start [2025-02-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529639', 'tblTempUsageDetail_20' ) end [2025-02-22 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:24:21] Production.INFO: ==12598== Releasing lock... [2025-02-22 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:24:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:25:05 [end_date_ymd] => 2025-02-22 03:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:25:05' and `end` < '2025-02-22 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-02-22 03:25:17] Production.INFO: count ==494 [2025-02-22 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:25:05 - End Time 2025-02-22 03:25:05 [2025-02-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529644', 'tblTempUsageDetail_20' ) start [2025-02-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529644', 'tblTempUsageDetail_20' ) end [2025-02-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529644', 'tblTempVendorCDR_20' ) start [2025-02-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529644', 'tblTempVendorCDR_20' ) end [2025-02-22 03:25:17] Production.INFO: ProcessCDR(1,14529644,1,1,2) [2025-02-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529644', 'tblTempUsageDetail_20' ) start [2025-02-22 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529644', 'tblTempUsageDetail_20' ) end [2025-02-22 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:25:20] Production.INFO: ==12681== Releasing lock... [2025-02-22 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:25:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:26:05 [end_date_ymd] => 2025-02-22 03:26:05 [RateCDR] => 1 ) [2025-02-22 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:26:05' and `end` < '2025-02-22 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:26:17] Production.INFO: count ==489 [2025-02-22 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:26:05 - End Time 2025-02-22 03:26:05 [2025-02-22 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529649', 'tblTempUsageDetail_20' ) start [2025-02-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529649', 'tblTempUsageDetail_20' ) end [2025-02-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529649', 'tblTempVendorCDR_20' ) start [2025-02-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529649', 'tblTempVendorCDR_20' ) end [2025-02-22 03:26:17] Production.INFO: ProcessCDR(1,14529649,1,1,2) [2025-02-22 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529649', 'tblTempUsageDetail_20' ) start [2025-02-22 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529649', 'tblTempUsageDetail_20' ) end [2025-02-22 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:26:21] Production.INFO: ==12766== Releasing lock... [2025-02-22 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:26:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:27:05 [end_date_ymd] => 2025-02-22 03:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:27:05' and `end` < '2025-02-22 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-02-22 03:27:17] Production.INFO: count ==489 [2025-02-22 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:27:05 - End Time 2025-02-22 03:27:05 [2025-02-22 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529654', 'tblTempUsageDetail_20' ) start [2025-02-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529654', 'tblTempUsageDetail_20' ) end [2025-02-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529654', 'tblTempVendorCDR_20' ) start [2025-02-22 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529654', 'tblTempVendorCDR_20' ) end [2025-02-22 03:27:17] Production.INFO: ProcessCDR(1,14529654,1,1,2) [2025-02-22 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529654', 'tblTempUsageDetail_20' ) start [2025-02-22 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529654', 'tblTempUsageDetail_20' ) end [2025-02-22 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:27:22] Production.INFO: ==12890== Releasing lock... [2025-02-22 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:27:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:28:05 [end_date_ymd] => 2025-02-22 03:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:28:05' and `end` < '2025-02-22 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-02-22 03:28:17] Production.INFO: count ==489 [2025-02-22 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:28:05 - End Time 2025-02-22 03:28:05 [2025-02-22 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529659', 'tblTempUsageDetail_20' ) start [2025-02-22 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529659', 'tblTempUsageDetail_20' ) end [2025-02-22 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529659', 'tblTempVendorCDR_20' ) start [2025-02-22 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529659', 'tblTempVendorCDR_20' ) end [2025-02-22 03:28:17] Production.INFO: ProcessCDR(1,14529659,1,1,2) [2025-02-22 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529659', 'tblTempUsageDetail_20' ) start [2025-02-22 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529659', 'tblTempUsageDetail_20' ) end [2025-02-22 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:28:21] Production.INFO: ==12968== Releasing lock... [2025-02-22 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:28:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:29:05 [end_date_ymd] => 2025-02-22 03:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:29:05' and `end` < '2025-02-22 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-02-22 03:29:17] Production.INFO: count ==490 [2025-02-22 03:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:29:05 - End Time 2025-02-22 03:29:05 [2025-02-22 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529664', 'tblTempUsageDetail_20' ) start [2025-02-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529664', 'tblTempUsageDetail_20' ) end [2025-02-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529664', 'tblTempVendorCDR_20' ) start [2025-02-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529664', 'tblTempVendorCDR_20' ) end [2025-02-22 03:29:17] Production.INFO: ProcessCDR(1,14529664,1,1,2) [2025-02-22 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529664', 'tblTempUsageDetail_20' ) start [2025-02-22 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529664', 'tblTempUsageDetail_20' ) end [2025-02-22 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:29:20] Production.INFO: ==13047== Releasing lock... [2025-02-22 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:29:20] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:30:06 [end_date_ymd] => 2025-02-22 03:30:06 [RateCDR] => 1 ) [2025-02-22 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:30:06' and `end` < '2025-02-22 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:30:18] Production.INFO: count ==488 [2025-02-22 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:30:06 - End Time 2025-02-22 03:30:06 [2025-02-22 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529670', 'tblTempUsageDetail_20' ) start [2025-02-22 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529670', 'tblTempUsageDetail_20' ) end [2025-02-22 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529670', 'tblTempVendorCDR_20' ) start [2025-02-22 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529670', 'tblTempVendorCDR_20' ) end [2025-02-22 03:30:18] Production.INFO: ProcessCDR(1,14529670,1,1,2) [2025-02-22 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529670', 'tblTempUsageDetail_20' ) start [2025-02-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529670', 'tblTempUsageDetail_20' ) end [2025-02-22 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:30:22] Production.INFO: ==13135== Releasing lock... [2025-02-22 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:31:05 [end_date_ymd] => 2025-02-22 03:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:31:05' and `end` < '2025-02-22 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-02-22 03:31:17] Production.INFO: count ==461 [2025-02-22 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:31:05 - End Time 2025-02-22 03:31:05 [2025-02-22 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529675', 'tblTempUsageDetail_20' ) start [2025-02-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529675', 'tblTempUsageDetail_20' ) end [2025-02-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529675', 'tblTempVendorCDR_20' ) start [2025-02-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529675', 'tblTempVendorCDR_20' ) end [2025-02-22 03:31:17] Production.INFO: ProcessCDR(1,14529675,1,1,2) [2025-02-22 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529675', 'tblTempUsageDetail_20' ) start [2025-02-22 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529675', 'tblTempUsageDetail_20' ) end [2025-02-22 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:31:21] Production.INFO: ==13226== Releasing lock... [2025-02-22 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:32:06 [end_date_ymd] => 2025-02-22 03:32:06 [RateCDR] => 1 ) [2025-02-22 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:32:06' and `end` < '2025-02-22 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:32:18] Production.INFO: count ==461 [2025-02-22 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:32:06 - End Time 2025-02-22 03:32:06 [2025-02-22 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529680', 'tblTempUsageDetail_20' ) start [2025-02-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529680', 'tblTempUsageDetail_20' ) end [2025-02-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529680', 'tblTempVendorCDR_20' ) start [2025-02-22 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529680', 'tblTempVendorCDR_20' ) end [2025-02-22 03:32:18] Production.INFO: ProcessCDR(1,14529680,1,1,2) [2025-02-22 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529680', 'tblTempUsageDetail_20' ) start [2025-02-22 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529680', 'tblTempUsageDetail_20' ) end [2025-02-22 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:32:21] Production.INFO: ==13306== Releasing lock... [2025-02-22 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:33:05 [end_date_ymd] => 2025-02-22 03:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:33:05' and `end` < '2025-02-22 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-02-22 03:33:17] Production.INFO: count ==461 [2025-02-22 03:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:33:05 - End Time 2025-02-22 03:33:05 [2025-02-22 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529685', 'tblTempUsageDetail_20' ) start [2025-02-22 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529685', 'tblTempUsageDetail_20' ) end [2025-02-22 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529685', 'tblTempVendorCDR_20' ) start [2025-02-22 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529685', 'tblTempVendorCDR_20' ) end [2025-02-22 03:33:17] Production.INFO: ProcessCDR(1,14529685,1,1,2) [2025-02-22 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529685', 'tblTempUsageDetail_20' ) start [2025-02-22 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529685', 'tblTempUsageDetail_20' ) end [2025-02-22 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:33:20] Production.INFO: ==13391== Releasing lock... [2025-02-22 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:33:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:34:05 [end_date_ymd] => 2025-02-22 03:34:05 [RateCDR] => 1 ) [2025-02-22 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:34:05' and `end` < '2025-02-22 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:34:17] Production.INFO: count ==464 [2025-02-22 03:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:34:05 - End Time 2025-02-22 03:34:05 [2025-02-22 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529690', 'tblTempUsageDetail_20' ) start [2025-02-22 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529690', 'tblTempUsageDetail_20' ) end [2025-02-22 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529690', 'tblTempVendorCDR_20' ) start [2025-02-22 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529690', 'tblTempVendorCDR_20' ) end [2025-02-22 03:34:17] Production.INFO: ProcessCDR(1,14529690,1,1,2) [2025-02-22 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529690', 'tblTempUsageDetail_20' ) start [2025-02-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529690', 'tblTempUsageDetail_20' ) end [2025-02-22 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:34:21] Production.INFO: ==13474== Releasing lock... [2025-02-22 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:35:05 [end_date_ymd] => 2025-02-22 03:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:35:05' and `end` < '2025-02-22 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-02-22 03:35:17] Production.INFO: count ==467 [2025-02-22 03:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:35:05 - End Time 2025-02-22 03:35:05 [2025-02-22 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529695', 'tblTempUsageDetail_20' ) start [2025-02-22 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529695', 'tblTempUsageDetail_20' ) end [2025-02-22 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529695', 'tblTempVendorCDR_20' ) start [2025-02-22 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529695', 'tblTempVendorCDR_20' ) end [2025-02-22 03:35:17] Production.INFO: ProcessCDR(1,14529695,1,1,2) [2025-02-22 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529695', 'tblTempUsageDetail_20' ) start [2025-02-22 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529695', 'tblTempUsageDetail_20' ) end [2025-02-22 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:35:21] Production.INFO: ==13558== Releasing lock... [2025-02-22 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:36:06 [end_date_ymd] => 2025-02-22 03:36:06 [RateCDR] => 1 ) [2025-02-22 03: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-02-22 00:36:06' and `end` < '2025-02-22 03: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-02-22 03:36:18] Production.INFO: count ==465 [2025-02-22 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:36:06 - End Time 2025-02-22 03:36:06 [2025-02-22 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529700', 'tblTempUsageDetail_20' ) start [2025-02-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529700', 'tblTempUsageDetail_20' ) end [2025-02-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529700', 'tblTempVendorCDR_20' ) start [2025-02-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529700', 'tblTempVendorCDR_20' ) end [2025-02-22 03:36:18] Production.INFO: ProcessCDR(1,14529700,1,1,2) [2025-02-22 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529700', 'tblTempUsageDetail_20' ) start [2025-02-22 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529700', 'tblTempUsageDetail_20' ) end [2025-02-22 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:36:21] Production.INFO: ==13644== Releasing lock... [2025-02-22 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:37:06 [end_date_ymd] => 2025-02-22 03:37:06 [RateCDR] => 1 ) [2025-02-22 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:37:06' and `end` < '2025-02-22 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:37:17] Production.INFO: count ==465 [2025-02-22 03:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:37:06 - End Time 2025-02-22 03:37:06 [2025-02-22 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529705', 'tblTempUsageDetail_20' ) start [2025-02-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529705', 'tblTempUsageDetail_20' ) end [2025-02-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529705', 'tblTempVendorCDR_20' ) start [2025-02-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529705', 'tblTempVendorCDR_20' ) end [2025-02-22 03:37:17] Production.INFO: ProcessCDR(1,14529705,1,1,2) [2025-02-22 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529705', 'tblTempUsageDetail_20' ) start [2025-02-22 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529705', 'tblTempUsageDetail_20' ) end [2025-02-22 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:37:21] Production.INFO: ==13721== Releasing lock... [2025-02-22 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:38:05 [end_date_ymd] => 2025-02-22 03:38:05 [RateCDR] => 1 ) [2025-02-22 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:38:05' and `end` < '2025-02-22 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:38:17] Production.INFO: count ==465 [2025-02-22 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:38:05 - End Time 2025-02-22 03:38:05 [2025-02-22 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529710', 'tblTempUsageDetail_20' ) start [2025-02-22 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529710', 'tblTempUsageDetail_20' ) end [2025-02-22 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529710', 'tblTempVendorCDR_20' ) start [2025-02-22 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529710', 'tblTempVendorCDR_20' ) end [2025-02-22 03:38:17] Production.INFO: ProcessCDR(1,14529710,1,1,2) [2025-02-22 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529710', 'tblTempUsageDetail_20' ) start [2025-02-22 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529710', 'tblTempUsageDetail_20' ) end [2025-02-22 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:38:21] Production.INFO: ==13803== Releasing lock... [2025-02-22 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:39:05 [end_date_ymd] => 2025-02-22 03:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:39:05' and `end` < '2025-02-22 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-02-22 03:39:17] Production.INFO: count ==461 [2025-02-22 03:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:39:05 - End Time 2025-02-22 03:39:05 [2025-02-22 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529715', 'tblTempUsageDetail_20' ) start [2025-02-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529715', 'tblTempUsageDetail_20' ) end [2025-02-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529715', 'tblTempVendorCDR_20' ) start [2025-02-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529715', 'tblTempVendorCDR_20' ) end [2025-02-22 03:39:17] Production.INFO: ProcessCDR(1,14529715,1,1,2) [2025-02-22 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529715', 'tblTempUsageDetail_20' ) start [2025-02-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529715', 'tblTempUsageDetail_20' ) end [2025-02-22 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:39:21] Production.INFO: ==13886== Releasing lock... [2025-02-22 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:40:07 [end_date_ymd] => 2025-02-22 03:40:07 [RateCDR] => 1 ) [2025-02-22 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:40:07' and `end` < '2025-02-22 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:40:19] Production.INFO: count ==453 [2025-02-22 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-22 00:40:07 - End Time 2025-02-22 03:40:07 [2025-02-22 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529721', 'tblTempUsageDetail_20' ) start [2025-02-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529721', 'tblTempUsageDetail_20' ) end [2025-02-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529721', 'tblTempVendorCDR_20' ) start [2025-02-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529721', 'tblTempVendorCDR_20' ) end [2025-02-22 03:40:19] Production.INFO: ProcessCDR(1,14529721,1,1,2) [2025-02-22 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529721', 'tblTempUsageDetail_20' ) start [2025-02-22 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529721', 'tblTempUsageDetail_20' ) end [2025-02-22 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:40:24] Production.INFO: ==13969== Releasing lock... [2025-02-22 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:40:24] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:41:05 [end_date_ymd] => 2025-02-22 03:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:41:05' and `end` < '2025-02-22 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-02-22 03:41:17] Production.INFO: count ==432 [2025-02-22 03:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:41:05 - End Time 2025-02-22 03:41:05 [2025-02-22 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529726', 'tblTempUsageDetail_20' ) start [2025-02-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529726', 'tblTempUsageDetail_20' ) end [2025-02-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529726', 'tblTempVendorCDR_20' ) start [2025-02-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529726', 'tblTempVendorCDR_20' ) end [2025-02-22 03:41:17] Production.INFO: ProcessCDR(1,14529726,1,1,2) [2025-02-22 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529726', 'tblTempUsageDetail_20' ) start [2025-02-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529726', 'tblTempUsageDetail_20' ) end [2025-02-22 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:41:21] Production.INFO: ==14065== Releasing lock... [2025-02-22 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:41:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:42:06 [end_date_ymd] => 2025-02-22 03:42:06 [RateCDR] => 1 ) [2025-02-22 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:42:06' and `end` < '2025-02-22 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:42:17] Production.INFO: count ==430 [2025-02-22 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:42:06 - End Time 2025-02-22 03:42:06 [2025-02-22 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529731', 'tblTempUsageDetail_20' ) start [2025-02-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529731', 'tblTempUsageDetail_20' ) end [2025-02-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529731', 'tblTempVendorCDR_20' ) start [2025-02-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529731', 'tblTempVendorCDR_20' ) end [2025-02-22 03:42:18] Production.INFO: ProcessCDR(1,14529731,1,1,2) [2025-02-22 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529731', 'tblTempUsageDetail_20' ) start [2025-02-22 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529731', 'tblTempUsageDetail_20' ) end [2025-02-22 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:42:21] Production.INFO: ==14160== Releasing lock... [2025-02-22 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:43:05 [end_date_ymd] => 2025-02-22 03:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:43:05' and `end` < '2025-02-22 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-02-22 03:43:17] Production.INFO: count ==430 [2025-02-22 03:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:43:05 - End Time 2025-02-22 03:43:05 [2025-02-22 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529736', 'tblTempUsageDetail_20' ) start [2025-02-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529736', 'tblTempUsageDetail_20' ) end [2025-02-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529736', 'tblTempVendorCDR_20' ) start [2025-02-22 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529736', 'tblTempVendorCDR_20' ) end [2025-02-22 03:43:17] Production.INFO: ProcessCDR(1,14529736,1,1,2) [2025-02-22 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529736', 'tblTempUsageDetail_20' ) start [2025-02-22 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529736', 'tblTempUsageDetail_20' ) end [2025-02-22 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:43:21] Production.INFO: ==14272== Releasing lock... [2025-02-22 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:44:06 [end_date_ymd] => 2025-02-22 03:44:06 [RateCDR] => 1 ) [2025-02-22 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:44:06' and `end` < '2025-02-22 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:44:18] Production.INFO: count ==433 [2025-02-22 03:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:44:06 - End Time 2025-02-22 03:44:06 [2025-02-22 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529741', 'tblTempUsageDetail_20' ) start [2025-02-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529741', 'tblTempUsageDetail_20' ) end [2025-02-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529741', 'tblTempVendorCDR_20' ) start [2025-02-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529741', 'tblTempVendorCDR_20' ) end [2025-02-22 03:44:18] Production.INFO: ProcessCDR(1,14529741,1,1,2) [2025-02-22 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529741', 'tblTempUsageDetail_20' ) start [2025-02-22 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529741', 'tblTempUsageDetail_20' ) end [2025-02-22 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:44:21] Production.INFO: ==14342== Releasing lock... [2025-02-22 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:45:05 [end_date_ymd] => 2025-02-22 03:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:45:05' and `end` < '2025-02-22 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-02-22 03:45:17] Production.INFO: count ==433 [2025-02-22 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:45:05 - End Time 2025-02-22 03:45:05 [2025-02-22 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529746', 'tblTempUsageDetail_20' ) start [2025-02-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529746', 'tblTempUsageDetail_20' ) end [2025-02-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529746', 'tblTempVendorCDR_20' ) start [2025-02-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529746', 'tblTempVendorCDR_20' ) end [2025-02-22 03:45:17] Production.INFO: ProcessCDR(1,14529746,1,1,2) [2025-02-22 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529746', 'tblTempUsageDetail_20' ) start [2025-02-22 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529746', 'tblTempUsageDetail_20' ) end [2025-02-22 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:45:20] Production.INFO: ==14415== Releasing lock... [2025-02-22 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:45:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:46:05 [end_date_ymd] => 2025-02-22 03:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:46:05' and `end` < '2025-02-22 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-02-22 03:46:17] Production.INFO: count ==433 [2025-02-22 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:46:05 - End Time 2025-02-22 03:46:05 [2025-02-22 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529751', 'tblTempUsageDetail_20' ) start [2025-02-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529751', 'tblTempUsageDetail_20' ) end [2025-02-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529751', 'tblTempVendorCDR_20' ) start [2025-02-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529751', 'tblTempVendorCDR_20' ) end [2025-02-22 03:46:17] Production.INFO: ProcessCDR(1,14529751,1,1,2) [2025-02-22 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529751', 'tblTempUsageDetail_20' ) start [2025-02-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529751', 'tblTempUsageDetail_20' ) end [2025-02-22 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:46:21] Production.INFO: ==14486== Releasing lock... [2025-02-22 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:47:05 [end_date_ymd] => 2025-02-22 03:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:47:05' and `end` < '2025-02-22 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-02-22 03:47:17] Production.INFO: count ==433 [2025-02-22 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:47:05 - End Time 2025-02-22 03:47:05 [2025-02-22 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529756', 'tblTempUsageDetail_20' ) start [2025-02-22 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529756', 'tblTempUsageDetail_20' ) end [2025-02-22 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529756', 'tblTempVendorCDR_20' ) start [2025-02-22 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529756', 'tblTempVendorCDR_20' ) end [2025-02-22 03:47:17] Production.INFO: ProcessCDR(1,14529756,1,1,2) [2025-02-22 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529756', 'tblTempUsageDetail_20' ) start [2025-02-22 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529756', 'tblTempUsageDetail_20' ) end [2025-02-22 03:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:47:20] Production.INFO: ==14564== Releasing lock... [2025-02-22 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:47:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:48:06 [end_date_ymd] => 2025-02-22 03:48:06 [RateCDR] => 1 ) [2025-02-22 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:48:06' and `end` < '2025-02-22 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:48:17] Production.INFO: count ==433 [2025-02-22 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:48:06 - End Time 2025-02-22 03:48:06 [2025-02-22 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529761', 'tblTempUsageDetail_20' ) start [2025-02-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529761', 'tblTempUsageDetail_20' ) end [2025-02-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529761', 'tblTempVendorCDR_20' ) start [2025-02-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529761', 'tblTempVendorCDR_20' ) end [2025-02-22 03:48:18] Production.INFO: ProcessCDR(1,14529761,1,1,2) [2025-02-22 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529761', 'tblTempUsageDetail_20' ) start [2025-02-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529761', 'tblTempUsageDetail_20' ) end [2025-02-22 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:48:21] Production.INFO: ==14637== Releasing lock... [2025-02-22 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:49:05 [end_date_ymd] => 2025-02-22 03:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:49:05' and `end` < '2025-02-22 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-02-22 03:49:17] Production.INFO: count ==432 [2025-02-22 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:49:05 - End Time 2025-02-22 03:49:05 [2025-02-22 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529766', 'tblTempUsageDetail_20' ) start [2025-02-22 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529766', 'tblTempUsageDetail_20' ) end [2025-02-22 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529766', 'tblTempVendorCDR_20' ) start [2025-02-22 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529766', 'tblTempVendorCDR_20' ) end [2025-02-22 03:49:17] Production.INFO: ProcessCDR(1,14529766,1,1,2) [2025-02-22 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529766', 'tblTempUsageDetail_20' ) start [2025-02-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529766', 'tblTempUsageDetail_20' ) end [2025-02-22 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:49:21] Production.INFO: ==14707== Releasing lock... [2025-02-22 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:49:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:50:06 [end_date_ymd] => 2025-02-22 03:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:50:06' and `end` < '2025-02-22 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-02-22 03:50:18] Production.INFO: count ==432 [2025-02-22 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:50:06 - End Time 2025-02-22 03:50:06 [2025-02-22 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529772', 'tblTempUsageDetail_20' ) start [2025-02-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529772', 'tblTempUsageDetail_20' ) end [2025-02-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529772', 'tblTempVendorCDR_20' ) start [2025-02-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529772', 'tblTempVendorCDR_20' ) end [2025-02-22 03:50:18] Production.INFO: ProcessCDR(1,14529772,1,1,2) [2025-02-22 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529772', 'tblTempUsageDetail_20' ) start [2025-02-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529772', 'tblTempUsageDetail_20' ) end [2025-02-22 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:50:22] Production.INFO: ==14788== Releasing lock... [2025-02-22 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:50:22] Production.INFO: 32 MB #Memory Used# [2025-02-22 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:51:05 [end_date_ymd] => 2025-02-22 03:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:51:05' and `end` < '2025-02-22 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-02-22 03:51:17] Production.INFO: count ==419 [2025-02-22 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:51:05 - End Time 2025-02-22 03:51:05 [2025-02-22 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529777', 'tblTempUsageDetail_20' ) start [2025-02-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529777', 'tblTempUsageDetail_20' ) end [2025-02-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529777', 'tblTempVendorCDR_20' ) start [2025-02-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529777', 'tblTempVendorCDR_20' ) end [2025-02-22 03:51:17] Production.INFO: ProcessCDR(1,14529777,1,1,2) [2025-02-22 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529777', 'tblTempUsageDetail_20' ) start [2025-02-22 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529777', 'tblTempUsageDetail_20' ) end [2025-02-22 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:51:21] Production.INFO: ==14861== Releasing lock... [2025-02-22 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:52:06 [end_date_ymd] => 2025-02-22 03:52:06 [RateCDR] => 1 ) [2025-02-22 03: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-02-22 00:52:06' and `end` < '2025-02-22 03: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-02-22 03:52:17] Production.INFO: count ==419 [2025-02-22 03:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:52:06 - End Time 2025-02-22 03:52:06 [2025-02-22 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529782', 'tblTempUsageDetail_20' ) start [2025-02-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529782', 'tblTempUsageDetail_20' ) end [2025-02-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529782', 'tblTempVendorCDR_20' ) start [2025-02-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529782', 'tblTempVendorCDR_20' ) end [2025-02-22 03:52:17] Production.INFO: ProcessCDR(1,14529782,1,1,2) [2025-02-22 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529782', 'tblTempUsageDetail_20' ) start [2025-02-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529782', 'tblTempUsageDetail_20' ) end [2025-02-22 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:52:21] Production.INFO: ==14932== Releasing lock... [2025-02-22 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:53:05 [end_date_ymd] => 2025-02-22 03:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:53:05' and `end` < '2025-02-22 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-02-22 03:53:17] Production.INFO: count ==418 [2025-02-22 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:53:05 - End Time 2025-02-22 03:53:05 [2025-02-22 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529787', 'tblTempUsageDetail_20' ) start [2025-02-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529787', 'tblTempUsageDetail_20' ) end [2025-02-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529787', 'tblTempVendorCDR_20' ) start [2025-02-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529787', 'tblTempVendorCDR_20' ) end [2025-02-22 03:53:17] Production.INFO: ProcessCDR(1,14529787,1,1,2) [2025-02-22 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529787', 'tblTempUsageDetail_20' ) start [2025-02-22 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529787', 'tblTempUsageDetail_20' ) end [2025-02-22 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:53:20] Production.INFO: ==15006== Releasing lock... [2025-02-22 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:53:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:54:05 [end_date_ymd] => 2025-02-22 03:54:05 [RateCDR] => 1 ) [2025-02-22 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:54:05' and `end` < '2025-02-22 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:54:17] Production.INFO: count ==416 [2025-02-22 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:54:05 - End Time 2025-02-22 03:54:05 [2025-02-22 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529792', 'tblTempUsageDetail_20' ) start [2025-02-22 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529792', 'tblTempUsageDetail_20' ) end [2025-02-22 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529792', 'tblTempVendorCDR_20' ) start [2025-02-22 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529792', 'tblTempVendorCDR_20' ) end [2025-02-22 03:54:17] Production.INFO: ProcessCDR(1,14529792,1,1,2) [2025-02-22 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529792', 'tblTempUsageDetail_20' ) start [2025-02-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529792', 'tblTempUsageDetail_20' ) end [2025-02-22 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:54:21] Production.INFO: ==15075== Releasing lock... [2025-02-22 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:55:06 [end_date_ymd] => 2025-02-22 03:55:06 [RateCDR] => 1 ) [2025-02-22 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:55:06' and `end` < '2025-02-22 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:55:17] Production.INFO: count ==412 [2025-02-22 03:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:55:06 - End Time 2025-02-22 03:55:06 [2025-02-22 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529797', 'tblTempUsageDetail_20' ) start [2025-02-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529797', 'tblTempUsageDetail_20' ) end [2025-02-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529797', 'tblTempVendorCDR_20' ) start [2025-02-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529797', 'tblTempVendorCDR_20' ) end [2025-02-22 03:55:17] Production.INFO: ProcessCDR(1,14529797,1,1,2) [2025-02-22 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529797', 'tblTempUsageDetail_20' ) start [2025-02-22 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529797', 'tblTempUsageDetail_20' ) end [2025-02-22 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:55:21] Production.INFO: ==15147== Releasing lock... [2025-02-22 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:56:06 [end_date_ymd] => 2025-02-22 03:56:06 [RateCDR] => 1 ) [2025-02-22 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:56:06' and `end` < '2025-02-22 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:56:17] Production.INFO: count ==410 [2025-02-22 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:56:06 - End Time 2025-02-22 03:56:06 [2025-02-22 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529802', 'tblTempUsageDetail_20' ) start [2025-02-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529802', 'tblTempUsageDetail_20' ) end [2025-02-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529802', 'tblTempVendorCDR_20' ) start [2025-02-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529802', 'tblTempVendorCDR_20' ) end [2025-02-22 03:56:17] Production.INFO: ProcessCDR(1,14529802,1,1,2) [2025-02-22 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529802', 'tblTempUsageDetail_20' ) start [2025-02-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529802', 'tblTempUsageDetail_20' ) end [2025-02-22 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:56:21] Production.INFO: ==15218== Releasing lock... [2025-02-22 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:56:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:57:05 [end_date_ymd] => 2025-02-22 03:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 00:57:05' and `end` < '2025-02-22 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-02-22 03:57:17] Production.INFO: count ==407 [2025-02-22 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:57:05 - End Time 2025-02-22 03:57:05 [2025-02-22 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529807', 'tblTempUsageDetail_20' ) start [2025-02-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529807', 'tblTempUsageDetail_20' ) end [2025-02-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529807', 'tblTempVendorCDR_20' ) start [2025-02-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529807', 'tblTempVendorCDR_20' ) end [2025-02-22 03:57:17] Production.INFO: ProcessCDR(1,14529807,1,1,2) [2025-02-22 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529807', 'tblTempUsageDetail_20' ) start [2025-02-22 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529807', 'tblTempUsageDetail_20' ) end [2025-02-22 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:57:20] Production.INFO: ==15288== Releasing lock... [2025-02-22 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:57:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:58:06 [end_date_ymd] => 2025-02-22 03:58:06 [RateCDR] => 1 ) [2025-02-22 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:58:06' and `end` < '2025-02-22 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:58:18] Production.INFO: count ==407 [2025-02-22 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 00:58:06 - End Time 2025-02-22 03:58:06 [2025-02-22 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529812', 'tblTempUsageDetail_20' ) start [2025-02-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529812', 'tblTempUsageDetail_20' ) end [2025-02-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529812', 'tblTempVendorCDR_20' ) start [2025-02-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529812', 'tblTempVendorCDR_20' ) end [2025-02-22 03:58:18] Production.INFO: ProcessCDR(1,14529812,1,1,2) [2025-02-22 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529812', 'tblTempUsageDetail_20' ) start [2025-02-22 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529812', 'tblTempUsageDetail_20' ) end [2025-02-22 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:58:21] Production.INFO: ==15399== Releasing lock... [2025-02-22 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 00:59:05 [end_date_ymd] => 2025-02-22 03:59:05 [RateCDR] => 1 ) [2025-02-22 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 00:59:05' and `end` < '2025-02-22 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 03:59:17] Production.INFO: count ==406 [2025-02-22 03:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 00:59:05 - End Time 2025-02-22 03:59:05 [2025-02-22 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529817', 'tblTempUsageDetail_20' ) start [2025-02-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529817', 'tblTempUsageDetail_20' ) end [2025-02-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529817', 'tblTempVendorCDR_20' ) start [2025-02-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529817', 'tblTempVendorCDR_20' ) end [2025-02-22 03:59:17] Production.INFO: ProcessCDR(1,14529817,1,1,2) [2025-02-22 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529817', 'tblTempUsageDetail_20' ) start [2025-02-22 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529817', 'tblTempUsageDetail_20' ) end [2025-02-22 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 03:59:21] Production.INFO: ==15470== Releasing lock... [2025-02-22 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 03:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:00:07 [end_date_ymd] => 2025-02-22 04:00:07 [RateCDR] => 1 ) [2025-02-22 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:00:07' and `end` < '2025-02-22 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:00:19] Production.INFO: count ==406 [2025-02-22 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 01:00:07 - End Time 2025-02-22 04:00:07 [2025-02-22 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529824', 'tblTempUsageDetail_20' ) start [2025-02-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529824', 'tblTempUsageDetail_20' ) end [2025-02-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529824', 'tblTempVendorCDR_20' ) start [2025-02-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529824', 'tblTempVendorCDR_20' ) end [2025-02-22 04:00:19] Production.INFO: ProcessCDR(1,14529824,1,1,2) [2025-02-22 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529824', 'tblTempUsageDetail_20' ) start [2025-02-22 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529824', 'tblTempUsageDetail_20' ) end [2025-02-22 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:00:24] Production.INFO: ==15548== Releasing lock... [2025-02-22 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:00:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:01:05 [end_date_ymd] => 2025-02-22 04:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:01:05' and `end` < '2025-02-22 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-02-22 04:01:16] Production.INFO: count ==406 [2025-02-22 04:01:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:01:05 - End Time 2025-02-22 04:01:05 [2025-02-22 04:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529829', 'tblTempUsageDetail_20' ) start [2025-02-22 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529829', 'tblTempUsageDetail_20' ) end [2025-02-22 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529829', 'tblTempVendorCDR_20' ) start [2025-02-22 04:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529829', 'tblTempVendorCDR_20' ) end [2025-02-22 04:01:16] Production.INFO: ProcessCDR(1,14529829,1,1,2) [2025-02-22 04:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529829', 'tblTempUsageDetail_20' ) start [2025-02-22 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529829', 'tblTempUsageDetail_20' ) end [2025-02-22 04:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:01:20] Production.INFO: ==15638== Releasing lock... [2025-02-22 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:01:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:02:06 [end_date_ymd] => 2025-02-22 04:02:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:02:06' and `end` < '2025-02-22 04: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-02-22 04:02:18] Production.INFO: count ==407 [2025-02-22 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:02:06 - End Time 2025-02-22 04:02:06 [2025-02-22 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529831', 'tblTempUsageDetail_20' ) start [2025-02-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529831', 'tblTempUsageDetail_20' ) end [2025-02-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529831', 'tblTempVendorCDR_20' ) start [2025-02-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529831', 'tblTempVendorCDR_20' ) end [2025-02-22 04:02:18] Production.INFO: ProcessCDR(1,14529831,1,1,2) [2025-02-22 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529831', 'tblTempUsageDetail_20' ) start [2025-02-22 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529831', 'tblTempUsageDetail_20' ) end [2025-02-22 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:02:23] Production.INFO: ==15708== Releasing lock... [2025-02-22 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:03:06 [end_date_ymd] => 2025-02-22 04:03:06 [RateCDR] => 1 ) [2025-02-22 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:03:06' and `end` < '2025-02-22 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:03:17] Production.INFO: count ==407 [2025-02-22 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:03:06 - End Time 2025-02-22 04:03:06 [2025-02-22 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529839', 'tblTempUsageDetail_20' ) start [2025-02-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529839', 'tblTempUsageDetail_20' ) end [2025-02-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529839', 'tblTempVendorCDR_20' ) start [2025-02-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529839', 'tblTempVendorCDR_20' ) end [2025-02-22 04:03:17] Production.INFO: ProcessCDR(1,14529839,1,1,2) [2025-02-22 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529839', 'tblTempUsageDetail_20' ) start [2025-02-22 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529839', 'tblTempUsageDetail_20' ) end [2025-02-22 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:03:21] Production.INFO: ==15782== Releasing lock... [2025-02-22 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:04:06 [end_date_ymd] => 2025-02-22 04:04:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:04:06' and `end` < '2025-02-22 04: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-02-22 04:04:18] Production.INFO: count ==403 [2025-02-22 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:04:06 - End Time 2025-02-22 04:04:06 [2025-02-22 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529844', 'tblTempUsageDetail_20' ) start [2025-02-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529844', 'tblTempUsageDetail_20' ) end [2025-02-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529844', 'tblTempVendorCDR_20' ) start [2025-02-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529844', 'tblTempVendorCDR_20' ) end [2025-02-22 04:04:18] Production.INFO: ProcessCDR(1,14529844,1,1,2) [2025-02-22 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529844', 'tblTempUsageDetail_20' ) start [2025-02-22 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529844', 'tblTempUsageDetail_20' ) end [2025-02-22 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:04:21] Production.INFO: ==15855== Releasing lock... [2025-02-22 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:05:05 [end_date_ymd] => 2025-02-22 04:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:05:05' and `end` < '2025-02-22 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-02-22 04:05:17] Production.INFO: count ==407 [2025-02-22 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:05:05 - End Time 2025-02-22 04:05:05 [2025-02-22 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529849', 'tblTempUsageDetail_20' ) start [2025-02-22 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529849', 'tblTempUsageDetail_20' ) end [2025-02-22 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529849', 'tblTempVendorCDR_20' ) start [2025-02-22 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529849', 'tblTempVendorCDR_20' ) end [2025-02-22 04:05:17] Production.INFO: ProcessCDR(1,14529849,1,1,2) [2025-02-22 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529849', 'tblTempUsageDetail_20' ) start [2025-02-22 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529849', 'tblTempUsageDetail_20' ) end [2025-02-22 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:05:22] Production.INFO: ==15925== Releasing lock... [2025-02-22 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:06:06 [end_date_ymd] => 2025-02-22 04:06:06 [RateCDR] => 1 ) [2025-02-22 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:06:06' and `end` < '2025-02-22 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:06:18] Production.INFO: count ==409 [2025-02-22 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:06:06 - End Time 2025-02-22 04:06:06 [2025-02-22 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529854', 'tblTempUsageDetail_20' ) start [2025-02-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529854', 'tblTempUsageDetail_20' ) end [2025-02-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529854', 'tblTempVendorCDR_20' ) start [2025-02-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529854', 'tblTempVendorCDR_20' ) end [2025-02-22 04:06:18] Production.INFO: ProcessCDR(1,14529854,1,1,2) [2025-02-22 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529854', 'tblTempUsageDetail_20' ) start [2025-02-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529854', 'tblTempUsageDetail_20' ) end [2025-02-22 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:06:21] Production.INFO: ==16002== Releasing lock... [2025-02-22 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:06:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:07:05 [end_date_ymd] => 2025-02-22 04:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:07:05' and `end` < '2025-02-22 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-02-22 04:07:17] Production.INFO: count ==409 [2025-02-22 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:07:05 - End Time 2025-02-22 04:07:05 [2025-02-22 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529859', 'tblTempUsageDetail_20' ) start [2025-02-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529859', 'tblTempUsageDetail_20' ) end [2025-02-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529859', 'tblTempVendorCDR_20' ) start [2025-02-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529859', 'tblTempVendorCDR_20' ) end [2025-02-22 04:07:17] Production.INFO: ProcessCDR(1,14529859,1,1,2) [2025-02-22 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529859', 'tblTempUsageDetail_20' ) start [2025-02-22 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529859', 'tblTempUsageDetail_20' ) end [2025-02-22 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:07:20] Production.INFO: ==16092== Releasing lock... [2025-02-22 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:07:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:08:06 [end_date_ymd] => 2025-02-22 04:08:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:08:06' and `end` < '2025-02-22 04: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-02-22 04:08:17] Production.INFO: count ==409 [2025-02-22 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:08:06 - End Time 2025-02-22 04:08:06 [2025-02-22 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529864', 'tblTempUsageDetail_20' ) start [2025-02-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529864', 'tblTempUsageDetail_20' ) end [2025-02-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529864', 'tblTempVendorCDR_20' ) start [2025-02-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529864', 'tblTempVendorCDR_20' ) end [2025-02-22 04:08:17] Production.INFO: ProcessCDR(1,14529864,1,1,2) [2025-02-22 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529864', 'tblTempUsageDetail_20' ) start [2025-02-22 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529864', 'tblTempUsageDetail_20' ) end [2025-02-22 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:08:21] Production.INFO: ==16166== Releasing lock... [2025-02-22 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:09:05 [end_date_ymd] => 2025-02-22 04:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:09:05' and `end` < '2025-02-22 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-02-22 04:09:17] Production.INFO: count ==409 [2025-02-22 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:09:05 - End Time 2025-02-22 04:09:05 [2025-02-22 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529869', 'tblTempUsageDetail_20' ) start [2025-02-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529869', 'tblTempUsageDetail_20' ) end [2025-02-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529869', 'tblTempVendorCDR_20' ) start [2025-02-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529869', 'tblTempVendorCDR_20' ) end [2025-02-22 04:09:17] Production.INFO: ProcessCDR(1,14529869,1,1,2) [2025-02-22 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529869', 'tblTempUsageDetail_20' ) start [2025-02-22 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529869', 'tblTempUsageDetail_20' ) end [2025-02-22 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:09:20] Production.INFO: ==16235== Releasing lock... [2025-02-22 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:09:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:10:06 [end_date_ymd] => 2025-02-22 04:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:10:06' and `end` < '2025-02-22 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:10:18] Production.INFO: count ==401 [2025-02-22 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:10:06 - End Time 2025-02-22 04:10:06 [2025-02-22 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529874', 'tblTempUsageDetail_20' ) start [2025-02-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529874', 'tblTempUsageDetail_20' ) end [2025-02-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529874', 'tblTempVendorCDR_20' ) start [2025-02-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529874', 'tblTempVendorCDR_20' ) end [2025-02-22 04:10:18] Production.INFO: ProcessCDR(1,14529874,1,1,2) [2025-02-22 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529874', 'tblTempUsageDetail_20' ) start [2025-02-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529874', 'tblTempUsageDetail_20' ) end [2025-02-22 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:10:22] Production.INFO: ==16308== Releasing lock... [2025-02-22 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:11:05 [end_date_ymd] => 2025-02-22 04:11:05 [RateCDR] => 1 ) [2025-02-22 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:11:05' and `end` < '2025-02-22 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:11:17] Production.INFO: count ==397 [2025-02-22 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:11:05 - End Time 2025-02-22 04:11:05 [2025-02-22 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529880', 'tblTempUsageDetail_20' ) start [2025-02-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529880', 'tblTempUsageDetail_20' ) end [2025-02-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529880', 'tblTempVendorCDR_20' ) start [2025-02-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529880', 'tblTempVendorCDR_20' ) end [2025-02-22 04:11:17] Production.INFO: ProcessCDR(1,14529880,1,1,2) [2025-02-22 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529880', 'tblTempUsageDetail_20' ) start [2025-02-22 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529880', 'tblTempUsageDetail_20' ) end [2025-02-22 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:11:20] Production.INFO: ==16380== Releasing lock... [2025-02-22 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:11:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:12:06 [end_date_ymd] => 2025-02-22 04:12:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:12:06' and `end` < '2025-02-22 04: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-02-22 04:12:18] Production.INFO: count ==389 [2025-02-22 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:12:06 - End Time 2025-02-22 04:12:06 [2025-02-22 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529885', 'tblTempUsageDetail_20' ) start [2025-02-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529885', 'tblTempUsageDetail_20' ) end [2025-02-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529885', 'tblTempVendorCDR_20' ) start [2025-02-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529885', 'tblTempVendorCDR_20' ) end [2025-02-22 04:12:18] Production.INFO: ProcessCDR(1,14529885,1,1,2) [2025-02-22 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529885', 'tblTempUsageDetail_20' ) start [2025-02-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529885', 'tblTempUsageDetail_20' ) end [2025-02-22 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:12:21] Production.INFO: ==16451== Releasing lock... [2025-02-22 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:13:05 [end_date_ymd] => 2025-02-22 04:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:13:05' and `end` < '2025-02-22 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-02-22 04:13:17] Production.INFO: count ==378 [2025-02-22 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:13:05 - End Time 2025-02-22 04:13:05 [2025-02-22 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529890', 'tblTempUsageDetail_20' ) start [2025-02-22 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529890', 'tblTempUsageDetail_20' ) end [2025-02-22 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529890', 'tblTempVendorCDR_20' ) start [2025-02-22 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529890', 'tblTempVendorCDR_20' ) end [2025-02-22 04:13:17] Production.INFO: ProcessCDR(1,14529890,1,1,2) [2025-02-22 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529890', 'tblTempUsageDetail_20' ) start [2025-02-22 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529890', 'tblTempUsageDetail_20' ) end [2025-02-22 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:13:20] Production.INFO: ==16562== Releasing lock... [2025-02-22 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:13:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:14:06 [end_date_ymd] => 2025-02-22 04:14:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:14:06' and `end` < '2025-02-22 04: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-02-22 04:14:17] Production.INFO: count ==372 [2025-02-22 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:14:06 - End Time 2025-02-22 04:14:06 [2025-02-22 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529895', 'tblTempUsageDetail_20' ) start [2025-02-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529895', 'tblTempUsageDetail_20' ) end [2025-02-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529895', 'tblTempVendorCDR_20' ) start [2025-02-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529895', 'tblTempVendorCDR_20' ) end [2025-02-22 04:14:18] Production.INFO: ProcessCDR(1,14529895,1,1,2) [2025-02-22 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529895', 'tblTempUsageDetail_20' ) start [2025-02-22 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529895', 'tblTempUsageDetail_20' ) end [2025-02-22 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:14:21] Production.INFO: ==16634== Releasing lock... [2025-02-22 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:15:05 [end_date_ymd] => 2025-02-22 04:15:05 [RateCDR] => 1 ) [2025-02-22 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:15:05' and `end` < '2025-02-22 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:15:17] Production.INFO: count ==374 [2025-02-22 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:15:05 - End Time 2025-02-22 04:15:05 [2025-02-22 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529900', 'tblTempUsageDetail_20' ) start [2025-02-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529900', 'tblTempUsageDetail_20' ) end [2025-02-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529900', 'tblTempVendorCDR_20' ) start [2025-02-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529900', 'tblTempVendorCDR_20' ) end [2025-02-22 04:15:17] Production.INFO: ProcessCDR(1,14529900,1,1,2) [2025-02-22 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529900', 'tblTempUsageDetail_20' ) start [2025-02-22 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529900', 'tblTempUsageDetail_20' ) end [2025-02-22 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:15:20] Production.INFO: ==16703== Releasing lock... [2025-02-22 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:15:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:16:05 [end_date_ymd] => 2025-02-22 04:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:16:05' and `end` < '2025-02-22 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-02-22 04:16:17] Production.INFO: count ==373 [2025-02-22 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:16:05 - End Time 2025-02-22 04:16:05 [2025-02-22 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529905', 'tblTempUsageDetail_20' ) start [2025-02-22 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529905', 'tblTempUsageDetail_20' ) end [2025-02-22 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529905', 'tblTempVendorCDR_20' ) start [2025-02-22 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529905', 'tblTempVendorCDR_20' ) end [2025-02-22 04:16:17] Production.INFO: ProcessCDR(1,14529905,1,1,2) [2025-02-22 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529905', 'tblTempUsageDetail_20' ) start [2025-02-22 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529905', 'tblTempUsageDetail_20' ) end [2025-02-22 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:16:20] Production.INFO: ==16774== Releasing lock... [2025-02-22 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:16:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:17:05 [end_date_ymd] => 2025-02-22 04:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:17:05' and `end` < '2025-02-22 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-02-22 04:17:16] Production.INFO: count ==373 [2025-02-22 04:17:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:17:05 - End Time 2025-02-22 04:17:05 [2025-02-22 04:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529910', 'tblTempUsageDetail_20' ) start [2025-02-22 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529910', 'tblTempUsageDetail_20' ) end [2025-02-22 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529910', 'tblTempVendorCDR_20' ) start [2025-02-22 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529910', 'tblTempVendorCDR_20' ) end [2025-02-22 04:17:16] Production.INFO: ProcessCDR(1,14529910,1,1,2) [2025-02-22 04:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529910', 'tblTempUsageDetail_20' ) start [2025-02-22 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529910', 'tblTempUsageDetail_20' ) end [2025-02-22 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:17:20] Production.INFO: ==16843== Releasing lock... [2025-02-22 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:17:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:18:05 [end_date_ymd] => 2025-02-22 04:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:18:05' and `end` < '2025-02-22 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-02-22 04:18:17] Production.INFO: count ==373 [2025-02-22 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:18:05 - End Time 2025-02-22 04:18:05 [2025-02-22 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529915', 'tblTempUsageDetail_20' ) start [2025-02-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529915', 'tblTempUsageDetail_20' ) end [2025-02-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529915', 'tblTempVendorCDR_20' ) start [2025-02-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529915', 'tblTempVendorCDR_20' ) end [2025-02-22 04:18:17] Production.INFO: ProcessCDR(1,14529915,1,1,2) [2025-02-22 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529915', 'tblTempUsageDetail_20' ) start [2025-02-22 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529915', 'tblTempUsageDetail_20' ) end [2025-02-22 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:18:21] Production.INFO: ==16931== Releasing lock... [2025-02-22 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:19:05 [end_date_ymd] => 2025-02-22 04:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:19:05' and `end` < '2025-02-22 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-02-22 04:19:16] Production.INFO: count ==372 [2025-02-22 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:19:05 - End Time 2025-02-22 04:19:05 [2025-02-22 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529920', 'tblTempUsageDetail_20' ) start [2025-02-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529920', 'tblTempUsageDetail_20' ) end [2025-02-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529920', 'tblTempVendorCDR_20' ) start [2025-02-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529920', 'tblTempVendorCDR_20' ) end [2025-02-22 04:19:17] Production.INFO: ProcessCDR(1,14529920,1,1,2) [2025-02-22 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529920', 'tblTempUsageDetail_20' ) start [2025-02-22 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529920', 'tblTempUsageDetail_20' ) end [2025-02-22 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:19:20] Production.INFO: ==17003== Releasing lock... [2025-02-22 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:19:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:20:06 [end_date_ymd] => 2025-02-22 04:20:06 [RateCDR] => 1 ) [2025-02-22 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:20:06' and `end` < '2025-02-22 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:20:18] Production.INFO: count ==364 [2025-02-22 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:20:06 - End Time 2025-02-22 04:20:06 [2025-02-22 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529926', 'tblTempUsageDetail_20' ) start [2025-02-22 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529926', 'tblTempUsageDetail_20' ) end [2025-02-22 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529926', 'tblTempVendorCDR_20' ) start [2025-02-22 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529926', 'tblTempVendorCDR_20' ) end [2025-02-22 04:20:18] Production.INFO: ProcessCDR(1,14529926,1,1,2) [2025-02-22 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529926', 'tblTempUsageDetail_20' ) start [2025-02-22 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529926', 'tblTempUsageDetail_20' ) end [2025-02-22 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:20:21] Production.INFO: ==17083== Releasing lock... [2025-02-22 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:21:05 [end_date_ymd] => 2025-02-22 04:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:21:05' and `end` < '2025-02-22 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-02-22 04:21:17] Production.INFO: count ==348 [2025-02-22 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:21:05 - End Time 2025-02-22 04:21:05 [2025-02-22 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529931', 'tblTempUsageDetail_20' ) start [2025-02-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529931', 'tblTempUsageDetail_20' ) end [2025-02-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529931', 'tblTempVendorCDR_20' ) start [2025-02-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529931', 'tblTempVendorCDR_20' ) end [2025-02-22 04:21:17] Production.INFO: ProcessCDR(1,14529931,1,1,2) [2025-02-22 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529931', 'tblTempUsageDetail_20' ) start [2025-02-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529931', 'tblTempUsageDetail_20' ) end [2025-02-22 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:21:21] Production.INFO: ==17154== Releasing lock... [2025-02-22 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:22:06 [end_date_ymd] => 2025-02-22 04:22:06 [RateCDR] => 1 ) [2025-02-22 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:22:06' and `end` < '2025-02-22 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:22:17] Production.INFO: count ==348 [2025-02-22 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:22:06 - End Time 2025-02-22 04:22:06 [2025-02-22 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529936', 'tblTempUsageDetail_20' ) start [2025-02-22 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529936', 'tblTempUsageDetail_20' ) end [2025-02-22 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529936', 'tblTempVendorCDR_20' ) start [2025-02-22 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529936', 'tblTempVendorCDR_20' ) end [2025-02-22 04:22:17] Production.INFO: ProcessCDR(1,14529936,1,1,2) [2025-02-22 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529936', 'tblTempUsageDetail_20' ) start [2025-02-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529936', 'tblTempUsageDetail_20' ) end [2025-02-22 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:22:21] Production.INFO: ==17224== Releasing lock... [2025-02-22 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:23:06 [end_date_ymd] => 2025-02-22 04:23:06 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:23:06' and `end` < '2025-02-22 04: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-02-22 04:23:18] Production.INFO: count ==348 [2025-02-22 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:23:06 - End Time 2025-02-22 04:23:06 [2025-02-22 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529941', 'tblTempUsageDetail_20' ) start [2025-02-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529941', 'tblTempUsageDetail_20' ) end [2025-02-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529941', 'tblTempVendorCDR_20' ) start [2025-02-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529941', 'tblTempVendorCDR_20' ) end [2025-02-22 04:23:18] Production.INFO: ProcessCDR(1,14529941,1,1,2) [2025-02-22 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529941', 'tblTempUsageDetail_20' ) start [2025-02-22 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529941', 'tblTempUsageDetail_20' ) end [2025-02-22 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:23:21] Production.INFO: ==17295== Releasing lock... [2025-02-22 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:24:05 [end_date_ymd] => 2025-02-22 04:24:05 [RateCDR] => 1 ) [2025-02-22 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:24:05' and `end` < '2025-02-22 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:24:17] Production.INFO: count ==348 [2025-02-22 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:24:05 - End Time 2025-02-22 04:24:05 [2025-02-22 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529946', 'tblTempUsageDetail_20' ) start [2025-02-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529946', 'tblTempUsageDetail_20' ) end [2025-02-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529946', 'tblTempVendorCDR_20' ) start [2025-02-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529946', 'tblTempVendorCDR_20' ) end [2025-02-22 04:24:17] Production.INFO: ProcessCDR(1,14529946,1,1,2) [2025-02-22 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529946', 'tblTempUsageDetail_20' ) start [2025-02-22 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529946', 'tblTempUsageDetail_20' ) end [2025-02-22 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:24:20] Production.INFO: ==17365== Releasing lock... [2025-02-22 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:24:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:25:05 [end_date_ymd] => 2025-02-22 04:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:25:05' and `end` < '2025-02-22 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-02-22 04:25:17] Production.INFO: count ==348 [2025-02-22 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:25:05 - End Time 2025-02-22 04:25:05 [2025-02-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529951', 'tblTempUsageDetail_20' ) start [2025-02-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529951', 'tblTempUsageDetail_20' ) end [2025-02-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529951', 'tblTempVendorCDR_20' ) start [2025-02-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529951', 'tblTempVendorCDR_20' ) end [2025-02-22 04:25:17] Production.INFO: ProcessCDR(1,14529951,1,1,2) [2025-02-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529951', 'tblTempUsageDetail_20' ) start [2025-02-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529951', 'tblTempUsageDetail_20' ) end [2025-02-22 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:25:21] Production.INFO: ==17437== Releasing lock... [2025-02-22 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:26:05 [end_date_ymd] => 2025-02-22 04:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:26:05' and `end` < '2025-02-22 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-02-22 04:26:17] Production.INFO: count ==348 [2025-02-22 04:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:26:05 - End Time 2025-02-22 04:26:05 [2025-02-22 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529956', 'tblTempUsageDetail_20' ) start [2025-02-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529956', 'tblTempUsageDetail_20' ) end [2025-02-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529956', 'tblTempVendorCDR_20' ) start [2025-02-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529956', 'tblTempVendorCDR_20' ) end [2025-02-22 04:26:17] Production.INFO: ProcessCDR(1,14529956,1,1,2) [2025-02-22 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529956', 'tblTempUsageDetail_20' ) start [2025-02-22 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529956', 'tblTempUsageDetail_20' ) end [2025-02-22 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:26:20] Production.INFO: ==17510== Releasing lock... [2025-02-22 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:27:06 [end_date_ymd] => 2025-02-22 04:27:06 [RateCDR] => 1 ) [2025-02-22 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:27:06' and `end` < '2025-02-22 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:27:17] Production.INFO: count ==348 [2025-02-22 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:27:06 - End Time 2025-02-22 04:27:06 [2025-02-22 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529961', 'tblTempUsageDetail_20' ) start [2025-02-22 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529961', 'tblTempUsageDetail_20' ) end [2025-02-22 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529961', 'tblTempVendorCDR_20' ) start [2025-02-22 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529961', 'tblTempVendorCDR_20' ) end [2025-02-22 04:27:17] Production.INFO: ProcessCDR(1,14529961,1,1,2) [2025-02-22 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529961', 'tblTempUsageDetail_20' ) start [2025-02-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529961', 'tblTempUsageDetail_20' ) end [2025-02-22 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:27:21] Production.INFO: ==17580== Releasing lock... [2025-02-22 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:28:05 [end_date_ymd] => 2025-02-22 04:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:28:05' and `end` < '2025-02-22 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-02-22 04:28:17] Production.INFO: count ==348 [2025-02-22 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:28:05 - End Time 2025-02-22 04:28:05 [2025-02-22 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529966', 'tblTempUsageDetail_20' ) start [2025-02-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529966', 'tblTempUsageDetail_20' ) end [2025-02-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529966', 'tblTempVendorCDR_20' ) start [2025-02-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529966', 'tblTempVendorCDR_20' ) end [2025-02-22 04:28:17] Production.INFO: ProcessCDR(1,14529966,1,1,2) [2025-02-22 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529966', 'tblTempUsageDetail_20' ) start [2025-02-22 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529966', 'tblTempUsageDetail_20' ) end [2025-02-22 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:28:20] Production.INFO: ==17650== Releasing lock... [2025-02-22 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:29:06 [end_date_ymd] => 2025-02-22 04:29:06 [RateCDR] => 1 ) [2025-02-22 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:29:06' and `end` < '2025-02-22 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:29:18] Production.INFO: count ==344 [2025-02-22 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:29:06 - End Time 2025-02-22 04:29:06 [2025-02-22 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529971', 'tblTempUsageDetail_20' ) start [2025-02-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529971', 'tblTempUsageDetail_20' ) end [2025-02-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529971', 'tblTempVendorCDR_20' ) start [2025-02-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529971', 'tblTempVendorCDR_20' ) end [2025-02-22 04:29:18] Production.INFO: ProcessCDR(1,14529971,1,1,2) [2025-02-22 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529971', 'tblTempUsageDetail_20' ) start [2025-02-22 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529971', 'tblTempUsageDetail_20' ) end [2025-02-22 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:29:21] Production.INFO: ==17766== Releasing lock... [2025-02-22 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:30:06 [end_date_ymd] => 2025-02-22 04:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:30:06' and `end` < '2025-02-22 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-02-22 04:30:17] Production.INFO: count ==352 [2025-02-22 04:30:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:30:06 - End Time 2025-02-22 04:30:06 [2025-02-22 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529977', 'tblTempUsageDetail_20' ) start [2025-02-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529977', 'tblTempUsageDetail_20' ) end [2025-02-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529977', 'tblTempVendorCDR_20' ) start [2025-02-22 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529977', 'tblTempVendorCDR_20' ) end [2025-02-22 04:30:17] Production.INFO: ProcessCDR(1,14529977,1,1,2) [2025-02-22 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529977', 'tblTempUsageDetail_20' ) start [2025-02-22 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529977', 'tblTempUsageDetail_20' ) end [2025-02-22 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:30:21] Production.INFO: ==17841== Releasing lock... [2025-02-22 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:30:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:31:05 [end_date_ymd] => 2025-02-22 04:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:31:05' and `end` < '2025-02-22 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-02-22 04:31:17] Production.INFO: count ==355 [2025-02-22 04:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:31:05 - End Time 2025-02-22 04:31:05 [2025-02-22 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529983', 'tblTempUsageDetail_20' ) start [2025-02-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529983', 'tblTempUsageDetail_20' ) end [2025-02-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529983', 'tblTempVendorCDR_20' ) start [2025-02-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529983', 'tblTempVendorCDR_20' ) end [2025-02-22 04:31:17] Production.INFO: ProcessCDR(1,14529983,1,1,2) [2025-02-22 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529983', 'tblTempUsageDetail_20' ) start [2025-02-22 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529983', 'tblTempUsageDetail_20' ) end [2025-02-22 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:31:20] Production.INFO: ==17916== Releasing lock... [2025-02-22 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:31:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:32:05 [end_date_ymd] => 2025-02-22 04:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:32:05' and `end` < '2025-02-22 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-02-22 04:32:17] Production.INFO: count ==355 [2025-02-22 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:32:05 - End Time 2025-02-22 04:32:05 [2025-02-22 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529988', 'tblTempUsageDetail_20' ) start [2025-02-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529988', 'tblTempUsageDetail_20' ) end [2025-02-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529988', 'tblTempVendorCDR_20' ) start [2025-02-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529988', 'tblTempVendorCDR_20' ) end [2025-02-22 04:32:17] Production.INFO: ProcessCDR(1,14529988,1,1,2) [2025-02-22 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529988', 'tblTempUsageDetail_20' ) start [2025-02-22 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529988', 'tblTempUsageDetail_20' ) end [2025-02-22 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:32:20] Production.INFO: ==18020== Releasing lock... [2025-02-22 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:32:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:33:05 [end_date_ymd] => 2025-02-22 04:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:33:05' and `end` < '2025-02-22 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-02-22 04:33:17] Production.INFO: count ==355 [2025-02-22 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:33:05 - End Time 2025-02-22 04:33:05 [2025-02-22 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529993', 'tblTempUsageDetail_20' ) start [2025-02-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529993', 'tblTempUsageDetail_20' ) end [2025-02-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529993', 'tblTempVendorCDR_20' ) start [2025-02-22 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529993', 'tblTempVendorCDR_20' ) end [2025-02-22 04:33:17] Production.INFO: ProcessCDR(1,14529993,1,1,2) [2025-02-22 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529993', 'tblTempUsageDetail_20' ) start [2025-02-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529993', 'tblTempUsageDetail_20' ) end [2025-02-22 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:33:21] Production.INFO: ==18094== Releasing lock... [2025-02-22 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:34:05 [end_date_ymd] => 2025-02-22 04:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:34:05' and `end` < '2025-02-22 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-02-22 04:34:16] Production.INFO: count ==353 [2025-02-22 04:34:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:34:05 - End Time 2025-02-22 04:34:05 [2025-02-22 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529998', 'tblTempUsageDetail_20' ) start [2025-02-22 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14529998', 'tblTempUsageDetail_20' ) end [2025-02-22 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529998', 'tblTempVendorCDR_20' ) start [2025-02-22 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14529998', 'tblTempVendorCDR_20' ) end [2025-02-22 04:34:17] Production.INFO: ProcessCDR(1,14529998,1,1,2) [2025-02-22 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14529998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14529998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14529998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14529998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529998', 'tblTempUsageDetail_20' ) start [2025-02-22 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14529998', 'tblTempUsageDetail_20' ) end [2025-02-22 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:34:20] Production.INFO: ==18308== Releasing lock... [2025-02-22 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:34:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:35:05 [end_date_ymd] => 2025-02-22 04:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:35:05' and `end` < '2025-02-22 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-02-22 04:35:16] Production.INFO: count ==353 [2025-02-22 04:35:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:35:05 - End Time 2025-02-22 04:35:05 [2025-02-22 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530003', 'tblTempUsageDetail_20' ) start [2025-02-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530003', 'tblTempUsageDetail_20' ) end [2025-02-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530003', 'tblTempVendorCDR_20' ) start [2025-02-22 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530003', 'tblTempVendorCDR_20' ) end [2025-02-22 04:35:17] Production.INFO: ProcessCDR(1,14530003,1,1,2) [2025-02-22 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530003', 'tblTempUsageDetail_20' ) start [2025-02-22 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530003', 'tblTempUsageDetail_20' ) end [2025-02-22 04:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:35:20] Production.INFO: ==18379== Releasing lock... [2025-02-22 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:35:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:36:04 [end_date_ymd] => 2025-02-22 04:36:04 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:36:04' and `end` < '2025-02-22 04: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-02-22 04:36:16] Production.INFO: count ==353 [2025-02-22 04:36:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:36:04 - End Time 2025-02-22 04:36:04 [2025-02-22 04:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530008', 'tblTempUsageDetail_20' ) start [2025-02-22 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530008', 'tblTempUsageDetail_20' ) end [2025-02-22 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530008', 'tblTempVendorCDR_20' ) start [2025-02-22 04:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530008', 'tblTempVendorCDR_20' ) end [2025-02-22 04:36:16] Production.INFO: ProcessCDR(1,14530008,1,1,2) [2025-02-22 04:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530008', 'tblTempUsageDetail_20' ) start [2025-02-22 04:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530008', 'tblTempUsageDetail_20' ) end [2025-02-22 04:36:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:36:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:36:19] Production.INFO: ==18449== Releasing lock... [2025-02-22 04:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:36:19] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:37:05 [end_date_ymd] => 2025-02-22 04:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:37:05' and `end` < '2025-02-22 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-02-22 04:37:17] Production.INFO: count ==353 [2025-02-22 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:37:05 - End Time 2025-02-22 04:37:05 [2025-02-22 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530013', 'tblTempUsageDetail_20' ) start [2025-02-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530013', 'tblTempUsageDetail_20' ) end [2025-02-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530013', 'tblTempVendorCDR_20' ) start [2025-02-22 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530013', 'tblTempVendorCDR_20' ) end [2025-02-22 04:37:17] Production.INFO: ProcessCDR(1,14530013,1,1,2) [2025-02-22 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530013', 'tblTempUsageDetail_20' ) start [2025-02-22 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530013', 'tblTempUsageDetail_20' ) end [2025-02-22 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:37:20] Production.INFO: ==18521== Releasing lock... [2025-02-22 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:37:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:38:06 [end_date_ymd] => 2025-02-22 04:38:06 [RateCDR] => 1 ) [2025-02-22 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:38:06' and `end` < '2025-02-22 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:38:17] Production.INFO: count ==346 [2025-02-22 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:38:06 - End Time 2025-02-22 04:38:06 [2025-02-22 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530018', 'tblTempUsageDetail_20' ) start [2025-02-22 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530018', 'tblTempUsageDetail_20' ) end [2025-02-22 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530018', 'tblTempVendorCDR_20' ) start [2025-02-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530018', 'tblTempVendorCDR_20' ) end [2025-02-22 04:38:18] Production.INFO: ProcessCDR(1,14530018,1,1,2) [2025-02-22 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530018', 'tblTempUsageDetail_20' ) start [2025-02-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530018', 'tblTempUsageDetail_20' ) end [2025-02-22 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:38:21] Production.INFO: ==18592== Releasing lock... [2025-02-22 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:39:05 [end_date_ymd] => 2025-02-22 04:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:39:05' and `end` < '2025-02-22 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-02-22 04:39:17] Production.INFO: count ==335 [2025-02-22 04:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:39:05 - End Time 2025-02-22 04:39:05 [2025-02-22 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530023', 'tblTempUsageDetail_20' ) start [2025-02-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530023', 'tblTempUsageDetail_20' ) end [2025-02-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530023', 'tblTempVendorCDR_20' ) start [2025-02-22 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530023', 'tblTempVendorCDR_20' ) end [2025-02-22 04:39:17] Production.INFO: ProcessCDR(1,14530023,1,1,2) [2025-02-22 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530023', 'tblTempUsageDetail_20' ) start [2025-02-22 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530023', 'tblTempUsageDetail_20' ) end [2025-02-22 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:39:20] Production.INFO: ==18667== Releasing lock... [2025-02-22 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:39:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:40:06 [end_date_ymd] => 2025-02-22 04:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:40:06' and `end` < '2025-02-22 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-02-22 04:40:18] Production.INFO: count ==320 [2025-02-22 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:40:06 - End Time 2025-02-22 04:40:06 [2025-02-22 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530029', 'tblTempUsageDetail_20' ) start [2025-02-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530029', 'tblTempUsageDetail_20' ) end [2025-02-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530029', 'tblTempVendorCDR_20' ) start [2025-02-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530029', 'tblTempVendorCDR_20' ) end [2025-02-22 04:40:18] Production.INFO: ProcessCDR(1,14530029,1,1,2) [2025-02-22 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530029', 'tblTempUsageDetail_20' ) start [2025-02-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530029', 'tblTempUsageDetail_20' ) end [2025-02-22 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:40:21] Production.INFO: ==18742== Releasing lock... [2025-02-22 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:41:05 [end_date_ymd] => 2025-02-22 04:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:41:05' and `end` < '2025-02-22 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-02-22 04:41:17] Production.INFO: count ==309 [2025-02-22 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:41:05 - End Time 2025-02-22 04:41:05 [2025-02-22 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530034', 'tblTempUsageDetail_20' ) start [2025-02-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530034', 'tblTempUsageDetail_20' ) end [2025-02-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530034', 'tblTempVendorCDR_20' ) start [2025-02-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530034', 'tblTempVendorCDR_20' ) end [2025-02-22 04:41:17] Production.INFO: ProcessCDR(1,14530034,1,1,2) [2025-02-22 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530034', 'tblTempUsageDetail_20' ) start [2025-02-22 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530034', 'tblTempUsageDetail_20' ) end [2025-02-22 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:41:20] Production.INFO: ==18819== Releasing lock... [2025-02-22 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:41:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:42:06 [end_date_ymd] => 2025-02-22 04:42:06 [RateCDR] => 1 ) [2025-02-22 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:42:06' and `end` < '2025-02-22 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:42:18] Production.INFO: count ==297 [2025-02-22 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:42:06 - End Time 2025-02-22 04:42:06 [2025-02-22 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530039', 'tblTempUsageDetail_20' ) start [2025-02-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530039', 'tblTempUsageDetail_20' ) end [2025-02-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530039', 'tblTempVendorCDR_20' ) start [2025-02-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530039', 'tblTempVendorCDR_20' ) end [2025-02-22 04:42:18] Production.INFO: ProcessCDR(1,14530039,1,1,2) [2025-02-22 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530039', 'tblTempUsageDetail_20' ) start [2025-02-22 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530039', 'tblTempUsageDetail_20' ) end [2025-02-22 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:42:23] Production.INFO: ==18891== Releasing lock... [2025-02-22 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:42:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:43:06 [end_date_ymd] => 2025-02-22 04:43:06 [RateCDR] => 1 ) [2025-02-22 04:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:43:06' and `end` < '2025-02-22 04:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:43:18] Production.INFO: count ==297 [2025-02-22 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:43:06 - End Time 2025-02-22 04:43:06 [2025-02-22 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530044', 'tblTempUsageDetail_20' ) start [2025-02-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530044', 'tblTempUsageDetail_20' ) end [2025-02-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530044', 'tblTempVendorCDR_20' ) start [2025-02-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530044', 'tblTempVendorCDR_20' ) end [2025-02-22 04:43:18] Production.INFO: ProcessCDR(1,14530044,1,1,2) [2025-02-22 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530044', 'tblTempUsageDetail_20' ) start [2025-02-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530044', 'tblTempUsageDetail_20' ) end [2025-02-22 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:43:21] Production.INFO: ==18960== Releasing lock... [2025-02-22 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:44:06 [end_date_ymd] => 2025-02-22 04:44:06 [RateCDR] => 1 ) [2025-02-22 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:44:06' and `end` < '2025-02-22 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:44:18] Production.INFO: count ==297 [2025-02-22 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:44:06 - End Time 2025-02-22 04:44:06 [2025-02-22 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530049', 'tblTempUsageDetail_20' ) start [2025-02-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530049', 'tblTempUsageDetail_20' ) end [2025-02-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530049', 'tblTempVendorCDR_20' ) start [2025-02-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530049', 'tblTempVendorCDR_20' ) end [2025-02-22 04:44:18] Production.INFO: ProcessCDR(1,14530049,1,1,2) [2025-02-22 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530049', 'tblTempUsageDetail_20' ) start [2025-02-22 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530049', 'tblTempUsageDetail_20' ) end [2025-02-22 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:44:21] Production.INFO: ==19072== Releasing lock... [2025-02-22 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:45:05 [end_date_ymd] => 2025-02-22 04:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:45:05' and `end` < '2025-02-22 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-02-22 04:45:16] Production.INFO: count ==297 [2025-02-22 04:45:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:45:05 - End Time 2025-02-22 04:45:05 [2025-02-22 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530054', 'tblTempUsageDetail_20' ) start [2025-02-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530054', 'tblTempUsageDetail_20' ) end [2025-02-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530054', 'tblTempVendorCDR_20' ) start [2025-02-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530054', 'tblTempVendorCDR_20' ) end [2025-02-22 04:45:17] Production.INFO: ProcessCDR(1,14530054,1,1,2) [2025-02-22 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530054', 'tblTempUsageDetail_20' ) start [2025-02-22 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530054', 'tblTempUsageDetail_20' ) end [2025-02-22 04:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:45:19] Production.INFO: ==19149== Releasing lock... [2025-02-22 04:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:45:19] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:46:05 [end_date_ymd] => 2025-02-22 04:46:05 [RateCDR] => 1 ) [2025-02-22 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:46:05' and `end` < '2025-02-22 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:46:17] Production.INFO: count ==297 [2025-02-22 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:46:05 - End Time 2025-02-22 04:46:05 [2025-02-22 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530059', 'tblTempUsageDetail_20' ) start [2025-02-22 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530059', 'tblTempUsageDetail_20' ) end [2025-02-22 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530059', 'tblTempVendorCDR_20' ) start [2025-02-22 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530059', 'tblTempVendorCDR_20' ) end [2025-02-22 04:46:17] Production.INFO: ProcessCDR(1,14530059,1,1,2) [2025-02-22 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530059', 'tblTempUsageDetail_20' ) start [2025-02-22 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530059', 'tblTempUsageDetail_20' ) end [2025-02-22 04:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:46:20] Production.INFO: ==19226== Releasing lock... [2025-02-22 04:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:47:05 [end_date_ymd] => 2025-02-22 04:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:47:05' and `end` < '2025-02-22 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-02-22 04:47:18] Production.INFO: count ==297 [2025-02-22 04:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:47:05 - End Time 2025-02-22 04:47:05 [2025-02-22 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530064', 'tblTempUsageDetail_20' ) start [2025-02-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530064', 'tblTempUsageDetail_20' ) end [2025-02-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530064', 'tblTempVendorCDR_20' ) start [2025-02-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530064', 'tblTempVendorCDR_20' ) end [2025-02-22 04:47:18] Production.INFO: ProcessCDR(1,14530064,1,1,2) [2025-02-22 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530064', 'tblTempUsageDetail_20' ) start [2025-02-22 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530064', 'tblTempUsageDetail_20' ) end [2025-02-22 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:47:21] Production.INFO: ==19296== Releasing lock... [2025-02-22 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:48:05 [end_date_ymd] => 2025-02-22 04:48:05 [RateCDR] => 1 ) [2025-02-22 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:48:05' and `end` < '2025-02-22 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:48:17] Production.INFO: count ==297 [2025-02-22 04:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:48:05 - End Time 2025-02-22 04:48:05 [2025-02-22 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530069', 'tblTempUsageDetail_20' ) start [2025-02-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530069', 'tblTempUsageDetail_20' ) end [2025-02-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530069', 'tblTempVendorCDR_20' ) start [2025-02-22 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530069', 'tblTempVendorCDR_20' ) end [2025-02-22 04:48:18] Production.INFO: ProcessCDR(1,14530069,1,1,2) [2025-02-22 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530069', 'tblTempUsageDetail_20' ) start [2025-02-22 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530069', 'tblTempUsageDetail_20' ) end [2025-02-22 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:48:21] Production.INFO: ==19369== Releasing lock... [2025-02-22 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:49:05 [end_date_ymd] => 2025-02-22 04:49:05 [RateCDR] => 1 ) [2025-02-22 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:49:05' and `end` < '2025-02-22 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:49:17] Production.INFO: count ==297 [2025-02-22 04:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:49:05 - End Time 2025-02-22 04:49:05 [2025-02-22 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530074', 'tblTempUsageDetail_20' ) start [2025-02-22 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530074', 'tblTempUsageDetail_20' ) end [2025-02-22 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530074', 'tblTempVendorCDR_20' ) start [2025-02-22 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530074', 'tblTempVendorCDR_20' ) end [2025-02-22 04:49:17] Production.INFO: ProcessCDR(1,14530074,1,1,2) [2025-02-22 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530074', 'tblTempUsageDetail_20' ) start [2025-02-22 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530074', 'tblTempUsageDetail_20' ) end [2025-02-22 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:49:20] Production.INFO: ==19439== Releasing lock... [2025-02-22 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:50:06 [end_date_ymd] => 2025-02-22 04:50:06 [RateCDR] => 1 ) [2025-02-22 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:50:06' and `end` < '2025-02-22 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:50:18] Production.INFO: count ==287 [2025-02-22 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:50:06 - End Time 2025-02-22 04:50:06 [2025-02-22 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530080', 'tblTempUsageDetail_20' ) start [2025-02-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530080', 'tblTempUsageDetail_20' ) end [2025-02-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530080', 'tblTempVendorCDR_20' ) start [2025-02-22 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530080', 'tblTempVendorCDR_20' ) end [2025-02-22 04:50:18] Production.INFO: ProcessCDR(1,14530080,1,1,2) [2025-02-22 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530080', 'tblTempUsageDetail_20' ) start [2025-02-22 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530080', 'tblTempUsageDetail_20' ) end [2025-02-22 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:50:21] Production.INFO: ==19513== Releasing lock... [2025-02-22 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:51:05 [end_date_ymd] => 2025-02-22 04:51:05 [RateCDR] => 1 ) [2025-02-22 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:51:05' and `end` < '2025-02-22 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:51:18] Production.INFO: count ==277 [2025-02-22 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:51:05 - End Time 2025-02-22 04:51:05 [2025-02-22 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530085', 'tblTempUsageDetail_20' ) start [2025-02-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530085', 'tblTempUsageDetail_20' ) end [2025-02-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530085', 'tblTempVendorCDR_20' ) start [2025-02-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530085', 'tblTempVendorCDR_20' ) end [2025-02-22 04:51:18] Production.INFO: ProcessCDR(1,14530085,1,1,2) [2025-02-22 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530085', 'tblTempUsageDetail_20' ) start [2025-02-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530085', 'tblTempUsageDetail_20' ) end [2025-02-22 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:51:21] Production.INFO: ==19586== Releasing lock... [2025-02-22 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:52:05 [end_date_ymd] => 2025-02-22 04:52:05 [RateCDR] => 1 ) [2025-02-22 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:52:05' and `end` < '2025-02-22 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:52:17] Production.INFO: count ==274 [2025-02-22 04:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:52:05 - End Time 2025-02-22 04:52:05 [2025-02-22 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530090', 'tblTempUsageDetail_20' ) start [2025-02-22 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530090', 'tblTempUsageDetail_20' ) end [2025-02-22 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530090', 'tblTempVendorCDR_20' ) start [2025-02-22 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530090', 'tblTempVendorCDR_20' ) end [2025-02-22 04:52:17] Production.INFO: ProcessCDR(1,14530090,1,1,2) [2025-02-22 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530090', 'tblTempUsageDetail_20' ) start [2025-02-22 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530090', 'tblTempUsageDetail_20' ) end [2025-02-22 04:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:52:21] Production.INFO: ==19656== Releasing lock... [2025-02-22 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:52:21] Production.INFO: 30 MB #Memory Used# [2025-02-22 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:53:05 [end_date_ymd] => 2025-02-22 04:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:53:05' and `end` < '2025-02-22 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-02-22 04:53:17] Production.INFO: count ==273 [2025-02-22 04:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:53:05 - End Time 2025-02-22 04:53:05 [2025-02-22 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530095', 'tblTempUsageDetail_20' ) start [2025-02-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530095', 'tblTempUsageDetail_20' ) end [2025-02-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530095', 'tblTempVendorCDR_20' ) start [2025-02-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530095', 'tblTempVendorCDR_20' ) end [2025-02-22 04:53:17] Production.INFO: ProcessCDR(1,14530095,1,1,2) [2025-02-22 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530095', 'tblTempUsageDetail_20' ) start [2025-02-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530095', 'tblTempUsageDetail_20' ) end [2025-02-22 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:53:21] Production.INFO: ==19732== Releasing lock... [2025-02-22 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:53:21] Production.INFO: 30 MB #Memory Used# [2025-02-22 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:54:05 [end_date_ymd] => 2025-02-22 04:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:54:05' and `end` < '2025-02-22 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-02-22 04:54:17] Production.INFO: count ==272 [2025-02-22 04:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:54:05 - End Time 2025-02-22 04:54:05 [2025-02-22 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530100', 'tblTempUsageDetail_20' ) start [2025-02-22 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530100', 'tblTempUsageDetail_20' ) end [2025-02-22 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530100', 'tblTempVendorCDR_20' ) start [2025-02-22 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530100', 'tblTempVendorCDR_20' ) end [2025-02-22 04:54:17] Production.INFO: ProcessCDR(1,14530100,1,1,2) [2025-02-22 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530100', 'tblTempUsageDetail_20' ) start [2025-02-22 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530100', 'tblTempUsageDetail_20' ) end [2025-02-22 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:54:20] Production.INFO: ==19801== Releasing lock... [2025-02-22 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:55:04 [end_date_ymd] => 2025-02-22 04:55:04 [RateCDR] => 1 ) [2025-02-22 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 01:55:04' and `end` < '2025-02-22 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 04:55:16] Production.INFO: count ==272 [2025-02-22 04:55:16] Production.ERROR: pbx CDR StartTime 2025-02-22 01:55:04 - End Time 2025-02-22 04:55:04 [2025-02-22 04:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530104', 'tblTempUsageDetail_20' ) start [2025-02-22 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530104', 'tblTempUsageDetail_20' ) end [2025-02-22 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530104', 'tblTempVendorCDR_20' ) start [2025-02-22 04:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530104', 'tblTempVendorCDR_20' ) end [2025-02-22 04:55:16] Production.INFO: ProcessCDR(1,14530104,1,1,2) [2025-02-22 04:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530104', 'tblTempUsageDetail_20' ) start [2025-02-22 04:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530104', 'tblTempUsageDetail_20' ) end [2025-02-22 04:55:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:55:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:55:19] Production.INFO: ==19873== Releasing lock... [2025-02-22 04:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:55:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:56:05 [end_date_ymd] => 2025-02-22 04:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:56:05' and `end` < '2025-02-22 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-02-22 04:56:17] Production.INFO: count ==272 [2025-02-22 04:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:56:05 - End Time 2025-02-22 04:56:05 [2025-02-22 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530110', 'tblTempUsageDetail_20' ) start [2025-02-22 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530110', 'tblTempUsageDetail_20' ) end [2025-02-22 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530110', 'tblTempVendorCDR_20' ) start [2025-02-22 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530110', 'tblTempVendorCDR_20' ) end [2025-02-22 04:56:17] Production.INFO: ProcessCDR(1,14530110,1,1,2) [2025-02-22 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530110', 'tblTempUsageDetail_20' ) start [2025-02-22 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530110', 'tblTempUsageDetail_20' ) end [2025-02-22 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:56:20] Production.INFO: ==19947== Releasing lock... [2025-02-22 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:56:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:57:04 [end_date_ymd] => 2025-02-22 04:57:04 [RateCDR] => 1 ) [2025-02-22 04: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-02-22 01:57:04' and `end` < '2025-02-22 04: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-02-22 04:57:17] Production.INFO: count ==272 [2025-02-22 04:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 01:57:04 - End Time 2025-02-22 04:57:04 [2025-02-22 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530115', 'tblTempUsageDetail_20' ) start [2025-02-22 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530115', 'tblTempUsageDetail_20' ) end [2025-02-22 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530115', 'tblTempVendorCDR_20' ) start [2025-02-22 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530115', 'tblTempVendorCDR_20' ) end [2025-02-22 04:57:17] Production.INFO: ProcessCDR(1,14530115,1,1,2) [2025-02-22 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530115', 'tblTempUsageDetail_20' ) start [2025-02-22 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530115', 'tblTempUsageDetail_20' ) end [2025-02-22 04:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:57:20] Production.INFO: ==20017== Releasing lock... [2025-02-22 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:58:05 [end_date_ymd] => 2025-02-22 04:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:58:05' and `end` < '2025-02-22 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-02-22 04:58:18] Production.INFO: count ==273 [2025-02-22 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:58:05 - End Time 2025-02-22 04:58:05 [2025-02-22 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530120', 'tblTempUsageDetail_20' ) start [2025-02-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530120', 'tblTempUsageDetail_20' ) end [2025-02-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530120', 'tblTempVendorCDR_20' ) start [2025-02-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530120', 'tblTempVendorCDR_20' ) end [2025-02-22 04:58:18] Production.INFO: ProcessCDR(1,14530120,1,1,2) [2025-02-22 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530120', 'tblTempUsageDetail_20' ) start [2025-02-22 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530120', 'tblTempUsageDetail_20' ) end [2025-02-22 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:58:23] Production.INFO: ==20089== Releasing lock... [2025-02-22 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:58:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 01:59:05 [end_date_ymd] => 2025-02-22 04:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 01:59:05' and `end` < '2025-02-22 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-02-22 04:59:18] Production.INFO: count ==273 [2025-02-22 04:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 01:59:05 - End Time 2025-02-22 04:59:05 [2025-02-22 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530125', 'tblTempUsageDetail_20' ) start [2025-02-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530125', 'tblTempUsageDetail_20' ) end [2025-02-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530125', 'tblTempVendorCDR_20' ) start [2025-02-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530125', 'tblTempVendorCDR_20' ) end [2025-02-22 04:59:18] Production.INFO: ProcessCDR(1,14530125,1,1,2) [2025-02-22 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530125', 'tblTempUsageDetail_20' ) start [2025-02-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530125', 'tblTempUsageDetail_20' ) end [2025-02-22 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 04:59:21] Production.INFO: ==20164== Releasing lock... [2025-02-22 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 04:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:00:06 [end_date_ymd] => 2025-02-22 05:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:00:06' and `end` < '2025-02-22 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-02-22 05:00:18] Production.INFO: count ==260 [2025-02-22 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:00:06 - End Time 2025-02-22 05:00:06 [2025-02-22 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530131', 'tblTempUsageDetail_20' ) start [2025-02-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530131', 'tblTempUsageDetail_20' ) end [2025-02-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530131', 'tblTempVendorCDR_20' ) start [2025-02-22 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530131', 'tblTempVendorCDR_20' ) end [2025-02-22 05:00:18] Production.INFO: ProcessCDR(1,14530131,1,1,2) [2025-02-22 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530131', 'tblTempUsageDetail_20' ) start [2025-02-22 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530131', 'tblTempUsageDetail_20' ) end [2025-02-22 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:00:21] Production.INFO: ==20282== Releasing lock... [2025-02-22 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:01:05 [end_date_ymd] => 2025-02-22 05:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:01:05' and `end` < '2025-02-22 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-02-22 05:01:19] Production.INFO: count ==240 [2025-02-22 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-22 02:01:05 - End Time 2025-02-22 05:01:05 [2025-02-22 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530136', 'tblTempUsageDetail_20' ) start [2025-02-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530136', 'tblTempUsageDetail_20' ) end [2025-02-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530136', 'tblTempVendorCDR_20' ) start [2025-02-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530136', 'tblTempVendorCDR_20' ) end [2025-02-22 05:01:19] Production.INFO: ProcessCDR(1,14530136,1,1,2) [2025-02-22 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530136', 'tblTempUsageDetail_20' ) start [2025-02-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530136', 'tblTempUsageDetail_20' ) end [2025-02-22 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:01:22] Production.INFO: ==20368== Releasing lock... [2025-02-22 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:01:22] Production.INFO: 30 MB #Memory Used# [2025-02-22 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:02:05 [end_date_ymd] => 2025-02-22 05:02:05 [RateCDR] => 1 ) [2025-02-22 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:02:05' and `end` < '2025-02-22 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:02:17] Production.INFO: count ==239 [2025-02-22 05:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:02:05 - End Time 2025-02-22 05:02:05 [2025-02-22 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530141', 'tblTempUsageDetail_20' ) start [2025-02-22 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530141', 'tblTempUsageDetail_20' ) end [2025-02-22 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530141', 'tblTempVendorCDR_20' ) start [2025-02-22 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530141', 'tblTempVendorCDR_20' ) end [2025-02-22 05:02:17] Production.INFO: ProcessCDR(1,14530141,1,1,2) [2025-02-22 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530141', 'tblTempUsageDetail_20' ) start [2025-02-22 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530141', 'tblTempUsageDetail_20' ) end [2025-02-22 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:02:21] Production.INFO: ==20438== Releasing lock... [2025-02-22 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:03:06 [end_date_ymd] => 2025-02-22 05:03:06 [RateCDR] => 1 ) [2025-02-22 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:03:06' and `end` < '2025-02-22 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:03:18] Production.INFO: count ==239 [2025-02-22 05:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:03:06 - End Time 2025-02-22 05:03:06 [2025-02-22 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530146', 'tblTempUsageDetail_20' ) start [2025-02-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530146', 'tblTempUsageDetail_20' ) end [2025-02-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530146', 'tblTempVendorCDR_20' ) start [2025-02-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530146', 'tblTempVendorCDR_20' ) end [2025-02-22 05:03:18] Production.INFO: ProcessCDR(1,14530146,1,1,2) [2025-02-22 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530146', 'tblTempUsageDetail_20' ) start [2025-02-22 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530146', 'tblTempUsageDetail_20' ) end [2025-02-22 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:03:22] Production.INFO: ==20509== Releasing lock... [2025-02-22 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:04:06 [end_date_ymd] => 2025-02-22 05:04:06 [RateCDR] => 1 ) [2025-02-22 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:04:06' and `end` < '2025-02-22 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:04:18] Production.INFO: count ==238 [2025-02-22 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:04:06 - End Time 2025-02-22 05:04:06 [2025-02-22 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530151', 'tblTempUsageDetail_20' ) start [2025-02-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530151', 'tblTempUsageDetail_20' ) end [2025-02-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530151', 'tblTempVendorCDR_20' ) start [2025-02-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530151', 'tblTempVendorCDR_20' ) end [2025-02-22 05:04:18] Production.INFO: ProcessCDR(1,14530151,1,1,2) [2025-02-22 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530151', 'tblTempUsageDetail_20' ) start [2025-02-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530151', 'tblTempUsageDetail_20' ) end [2025-02-22 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:04:21] Production.INFO: ==20582== Releasing lock... [2025-02-22 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:05:05 [end_date_ymd] => 2025-02-22 05:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:05:05' and `end` < '2025-02-22 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-02-22 05:05:17] Production.INFO: count ==238 [2025-02-22 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:05:05 - End Time 2025-02-22 05:05:05 [2025-02-22 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530156', 'tblTempUsageDetail_20' ) start [2025-02-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530156', 'tblTempUsageDetail_20' ) end [2025-02-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530156', 'tblTempVendorCDR_20' ) start [2025-02-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530156', 'tblTempVendorCDR_20' ) end [2025-02-22 05:05:17] Production.INFO: ProcessCDR(1,14530156,1,1,2) [2025-02-22 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530156', 'tblTempUsageDetail_20' ) start [2025-02-22 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530156', 'tblTempUsageDetail_20' ) end [2025-02-22 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:05:20] Production.INFO: ==20652== Releasing lock... [2025-02-22 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:06:05 [end_date_ymd] => 2025-02-22 05:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:06:05' and `end` < '2025-02-22 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-02-22 05:06:18] Production.INFO: count ==238 [2025-02-22 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:06:05 - End Time 2025-02-22 05:06:05 [2025-02-22 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530161', 'tblTempUsageDetail_20' ) start [2025-02-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530161', 'tblTempUsageDetail_20' ) end [2025-02-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530161', 'tblTempVendorCDR_20' ) start [2025-02-22 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530161', 'tblTempVendorCDR_20' ) end [2025-02-22 05:06:18] Production.INFO: ProcessCDR(1,14530161,1,1,2) [2025-02-22 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530161', 'tblTempUsageDetail_20' ) start [2025-02-22 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530161', 'tblTempUsageDetail_20' ) end [2025-02-22 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:06:22] Production.INFO: ==20721== Releasing lock... [2025-02-22 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:07:05 [end_date_ymd] => 2025-02-22 05:07:05 [RateCDR] => 1 ) [2025-02-22 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:07:05' and `end` < '2025-02-22 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:07:17] Production.INFO: count ==238 [2025-02-22 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:07:05 - End Time 2025-02-22 05:07:05 [2025-02-22 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530166', 'tblTempUsageDetail_20' ) start [2025-02-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530166', 'tblTempUsageDetail_20' ) end [2025-02-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530166', 'tblTempVendorCDR_20' ) start [2025-02-22 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530166', 'tblTempVendorCDR_20' ) end [2025-02-22 05:07:17] Production.INFO: ProcessCDR(1,14530166,1,1,2) [2025-02-22 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530166', 'tblTempUsageDetail_20' ) start [2025-02-22 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530166', 'tblTempUsageDetail_20' ) end [2025-02-22 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:07:20] Production.INFO: ==20796== Releasing lock... [2025-02-22 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:07:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:08:05 [end_date_ymd] => 2025-02-22 05:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:08:05' and `end` < '2025-02-22 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-02-22 05:08:16] Production.INFO: count ==238 [2025-02-22 05:08:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:08:05 - End Time 2025-02-22 05:08:05 [2025-02-22 05:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530171', 'tblTempUsageDetail_20' ) start [2025-02-22 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530171', 'tblTempUsageDetail_20' ) end [2025-02-22 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530171', 'tblTempVendorCDR_20' ) start [2025-02-22 05:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530171', 'tblTempVendorCDR_20' ) end [2025-02-22 05:08:16] Production.INFO: ProcessCDR(1,14530171,1,1,2) [2025-02-22 05:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530171', 'tblTempUsageDetail_20' ) start [2025-02-22 05:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530171', 'tblTempUsageDetail_20' ) end [2025-02-22 05:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:08:19] Production.INFO: ==20870== Releasing lock... [2025-02-22 05:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:08:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:09:05 [end_date_ymd] => 2025-02-22 05:09:05 [RateCDR] => 1 ) [2025-02-22 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:09:05' and `end` < '2025-02-22 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:09:17] Production.INFO: count ==231 [2025-02-22 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:09:05 - End Time 2025-02-22 05:09:05 [2025-02-22 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530176', 'tblTempUsageDetail_20' ) start [2025-02-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530176', 'tblTempUsageDetail_20' ) end [2025-02-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530176', 'tblTempVendorCDR_20' ) start [2025-02-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530176', 'tblTempVendorCDR_20' ) end [2025-02-22 05:09:17] Production.INFO: ProcessCDR(1,14530176,1,1,2) [2025-02-22 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530176', 'tblTempUsageDetail_20' ) start [2025-02-22 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530176', 'tblTempUsageDetail_20' ) end [2025-02-22 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:09:20] Production.INFO: ==20940== Releasing lock... [2025-02-22 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:10:06 [end_date_ymd] => 2025-02-22 05:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:10:06' and `end` < '2025-02-22 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-02-22 05:10:17] Production.INFO: count ==214 [2025-02-22 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:10:06 - End Time 2025-02-22 05:10:06 [2025-02-22 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530182', 'tblTempUsageDetail_20' ) start [2025-02-22 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530182', 'tblTempUsageDetail_20' ) end [2025-02-22 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530182', 'tblTempVendorCDR_20' ) start [2025-02-22 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530182', 'tblTempVendorCDR_20' ) end [2025-02-22 05:10:18] Production.INFO: ProcessCDR(1,14530182,1,1,2) [2025-02-22 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530182', 'tblTempUsageDetail_20' ) start [2025-02-22 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530182', 'tblTempUsageDetail_20' ) end [2025-02-22 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:10:21] Production.INFO: ==21012== Releasing lock... [2025-02-22 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:10:21] Production.INFO: 30 MB #Memory Used# [2025-02-22 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:11:05 [end_date_ymd] => 2025-02-22 05:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:11:05' and `end` < '2025-02-22 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-02-22 05:11:16] Production.INFO: count ==178 [2025-02-22 05:11:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:11:05 - End Time 2025-02-22 05:11:05 [2025-02-22 05:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530187', 'tblTempUsageDetail_20' ) start [2025-02-22 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530187', 'tblTempUsageDetail_20' ) end [2025-02-22 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530187', 'tblTempVendorCDR_20' ) start [2025-02-22 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530187', 'tblTempVendorCDR_20' ) end [2025-02-22 05:11:16] Production.INFO: ProcessCDR(1,14530187,1,1,2) [2025-02-22 05:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530187', 'tblTempUsageDetail_20' ) start [2025-02-22 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530187', 'tblTempUsageDetail_20' ) end [2025-02-22 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:11:20] Production.INFO: ==21090== Releasing lock... [2025-02-22 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:12:04 [end_date_ymd] => 2025-02-22 05:12:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:12:04' and `end` < '2025-02-22 05: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-02-22 05:12:16] Production.INFO: count ==172 [2025-02-22 05:12:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:12:04 - End Time 2025-02-22 05:12:04 [2025-02-22 05:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530192', 'tblTempUsageDetail_20' ) start [2025-02-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530192', 'tblTempUsageDetail_20' ) end [2025-02-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530192', 'tblTempVendorCDR_20' ) start [2025-02-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530192', 'tblTempVendorCDR_20' ) end [2025-02-22 05:12:16] Production.INFO: ProcessCDR(1,14530192,1,1,2) [2025-02-22 05:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530192', 'tblTempUsageDetail_20' ) start [2025-02-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530192', 'tblTempUsageDetail_20' ) end [2025-02-22 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:12:21] Production.INFO: ==21160== Releasing lock... [2025-02-22 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:13:05 [end_date_ymd] => 2025-02-22 05:13:05 [RateCDR] => 1 ) [2025-02-22 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:13:05' and `end` < '2025-02-22 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:13:17] Production.INFO: count ==161 [2025-02-22 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:13:05 - End Time 2025-02-22 05:13:05 [2025-02-22 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530197', 'tblTempUsageDetail_20' ) start [2025-02-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530197', 'tblTempUsageDetail_20' ) end [2025-02-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530197', 'tblTempVendorCDR_20' ) start [2025-02-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530197', 'tblTempVendorCDR_20' ) end [2025-02-22 05:13:17] Production.INFO: ProcessCDR(1,14530197,1,1,2) [2025-02-22 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530197', 'tblTempUsageDetail_20' ) start [2025-02-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530197', 'tblTempUsageDetail_20' ) end [2025-02-22 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:13:20] Production.INFO: ==21233== Releasing lock... [2025-02-22 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:14:06 [end_date_ymd] => 2025-02-22 05:14:06 [RateCDR] => 1 ) [2025-02-22 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:14:06' and `end` < '2025-02-22 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:14:17] Production.INFO: count ==153 [2025-02-22 05:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:14:06 - End Time 2025-02-22 05:14:06 [2025-02-22 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530202', 'tblTempUsageDetail_20' ) start [2025-02-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530202', 'tblTempUsageDetail_20' ) end [2025-02-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530202', 'tblTempVendorCDR_20' ) start [2025-02-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530202', 'tblTempVendorCDR_20' ) end [2025-02-22 05:14:17] Production.INFO: ProcessCDR(1,14530202,1,1,2) [2025-02-22 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530202', 'tblTempUsageDetail_20' ) start [2025-02-22 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530202', 'tblTempUsageDetail_20' ) end [2025-02-22 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:14:21] Production.INFO: ==21307== Releasing lock... [2025-02-22 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:15:05 [end_date_ymd] => 2025-02-22 05:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:15:05' and `end` < '2025-02-22 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-02-22 05:15:17] Production.INFO: count ==148 [2025-02-22 05:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:15:05 - End Time 2025-02-22 05:15:05 [2025-02-22 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530207', 'tblTempUsageDetail_20' ) start [2025-02-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530207', 'tblTempUsageDetail_20' ) end [2025-02-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530207', 'tblTempVendorCDR_20' ) start [2025-02-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530207', 'tblTempVendorCDR_20' ) end [2025-02-22 05:15:17] Production.INFO: ProcessCDR(1,14530207,1,1,2) [2025-02-22 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530207', 'tblTempUsageDetail_20' ) start [2025-02-22 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530207', 'tblTempUsageDetail_20' ) end [2025-02-22 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:15:20] Production.INFO: ==21416== Releasing lock... [2025-02-22 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:16:05 [end_date_ymd] => 2025-02-22 05:16:05 [RateCDR] => 1 ) [2025-02-22 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:16:05' and `end` < '2025-02-22 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:16:17] Production.INFO: count ==148 [2025-02-22 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:16:05 - End Time 2025-02-22 05:16:05 [2025-02-22 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530212', 'tblTempUsageDetail_20' ) start [2025-02-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530212', 'tblTempUsageDetail_20' ) end [2025-02-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530212', 'tblTempVendorCDR_20' ) start [2025-02-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530212', 'tblTempVendorCDR_20' ) end [2025-02-22 05:16:17] Production.INFO: ProcessCDR(1,14530212,1,1,2) [2025-02-22 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530212', 'tblTempUsageDetail_20' ) start [2025-02-22 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530212', 'tblTempUsageDetail_20' ) end [2025-02-22 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:16:20] Production.INFO: ==21489== Releasing lock... [2025-02-22 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:17:05 [end_date_ymd] => 2025-02-22 05:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:17:05' and `end` < '2025-02-22 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-02-22 05:17:17] Production.INFO: count ==145 [2025-02-22 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:17:05 - End Time 2025-02-22 05:17:05 [2025-02-22 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530217', 'tblTempUsageDetail_20' ) start [2025-02-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530217', 'tblTempUsageDetail_20' ) end [2025-02-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530217', 'tblTempVendorCDR_20' ) start [2025-02-22 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530217', 'tblTempVendorCDR_20' ) end [2025-02-22 05:17:17] Production.INFO: ProcessCDR(1,14530217,1,1,2) [2025-02-22 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530217', 'tblTempUsageDetail_20' ) start [2025-02-22 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530217', 'tblTempUsageDetail_20' ) end [2025-02-22 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:17:20] Production.INFO: ==21559== Releasing lock... [2025-02-22 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:17:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:18:05 [end_date_ymd] => 2025-02-22 05:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:18:05' and `end` < '2025-02-22 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-02-22 05:18:17] Production.INFO: count ==144 [2025-02-22 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:18:05 - End Time 2025-02-22 05:18:05 [2025-02-22 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530222', 'tblTempUsageDetail_20' ) start [2025-02-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530222', 'tblTempUsageDetail_20' ) end [2025-02-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530222', 'tblTempVendorCDR_20' ) start [2025-02-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530222', 'tblTempVendorCDR_20' ) end [2025-02-22 05:18:17] Production.INFO: ProcessCDR(1,14530222,1,1,2) [2025-02-22 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530222', 'tblTempUsageDetail_20' ) start [2025-02-22 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530222', 'tblTempUsageDetail_20' ) end [2025-02-22 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:18:20] Production.INFO: ==21634== Releasing lock... [2025-02-22 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:18:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:19:05 [end_date_ymd] => 2025-02-22 05:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:19:05' and `end` < '2025-02-22 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-02-22 05:19:17] Production.INFO: count ==144 [2025-02-22 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:19:05 - End Time 2025-02-22 05:19:05 [2025-02-22 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530227', 'tblTempUsageDetail_20' ) start [2025-02-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530227', 'tblTempUsageDetail_20' ) end [2025-02-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530227', 'tblTempVendorCDR_20' ) start [2025-02-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530227', 'tblTempVendorCDR_20' ) end [2025-02-22 05:19:17] Production.INFO: ProcessCDR(1,14530227,1,1,2) [2025-02-22 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530227', 'tblTempUsageDetail_20' ) start [2025-02-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530227', 'tblTempUsageDetail_20' ) end [2025-02-22 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:19:20] Production.INFO: ==21705== Releasing lock... [2025-02-22 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:19:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:20:06 [end_date_ymd] => 2025-02-22 05:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:20:06' and `end` < '2025-02-22 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-02-22 05:20:18] Production.INFO: count ==136 [2025-02-22 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:20:06 - End Time 2025-02-22 05:20:06 [2025-02-22 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530233', 'tblTempUsageDetail_20' ) start [2025-02-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530233', 'tblTempUsageDetail_20' ) end [2025-02-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530233', 'tblTempVendorCDR_20' ) start [2025-02-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530233', 'tblTempVendorCDR_20' ) end [2025-02-22 05:20:18] Production.INFO: ProcessCDR(1,14530233,1,1,2) [2025-02-22 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530233', 'tblTempUsageDetail_20' ) start [2025-02-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530233', 'tblTempUsageDetail_20' ) end [2025-02-22 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:20:21] Production.INFO: ==21779== Releasing lock... [2025-02-22 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:20:21] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:21:05 [end_date_ymd] => 2025-02-22 05:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:21:05' and `end` < '2025-02-22 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-02-22 05:21:17] Production.INFO: count ==136 [2025-02-22 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:21:05 - End Time 2025-02-22 05:21:05 [2025-02-22 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530238', 'tblTempUsageDetail_20' ) start [2025-02-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530238', 'tblTempUsageDetail_20' ) end [2025-02-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530238', 'tblTempVendorCDR_20' ) start [2025-02-22 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530238', 'tblTempVendorCDR_20' ) end [2025-02-22 05:21:17] Production.INFO: ProcessCDR(1,14530238,1,1,2) [2025-02-22 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530238', 'tblTempUsageDetail_20' ) start [2025-02-22 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530238', 'tblTempUsageDetail_20' ) end [2025-02-22 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:21:20] Production.INFO: ==21853== Releasing lock... [2025-02-22 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:21:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:22:05 [end_date_ymd] => 2025-02-22 05:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:22:05' and `end` < '2025-02-22 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-02-22 05:22:17] Production.INFO: count ==136 [2025-02-22 05:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:22:05 - End Time 2025-02-22 05:22:05 [2025-02-22 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530243', 'tblTempUsageDetail_20' ) start [2025-02-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530243', 'tblTempUsageDetail_20' ) end [2025-02-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530243', 'tblTempVendorCDR_20' ) start [2025-02-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530243', 'tblTempVendorCDR_20' ) end [2025-02-22 05:22:17] Production.INFO: ProcessCDR(1,14530243,1,1,2) [2025-02-22 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530243', 'tblTempUsageDetail_20' ) start [2025-02-22 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530243', 'tblTempUsageDetail_20' ) end [2025-02-22 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:22:20] Production.INFO: ==21925== Releasing lock... [2025-02-22 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:22:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:23:04 [end_date_ymd] => 2025-02-22 05:23:04 [RateCDR] => 1 ) [2025-02-22 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:23:04' and `end` < '2025-02-22 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:23:16] Production.INFO: count ==136 [2025-02-22 05:23:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:23:04 - End Time 2025-02-22 05:23:04 [2025-02-22 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530248', 'tblTempUsageDetail_20' ) start [2025-02-22 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530248', 'tblTempUsageDetail_20' ) end [2025-02-22 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530248', 'tblTempVendorCDR_20' ) start [2025-02-22 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530248', 'tblTempVendorCDR_20' ) end [2025-02-22 05:23:16] Production.INFO: ProcessCDR(1,14530248,1,1,2) [2025-02-22 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530248', 'tblTempUsageDetail_20' ) start [2025-02-22 05:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530248', 'tblTempUsageDetail_20' ) end [2025-02-22 05:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:23:19] Production.INFO: ==21996== Releasing lock... [2025-02-22 05:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:23:19] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:24:05 [end_date_ymd] => 2025-02-22 05:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:24:05' and `end` < '2025-02-22 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-02-22 05:24:17] Production.INFO: count ==126 [2025-02-22 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:24:05 - End Time 2025-02-22 05:24:05 [2025-02-22 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530253', 'tblTempUsageDetail_20' ) start [2025-02-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530253', 'tblTempUsageDetail_20' ) end [2025-02-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530253', 'tblTempVendorCDR_20' ) start [2025-02-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530253', 'tblTempVendorCDR_20' ) end [2025-02-22 05:24:17] Production.INFO: ProcessCDR(1,14530253,1,1,2) [2025-02-22 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530253', 'tblTempUsageDetail_20' ) start [2025-02-22 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530253', 'tblTempUsageDetail_20' ) end [2025-02-22 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:24:20] Production.INFO: ==22069== Releasing lock... [2025-02-22 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:25:05 [end_date_ymd] => 2025-02-22 05:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:25:05' and `end` < '2025-02-22 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-02-22 05:25:16] Production.INFO: count ==122 [2025-02-22 05:25:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:25:05 - End Time 2025-02-22 05:25:05 [2025-02-22 05:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530258', 'tblTempUsageDetail_20' ) start [2025-02-22 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530258', 'tblTempUsageDetail_20' ) end [2025-02-22 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530258', 'tblTempVendorCDR_20' ) start [2025-02-22 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530258', 'tblTempVendorCDR_20' ) end [2025-02-22 05:25:16] Production.INFO: ProcessCDR(1,14530258,1,1,2) [2025-02-22 05:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530258', 'tblTempUsageDetail_20' ) start [2025-02-22 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530258', 'tblTempUsageDetail_20' ) end [2025-02-22 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:25:20] Production.INFO: ==22139== Releasing lock... [2025-02-22 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:25:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:26:05 [end_date_ymd] => 2025-02-22 05:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:26:05' and `end` < '2025-02-22 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-02-22 05:26:17] Production.INFO: count ==117 [2025-02-22 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:26:05 - End Time 2025-02-22 05:26:05 [2025-02-22 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530263', 'tblTempUsageDetail_20' ) start [2025-02-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530263', 'tblTempUsageDetail_20' ) end [2025-02-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530263', 'tblTempVendorCDR_20' ) start [2025-02-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530263', 'tblTempVendorCDR_20' ) end [2025-02-22 05:26:17] Production.INFO: ProcessCDR(1,14530263,1,1,2) [2025-02-22 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530263', 'tblTempUsageDetail_20' ) start [2025-02-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530263', 'tblTempUsageDetail_20' ) end [2025-02-22 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:26:20] Production.INFO: ==22213== Releasing lock... [2025-02-22 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:27:06 [end_date_ymd] => 2025-02-22 05:27:06 [RateCDR] => 1 ) [2025-02-22 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:27:06' and `end` < '2025-02-22 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:27:17] Production.INFO: count ==116 [2025-02-22 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:27:06 - End Time 2025-02-22 05:27:06 [2025-02-22 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530268', 'tblTempUsageDetail_20' ) start [2025-02-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530268', 'tblTempUsageDetail_20' ) end [2025-02-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530268', 'tblTempVendorCDR_20' ) start [2025-02-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530268', 'tblTempVendorCDR_20' ) end [2025-02-22 05:27:17] Production.INFO: ProcessCDR(1,14530268,1,1,2) [2025-02-22 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530268', 'tblTempUsageDetail_20' ) start [2025-02-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530268', 'tblTempUsageDetail_20' ) end [2025-02-22 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:27:21] Production.INFO: ==22290== Releasing lock... [2025-02-22 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:28:05 [end_date_ymd] => 2025-02-22 05:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:28:05' and `end` < '2025-02-22 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-02-22 05:28:17] Production.INFO: count ==116 [2025-02-22 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:28:05 - End Time 2025-02-22 05:28:05 [2025-02-22 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530273', 'tblTempUsageDetail_20' ) start [2025-02-22 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530273', 'tblTempUsageDetail_20' ) end [2025-02-22 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530273', 'tblTempVendorCDR_20' ) start [2025-02-22 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530273', 'tblTempVendorCDR_20' ) end [2025-02-22 05:28:17] Production.INFO: ProcessCDR(1,14530273,1,1,2) [2025-02-22 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530273', 'tblTempUsageDetail_20' ) start [2025-02-22 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530273', 'tblTempUsageDetail_20' ) end [2025-02-22 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:28:20] Production.INFO: ==22378== Releasing lock... [2025-02-22 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:29:05 [end_date_ymd] => 2025-02-22 05:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:29:05' and `end` < '2025-02-22 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-02-22 05:29:17] Production.INFO: count ==116 [2025-02-22 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:29:05 - End Time 2025-02-22 05:29:05 [2025-02-22 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530278', 'tblTempUsageDetail_20' ) start [2025-02-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530278', 'tblTempUsageDetail_20' ) end [2025-02-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530278', 'tblTempVendorCDR_20' ) start [2025-02-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530278', 'tblTempVendorCDR_20' ) end [2025-02-22 05:29:17] Production.INFO: ProcessCDR(1,14530278,1,1,2) [2025-02-22 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530278', 'tblTempUsageDetail_20' ) start [2025-02-22 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530278', 'tblTempUsageDetail_20' ) end [2025-02-22 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:29:20] Production.INFO: ==22466== Releasing lock... [2025-02-22 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:30:06 [end_date_ymd] => 2025-02-22 05:30:06 [RateCDR] => 1 ) [2025-02-22 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:30:06' and `end` < '2025-02-22 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:30:18] Production.INFO: count ==109 [2025-02-22 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:30:06 - End Time 2025-02-22 05:30:06 [2025-02-22 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530284', 'tblTempUsageDetail_20' ) start [2025-02-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530284', 'tblTempUsageDetail_20' ) end [2025-02-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530284', 'tblTempVendorCDR_20' ) start [2025-02-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530284', 'tblTempVendorCDR_20' ) end [2025-02-22 05:30:18] Production.INFO: ProcessCDR(1,14530284,1,1,2) [2025-02-22 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530284', 'tblTempUsageDetail_20' ) start [2025-02-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530284', 'tblTempUsageDetail_20' ) end [2025-02-22 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:30:21] Production.INFO: ==22540== Releasing lock... [2025-02-22 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:31:05 [end_date_ymd] => 2025-02-22 05:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:31:05' and `end` < '2025-02-22 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-02-22 05:31:17] Production.INFO: count ==109 [2025-02-22 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:31:05 - End Time 2025-02-22 05:31:05 [2025-02-22 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530289', 'tblTempUsageDetail_20' ) start [2025-02-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530289', 'tblTempUsageDetail_20' ) end [2025-02-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530289', 'tblTempVendorCDR_20' ) start [2025-02-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530289', 'tblTempVendorCDR_20' ) end [2025-02-22 05:31:17] Production.INFO: ProcessCDR(1,14530289,1,1,2) [2025-02-22 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530289', 'tblTempUsageDetail_20' ) start [2025-02-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530289', 'tblTempUsageDetail_20' ) end [2025-02-22 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:31:20] Production.INFO: ==22653== Releasing lock... [2025-02-22 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:32:04 [end_date_ymd] => 2025-02-22 05:32:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:32:04' and `end` < '2025-02-22 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-02-22 05:32:16] Production.INFO: count ==109 [2025-02-22 05:32:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:32:04 - End Time 2025-02-22 05:32:04 [2025-02-22 05:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530294', 'tblTempUsageDetail_20' ) start [2025-02-22 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530294', 'tblTempUsageDetail_20' ) end [2025-02-22 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530294', 'tblTempVendorCDR_20' ) start [2025-02-22 05:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530294', 'tblTempVendorCDR_20' ) end [2025-02-22 05:32:16] Production.INFO: ProcessCDR(1,14530294,1,1,2) [2025-02-22 05:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530294', 'tblTempUsageDetail_20' ) start [2025-02-22 05:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530294', 'tblTempUsageDetail_20' ) end [2025-02-22 05:32:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:32:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:32:19] Production.INFO: ==22723== Releasing lock... [2025-02-22 05:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:32:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:33:05 [end_date_ymd] => 2025-02-22 05:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:33:05' and `end` < '2025-02-22 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-02-22 05:33:16] Production.INFO: count ==109 [2025-02-22 05:33:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:33:05 - End Time 2025-02-22 05:33:05 [2025-02-22 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530299', 'tblTempUsageDetail_20' ) start [2025-02-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530299', 'tblTempUsageDetail_20' ) end [2025-02-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530299', 'tblTempVendorCDR_20' ) start [2025-02-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530299', 'tblTempVendorCDR_20' ) end [2025-02-22 05:33:17] Production.INFO: ProcessCDR(1,14530299,1,1,2) [2025-02-22 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530299', 'tblTempUsageDetail_20' ) start [2025-02-22 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530299', 'tblTempUsageDetail_20' ) end [2025-02-22 05:33:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:33:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:33:20] Production.INFO: ==22796== Releasing lock... [2025-02-22 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:34:05 [end_date_ymd] => 2025-02-22 05:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:34:05' and `end` < '2025-02-22 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-02-22 05:34:16] Production.INFO: count ==109 [2025-02-22 05:34:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:34:05 - End Time 2025-02-22 05:34:05 [2025-02-22 05:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530304', 'tblTempUsageDetail_20' ) start [2025-02-22 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530304', 'tblTempUsageDetail_20' ) end [2025-02-22 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530304', 'tblTempVendorCDR_20' ) start [2025-02-22 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530304', 'tblTempVendorCDR_20' ) end [2025-02-22 05:34:16] Production.INFO: ProcessCDR(1,14530304,1,1,2) [2025-02-22 05:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530304', 'tblTempUsageDetail_20' ) start [2025-02-22 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530304', 'tblTempUsageDetail_20' ) end [2025-02-22 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:34:20] Production.INFO: ==22868== Releasing lock... [2025-02-22 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:35:05 [end_date_ymd] => 2025-02-22 05:35:05 [RateCDR] => 1 ) [2025-02-22 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:35:05' and `end` < '2025-02-22 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:35:17] Production.INFO: count ==109 [2025-02-22 05:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:35:05 - End Time 2025-02-22 05:35:05 [2025-02-22 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530309', 'tblTempUsageDetail_20' ) start [2025-02-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530309', 'tblTempUsageDetail_20' ) end [2025-02-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530309', 'tblTempVendorCDR_20' ) start [2025-02-22 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530309', 'tblTempVendorCDR_20' ) end [2025-02-22 05:35:17] Production.INFO: ProcessCDR(1,14530309,1,1,2) [2025-02-22 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530309', 'tblTempUsageDetail_20' ) start [2025-02-22 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530309', 'tblTempUsageDetail_20' ) end [2025-02-22 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:35:20] Production.INFO: ==22939== Releasing lock... [2025-02-22 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:36:05 [end_date_ymd] => 2025-02-22 05:36:05 [RateCDR] => 1 ) [2025-02-22 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:36:05' and `end` < '2025-02-22 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:36:17] Production.INFO: count ==109 [2025-02-22 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:36:05 - End Time 2025-02-22 05:36:05 [2025-02-22 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530314', 'tblTempUsageDetail_20' ) start [2025-02-22 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530314', 'tblTempUsageDetail_20' ) end [2025-02-22 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530314', 'tblTempVendorCDR_20' ) start [2025-02-22 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530314', 'tblTempVendorCDR_20' ) end [2025-02-22 05:36:17] Production.INFO: ProcessCDR(1,14530314,1,1,2) [2025-02-22 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530314', 'tblTempUsageDetail_20' ) start [2025-02-22 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530314', 'tblTempUsageDetail_20' ) end [2025-02-22 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:36:20] Production.INFO: ==23012== Releasing lock... [2025-02-22 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:37:05 [end_date_ymd] => 2025-02-22 05:37:05 [RateCDR] => 1 ) [2025-02-22 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:37:05' and `end` < '2025-02-22 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:37:17] Production.INFO: count ==109 [2025-02-22 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:37:05 - End Time 2025-02-22 05:37:05 [2025-02-22 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530319', 'tblTempUsageDetail_20' ) start [2025-02-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530319', 'tblTempUsageDetail_20' ) end [2025-02-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530319', 'tblTempVendorCDR_20' ) start [2025-02-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530319', 'tblTempVendorCDR_20' ) end [2025-02-22 05:37:17] Production.INFO: ProcessCDR(1,14530319,1,1,2) [2025-02-22 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530319', 'tblTempUsageDetail_20' ) start [2025-02-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530319', 'tblTempUsageDetail_20' ) end [2025-02-22 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:37:20] Production.INFO: ==23083== Releasing lock... [2025-02-22 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:38:04 [end_date_ymd] => 2025-02-22 05:38:04 [RateCDR] => 1 ) [2025-02-22 05:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:38:04' and `end` < '2025-02-22 05:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:38:16] Production.INFO: count ==108 [2025-02-22 05:38:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:38:04 - End Time 2025-02-22 05:38:04 [2025-02-22 05:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530324', 'tblTempUsageDetail_20' ) start [2025-02-22 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530324', 'tblTempUsageDetail_20' ) end [2025-02-22 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530324', 'tblTempVendorCDR_20' ) start [2025-02-22 05:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530324', 'tblTempVendorCDR_20' ) end [2025-02-22 05:38:16] Production.INFO: ProcessCDR(1,14530324,1,1,2) [2025-02-22 05:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530324', 'tblTempUsageDetail_20' ) start [2025-02-22 05:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530324', 'tblTempUsageDetail_20' ) end [2025-02-22 05:38:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:38:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:38:19] Production.INFO: ==23160== Releasing lock... [2025-02-22 05:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:38:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:39:05 [end_date_ymd] => 2025-02-22 05:39:05 [RateCDR] => 1 ) [2025-02-22 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:39:05' and `end` < '2025-02-22 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:39:16] Production.INFO: count ==108 [2025-02-22 05:39:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:39:05 - End Time 2025-02-22 05:39:05 [2025-02-22 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530329', 'tblTempUsageDetail_20' ) start [2025-02-22 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530329', 'tblTempUsageDetail_20' ) end [2025-02-22 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530329', 'tblTempVendorCDR_20' ) start [2025-02-22 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530329', 'tblTempVendorCDR_20' ) end [2025-02-22 05:39:16] Production.INFO: ProcessCDR(1,14530329,1,1,2) [2025-02-22 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530329', 'tblTempUsageDetail_20' ) start [2025-02-22 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530329', 'tblTempUsageDetail_20' ) end [2025-02-22 05:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:39:19] Production.INFO: ==23231== Releasing lock... [2025-02-22 05:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:39:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:40:06 [end_date_ymd] => 2025-02-22 05:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:40:06' and `end` < '2025-02-22 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-02-22 05:40:18] Production.INFO: count ==95 [2025-02-22 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:40:06 - End Time 2025-02-22 05:40:06 [2025-02-22 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530335', 'tblTempUsageDetail_20' ) start [2025-02-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530335', 'tblTempUsageDetail_20' ) end [2025-02-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530335', 'tblTempVendorCDR_20' ) start [2025-02-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530335', 'tblTempVendorCDR_20' ) end [2025-02-22 05:40:18] Production.INFO: ProcessCDR(1,14530335,1,1,2) [2025-02-22 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530335', 'tblTempUsageDetail_20' ) start [2025-02-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530335', 'tblTempUsageDetail_20' ) end [2025-02-22 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:40:21] Production.INFO: ==23311== Releasing lock... [2025-02-22 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:41:05 [end_date_ymd] => 2025-02-22 05:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:41:05' and `end` < '2025-02-22 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-02-22 05:41:16] Production.INFO: count ==95 [2025-02-22 05:41:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:41:05 - End Time 2025-02-22 05:41:05 [2025-02-22 05:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530340', 'tblTempUsageDetail_20' ) start [2025-02-22 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530340', 'tblTempUsageDetail_20' ) end [2025-02-22 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530340', 'tblTempVendorCDR_20' ) start [2025-02-22 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530340', 'tblTempVendorCDR_20' ) end [2025-02-22 05:41:16] Production.INFO: ProcessCDR(1,14530340,1,1,2) [2025-02-22 05:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530340', 'tblTempUsageDetail_20' ) start [2025-02-22 05:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530340', 'tblTempUsageDetail_20' ) end [2025-02-22 05:41:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:41:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:41:19] Production.INFO: ==23384== Releasing lock... [2025-02-22 05:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:41:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:42:05 [end_date_ymd] => 2025-02-22 05:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:42:05' and `end` < '2025-02-22 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-02-22 05:42:17] Production.INFO: count ==95 [2025-02-22 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:42:05 - End Time 2025-02-22 05:42:05 [2025-02-22 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530345', 'tblTempUsageDetail_20' ) start [2025-02-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530345', 'tblTempUsageDetail_20' ) end [2025-02-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530345', 'tblTempVendorCDR_20' ) start [2025-02-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530345', 'tblTempVendorCDR_20' ) end [2025-02-22 05:42:17] Production.INFO: ProcessCDR(1,14530345,1,1,2) [2025-02-22 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530345', 'tblTempUsageDetail_20' ) start [2025-02-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530345', 'tblTempUsageDetail_20' ) end [2025-02-22 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:42:20] Production.INFO: ==23459== Releasing lock... [2025-02-22 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:43:05 [end_date_ymd] => 2025-02-22 05:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:43:05' and `end` < '2025-02-22 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-02-22 05:43:17] Production.INFO: count ==93 [2025-02-22 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:43:05 - End Time 2025-02-22 05:43:05 [2025-02-22 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530350', 'tblTempUsageDetail_20' ) start [2025-02-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530350', 'tblTempUsageDetail_20' ) end [2025-02-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530350', 'tblTempVendorCDR_20' ) start [2025-02-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530350', 'tblTempVendorCDR_20' ) end [2025-02-22 05:43:17] Production.INFO: ProcessCDR(1,14530350,1,1,2) [2025-02-22 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530350', 'tblTempUsageDetail_20' ) start [2025-02-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530350', 'tblTempUsageDetail_20' ) end [2025-02-22 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:43:20] Production.INFO: ==23530== Releasing lock... [2025-02-22 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:44:05 [end_date_ymd] => 2025-02-22 05:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:44:05' and `end` < '2025-02-22 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-02-22 05:44:17] Production.INFO: count ==97 [2025-02-22 05:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:44:05 - End Time 2025-02-22 05:44:05 [2025-02-22 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530355', 'tblTempUsageDetail_20' ) start [2025-02-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530355', 'tblTempUsageDetail_20' ) end [2025-02-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530355', 'tblTempVendorCDR_20' ) start [2025-02-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530355', 'tblTempVendorCDR_20' ) end [2025-02-22 05:44:17] Production.INFO: ProcessCDR(1,14530355,1,1,2) [2025-02-22 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530355', 'tblTempUsageDetail_20' ) start [2025-02-22 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530355', 'tblTempUsageDetail_20' ) end [2025-02-22 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:44:20] Production.INFO: ==23600== Releasing lock... [2025-02-22 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:45:05 [end_date_ymd] => 2025-02-22 05:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:45:05' and `end` < '2025-02-22 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-02-22 05:45:16] Production.INFO: count ==96 [2025-02-22 05:45:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:45:05 - End Time 2025-02-22 05:45:05 [2025-02-22 05:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530360', 'tblTempUsageDetail_20' ) start [2025-02-22 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530360', 'tblTempUsageDetail_20' ) end [2025-02-22 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530360', 'tblTempVendorCDR_20' ) start [2025-02-22 05:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530360', 'tblTempVendorCDR_20' ) end [2025-02-22 05:45:16] Production.INFO: ProcessCDR(1,14530360,1,1,2) [2025-02-22 05:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530360', 'tblTempUsageDetail_20' ) start [2025-02-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530360', 'tblTempUsageDetail_20' ) end [2025-02-22 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:45:20] Production.INFO: ==23671== Releasing lock... [2025-02-22 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:46:05 [end_date_ymd] => 2025-02-22 05:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:46:05' and `end` < '2025-02-22 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-02-22 05:46:17] Production.INFO: count ==95 [2025-02-22 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:46:05 - End Time 2025-02-22 05:46:05 [2025-02-22 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530365', 'tblTempUsageDetail_20' ) start [2025-02-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530365', 'tblTempUsageDetail_20' ) end [2025-02-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530365', 'tblTempVendorCDR_20' ) start [2025-02-22 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530365', 'tblTempVendorCDR_20' ) end [2025-02-22 05:46:17] Production.INFO: ProcessCDR(1,14530365,1,1,2) [2025-02-22 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530365', 'tblTempUsageDetail_20' ) start [2025-02-22 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530365', 'tblTempUsageDetail_20' ) end [2025-02-22 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:46:20] Production.INFO: ==23784== Releasing lock... [2025-02-22 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:47:05 [end_date_ymd] => 2025-02-22 05:47:05 [RateCDR] => 1 ) [2025-02-22 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:47:05' and `end` < '2025-02-22 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:47:16] Production.INFO: count ==95 [2025-02-22 05:47:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:47:05 - End Time 2025-02-22 05:47:05 [2025-02-22 05:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530370', 'tblTempUsageDetail_20' ) start [2025-02-22 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530370', 'tblTempUsageDetail_20' ) end [2025-02-22 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530370', 'tblTempVendorCDR_20' ) start [2025-02-22 05:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530370', 'tblTempVendorCDR_20' ) end [2025-02-22 05:47:16] Production.INFO: ProcessCDR(1,14530370,1,1,2) [2025-02-22 05:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530370', 'tblTempUsageDetail_20' ) start [2025-02-22 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530370', 'tblTempUsageDetail_20' ) end [2025-02-22 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:47:20] Production.INFO: ==23857== Releasing lock... [2025-02-22 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:48:05 [end_date_ymd] => 2025-02-22 05:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:48:05' and `end` < '2025-02-22 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-02-22 05:48:17] Production.INFO: count ==95 [2025-02-22 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:48:05 - End Time 2025-02-22 05:48:05 [2025-02-22 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530375', 'tblTempUsageDetail_20' ) start [2025-02-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530375', 'tblTempUsageDetail_20' ) end [2025-02-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530375', 'tblTempVendorCDR_20' ) start [2025-02-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530375', 'tblTempVendorCDR_20' ) end [2025-02-22 05:48:17] Production.INFO: ProcessCDR(1,14530375,1,1,2) [2025-02-22 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530375', 'tblTempUsageDetail_20' ) start [2025-02-22 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530375', 'tblTempUsageDetail_20' ) end [2025-02-22 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:48:20] Production.INFO: ==23929== Releasing lock... [2025-02-22 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:49:06 [end_date_ymd] => 2025-02-22 05:49:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:49:06' and `end` < '2025-02-22 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-02-22 05:49:17] Production.INFO: count ==95 [2025-02-22 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 02:49:06 - End Time 2025-02-22 05:49:06 [2025-02-22 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530380', 'tblTempUsageDetail_20' ) start [2025-02-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530380', 'tblTempUsageDetail_20' ) end [2025-02-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530380', 'tblTempVendorCDR_20' ) start [2025-02-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530380', 'tblTempVendorCDR_20' ) end [2025-02-22 05:49:18] Production.INFO: ProcessCDR(1,14530380,1,1,2) [2025-02-22 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530380', 'tblTempUsageDetail_20' ) start [2025-02-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530380', 'tblTempUsageDetail_20' ) end [2025-02-22 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:49:21] Production.INFO: ==24003== Releasing lock... [2025-02-22 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:50:05 [end_date_ymd] => 2025-02-22 05:50:05 [RateCDR] => 1 ) [2025-02-22 05: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-02-22 02:50:05' and `end` < '2025-02-22 05: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-02-22 05:50:17] Production.INFO: count ==97 [2025-02-22 05:50:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:50:05 - End Time 2025-02-22 05:50:05 [2025-02-22 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530385', 'tblTempUsageDetail_20' ) start [2025-02-22 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530385', 'tblTempUsageDetail_20' ) end [2025-02-22 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530385', 'tblTempVendorCDR_20' ) start [2025-02-22 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530385', 'tblTempVendorCDR_20' ) end [2025-02-22 05:50:17] Production.INFO: ProcessCDR(1,14530385,1,1,2) [2025-02-22 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530385', 'tblTempUsageDetail_20' ) start [2025-02-22 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530385', 'tblTempUsageDetail_20' ) end [2025-02-22 05:50:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:50:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:50:20] Production.INFO: ==24078== Releasing lock... [2025-02-22 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:50:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:51:05 [end_date_ymd] => 2025-02-22 05:51:05 [RateCDR] => 1 ) [2025-02-22 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:51:05' and `end` < '2025-02-22 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:51:17] Production.INFO: count ==97 [2025-02-22 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:51:05 - End Time 2025-02-22 05:51:05 [2025-02-22 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530391', 'tblTempUsageDetail_20' ) start [2025-02-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530391', 'tblTempUsageDetail_20' ) end [2025-02-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530391', 'tblTempVendorCDR_20' ) start [2025-02-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530391', 'tblTempVendorCDR_20' ) end [2025-02-22 05:51:17] Production.INFO: ProcessCDR(1,14530391,1,1,2) [2025-02-22 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530391', 'tblTempUsageDetail_20' ) start [2025-02-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530391', 'tblTempUsageDetail_20' ) end [2025-02-22 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:51:21] Production.INFO: ==24154== Releasing lock... [2025-02-22 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:52:05 [end_date_ymd] => 2025-02-22 05:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:52:05' and `end` < '2025-02-22 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-02-22 05:52:16] Production.INFO: count ==97 [2025-02-22 05:52:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:52:05 - End Time 2025-02-22 05:52:05 [2025-02-22 05:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530396', 'tblTempUsageDetail_20' ) start [2025-02-22 05:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530396', 'tblTempUsageDetail_20' ) end [2025-02-22 05:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530396', 'tblTempVendorCDR_20' ) start [2025-02-22 05:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530396', 'tblTempVendorCDR_20' ) end [2025-02-22 05:52:16] Production.INFO: ProcessCDR(1,14530396,1,1,2) [2025-02-22 05:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530396', 'tblTempUsageDetail_20' ) start [2025-02-22 05:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530396', 'tblTempUsageDetail_20' ) end [2025-02-22 05:52:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:52:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:52:19] Production.INFO: ==24224== Releasing lock... [2025-02-22 05:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:52:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:53:05 [end_date_ymd] => 2025-02-22 05:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:53:05' and `end` < '2025-02-22 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-02-22 05:53:16] Production.INFO: count ==97 [2025-02-22 05:53:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:53:05 - End Time 2025-02-22 05:53:05 [2025-02-22 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530401', 'tblTempUsageDetail_20' ) start [2025-02-22 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530401', 'tblTempUsageDetail_20' ) end [2025-02-22 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530401', 'tblTempVendorCDR_20' ) start [2025-02-22 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530401', 'tblTempVendorCDR_20' ) end [2025-02-22 05:53:16] Production.INFO: ProcessCDR(1,14530401,1,1,2) [2025-02-22 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530401', 'tblTempUsageDetail_20' ) start [2025-02-22 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530401', 'tblTempUsageDetail_20' ) end [2025-02-22 05:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:53:19] Production.INFO: ==24299== Releasing lock... [2025-02-22 05:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:53:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:54:05 [end_date_ymd] => 2025-02-22 05:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:54:05' and `end` < '2025-02-22 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-02-22 05:54:16] Production.INFO: count ==97 [2025-02-22 05:54:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:54:05 - End Time 2025-02-22 05:54:05 [2025-02-22 05:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530406', 'tblTempUsageDetail_20' ) start [2025-02-22 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530406', 'tblTempUsageDetail_20' ) end [2025-02-22 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530406', 'tblTempVendorCDR_20' ) start [2025-02-22 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530406', 'tblTempVendorCDR_20' ) end [2025-02-22 05:54:16] Production.INFO: ProcessCDR(1,14530406,1,1,2) [2025-02-22 05:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530406', 'tblTempUsageDetail_20' ) start [2025-02-22 05:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530406', 'tblTempUsageDetail_20' ) end [2025-02-22 05:54:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:54:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:54:20] Production.INFO: ==24370== Releasing lock... [2025-02-22 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:55:05 [end_date_ymd] => 2025-02-22 05:55:05 [RateCDR] => 1 ) [2025-02-22 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:55:05' and `end` < '2025-02-22 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:55:16] Production.INFO: count ==96 [2025-02-22 05:55:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:55:05 - End Time 2025-02-22 05:55:05 [2025-02-22 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530411', 'tblTempUsageDetail_20' ) start [2025-02-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530411', 'tblTempUsageDetail_20' ) end [2025-02-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530411', 'tblTempVendorCDR_20' ) start [2025-02-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530411', 'tblTempVendorCDR_20' ) end [2025-02-22 05:55:16] Production.INFO: ProcessCDR(1,14530411,1,1,2) [2025-02-22 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530411', 'tblTempUsageDetail_20' ) start [2025-02-22 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530411', 'tblTempUsageDetail_20' ) end [2025-02-22 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:55:20] Production.INFO: ==24446== Releasing lock... [2025-02-22 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:56:04 [end_date_ymd] => 2025-02-22 05:56:04 [RateCDR] => 1 ) [2025-02-22 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:56:04' and `end` < '2025-02-22 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:56:16] Production.INFO: count ==96 [2025-02-22 05:56:16] Production.ERROR: pbx CDR StartTime 2025-02-22 02:56:04 - End Time 2025-02-22 05:56:04 [2025-02-22 05:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530416', 'tblTempUsageDetail_20' ) start [2025-02-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530416', 'tblTempUsageDetail_20' ) end [2025-02-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530416', 'tblTempVendorCDR_20' ) start [2025-02-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530416', 'tblTempVendorCDR_20' ) end [2025-02-22 05:56:16] Production.INFO: ProcessCDR(1,14530416,1,1,2) [2025-02-22 05:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530416', 'tblTempUsageDetail_20' ) start [2025-02-22 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530416', 'tblTempUsageDetail_20' ) end [2025-02-22 05:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:56:19] Production.INFO: ==24519== Releasing lock... [2025-02-22 05:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:56:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:57:05 [end_date_ymd] => 2025-02-22 05:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 02:57:05' and `end` < '2025-02-22 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-02-22 05:57:17] Production.INFO: count ==96 [2025-02-22 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:57:05 - End Time 2025-02-22 05:57:05 [2025-02-22 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530421', 'tblTempUsageDetail_20' ) start [2025-02-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530421', 'tblTempUsageDetail_20' ) end [2025-02-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530421', 'tblTempVendorCDR_20' ) start [2025-02-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530421', 'tblTempVendorCDR_20' ) end [2025-02-22 05:57:17] Production.INFO: ProcessCDR(1,14530421,1,1,2) [2025-02-22 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530421', 'tblTempUsageDetail_20' ) start [2025-02-22 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530421', 'tblTempUsageDetail_20' ) end [2025-02-22 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:57:20] Production.INFO: ==24595== Releasing lock... [2025-02-22 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:58:06 [end_date_ymd] => 2025-02-22 05:58:06 [RateCDR] => 1 ) [2025-02-22 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:58:06' and `end` < '2025-02-22 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:58:17] Production.INFO: count ==96 [2025-02-22 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:58:06 - End Time 2025-02-22 05:58:06 [2025-02-22 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530426', 'tblTempUsageDetail_20' ) start [2025-02-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530426', 'tblTempUsageDetail_20' ) end [2025-02-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530426', 'tblTempVendorCDR_20' ) start [2025-02-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530426', 'tblTempVendorCDR_20' ) end [2025-02-22 05:58:17] Production.INFO: ProcessCDR(1,14530426,1,1,2) [2025-02-22 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530426', 'tblTempUsageDetail_20' ) start [2025-02-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530426', 'tblTempUsageDetail_20' ) end [2025-02-22 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:58:21] Production.INFO: ==24667== Releasing lock... [2025-02-22 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 02:59:05 [end_date_ymd] => 2025-02-22 05:59:05 [RateCDR] => 1 ) [2025-02-22 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 02:59:05' and `end` < '2025-02-22 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 05:59:17] Production.INFO: count ==96 [2025-02-22 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 02:59:05 - End Time 2025-02-22 05:59:05 [2025-02-22 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530431', 'tblTempUsageDetail_20' ) start [2025-02-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530431', 'tblTempUsageDetail_20' ) end [2025-02-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530431', 'tblTempVendorCDR_20' ) start [2025-02-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530431', 'tblTempVendorCDR_20' ) end [2025-02-22 05:59:17] Production.INFO: ProcessCDR(1,14530431,1,1,2) [2025-02-22 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530431', 'tblTempUsageDetail_20' ) start [2025-02-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530431', 'tblTempUsageDetail_20' ) end [2025-02-22 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 05:59:20] Production.INFO: ==24741== Releasing lock... [2025-02-22 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 05:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:00:07 [end_date_ymd] => 2025-02-22 06:00:07 [RateCDR] => 1 ) [2025-02-22 06:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:00:07' and `end` < '2025-02-22 06:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:00:19] Production.INFO: count ==94 [2025-02-22 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 03:00:07 - End Time 2025-02-22 06:00:07 [2025-02-22 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530437', 'tblTempUsageDetail_20' ) start [2025-02-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530437', 'tblTempUsageDetail_20' ) end [2025-02-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530437', 'tblTempVendorCDR_20' ) start [2025-02-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530437', 'tblTempVendorCDR_20' ) end [2025-02-22 06:00:19] Production.INFO: ProcessCDR(1,14530437,1,1,2) [2025-02-22 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530437', 'tblTempUsageDetail_20' ) start [2025-02-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530437', 'tblTempUsageDetail_20' ) end [2025-02-22 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:00:22] Production.INFO: ==24816== Releasing lock... [2025-02-22 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:01:05 [end_date_ymd] => 2025-02-22 06:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:01:05' and `end` < '2025-02-22 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-02-22 06:01:16] Production.INFO: count ==94 [2025-02-22 06:01:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:01:05 - End Time 2025-02-22 06:01:05 [2025-02-22 06:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530442', 'tblTempUsageDetail_20' ) start [2025-02-22 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530442', 'tblTempUsageDetail_20' ) end [2025-02-22 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530442', 'tblTempVendorCDR_20' ) start [2025-02-22 06:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530442', 'tblTempVendorCDR_20' ) end [2025-02-22 06:01:16] Production.INFO: ProcessCDR(1,14530442,1,1,2) [2025-02-22 06:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530442', 'tblTempUsageDetail_20' ) start [2025-02-22 06:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530442', 'tblTempUsageDetail_20' ) end [2025-02-22 06:01:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:01:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:01:19] Production.INFO: ==24900== Releasing lock... [2025-02-22 06:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:01:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:02:06 [end_date_ymd] => 2025-02-22 06:02:06 [RateCDR] => 1 ) [2025-02-22 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:02:06' and `end` < '2025-02-22 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:02:17] Production.INFO: count ==94 [2025-02-22 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:02:06 - End Time 2025-02-22 06:02:06 [2025-02-22 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530447', 'tblTempUsageDetail_20' ) start [2025-02-22 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530447', 'tblTempUsageDetail_20' ) end [2025-02-22 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530447', 'tblTempVendorCDR_20' ) start [2025-02-22 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530447', 'tblTempVendorCDR_20' ) end [2025-02-22 06:02:17] Production.INFO: ProcessCDR(1,14530447,1,1,2) [2025-02-22 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530447', 'tblTempUsageDetail_20' ) start [2025-02-22 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530447', 'tblTempUsageDetail_20' ) end [2025-02-22 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:02:21] Production.INFO: ==25010== Releasing lock... [2025-02-22 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:03:06 [end_date_ymd] => 2025-02-22 06:03:06 [RateCDR] => 1 ) [2025-02-22 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:03:06' and `end` < '2025-02-22 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:03:17] Production.INFO: count ==94 [2025-02-22 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:03:06 - End Time 2025-02-22 06:03:06 [2025-02-22 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530452', 'tblTempUsageDetail_20' ) start [2025-02-22 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530452', 'tblTempUsageDetail_20' ) end [2025-02-22 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530452', 'tblTempVendorCDR_20' ) start [2025-02-22 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530452', 'tblTempVendorCDR_20' ) end [2025-02-22 06:03:17] Production.INFO: ProcessCDR(1,14530452,1,1,2) [2025-02-22 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530452', 'tblTempUsageDetail_20' ) start [2025-02-22 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530452', 'tblTempUsageDetail_20' ) end [2025-02-22 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:03:20] Production.INFO: ==25084== Releasing lock... [2025-02-22 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:04:05 [end_date_ymd] => 2025-02-22 06:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:04:05' and `end` < '2025-02-22 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-02-22 06:04:17] Production.INFO: count ==95 [2025-02-22 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:04:05 - End Time 2025-02-22 06:04:05 [2025-02-22 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530457', 'tblTempUsageDetail_20' ) start [2025-02-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530457', 'tblTempUsageDetail_20' ) end [2025-02-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530457', 'tblTempVendorCDR_20' ) start [2025-02-22 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530457', 'tblTempVendorCDR_20' ) end [2025-02-22 06:04:17] Production.INFO: ProcessCDR(1,14530457,1,1,2) [2025-02-22 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530457', 'tblTempUsageDetail_20' ) start [2025-02-22 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530457', 'tblTempUsageDetail_20' ) end [2025-02-22 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:04:20] Production.INFO: ==25155== Releasing lock... [2025-02-22 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:04:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:05:05 [end_date_ymd] => 2025-02-22 06:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:05:05' and `end` < '2025-02-22 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-02-22 06:05:17] Production.INFO: count ==98 [2025-02-22 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:05:05 - End Time 2025-02-22 06:05:05 [2025-02-22 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530462', 'tblTempUsageDetail_20' ) start [2025-02-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530462', 'tblTempUsageDetail_20' ) end [2025-02-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530462', 'tblTempVendorCDR_20' ) start [2025-02-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530462', 'tblTempVendorCDR_20' ) end [2025-02-22 06:05:17] Production.INFO: ProcessCDR(1,14530462,1,1,2) [2025-02-22 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530462', 'tblTempUsageDetail_20' ) start [2025-02-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530462', 'tblTempUsageDetail_20' ) end [2025-02-22 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:05:20] Production.INFO: ==25225== Releasing lock... [2025-02-22 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:06:05 [end_date_ymd] => 2025-02-22 06:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:06:05' and `end` < '2025-02-22 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-02-22 06:06:17] Production.INFO: count ==96 [2025-02-22 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:06:05 - End Time 2025-02-22 06:06:05 [2025-02-22 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530467', 'tblTempUsageDetail_20' ) start [2025-02-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530467', 'tblTempUsageDetail_20' ) end [2025-02-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530467', 'tblTempVendorCDR_20' ) start [2025-02-22 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530467', 'tblTempVendorCDR_20' ) end [2025-02-22 06:06:17] Production.INFO: ProcessCDR(1,14530467,1,1,2) [2025-02-22 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530467', 'tblTempUsageDetail_20' ) start [2025-02-22 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530467', 'tblTempUsageDetail_20' ) end [2025-02-22 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:06:20] Production.INFO: ==25298== Releasing lock... [2025-02-22 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:07:05 [end_date_ymd] => 2025-02-22 06:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:07:05' and `end` < '2025-02-22 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-02-22 06:07:17] Production.INFO: count ==95 [2025-02-22 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:07:05 - End Time 2025-02-22 06:07:05 [2025-02-22 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530472', 'tblTempUsageDetail_20' ) start [2025-02-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530472', 'tblTempUsageDetail_20' ) end [2025-02-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530472', 'tblTempVendorCDR_20' ) start [2025-02-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530472', 'tblTempVendorCDR_20' ) end [2025-02-22 06:07:17] Production.INFO: ProcessCDR(1,14530472,1,1,2) [2025-02-22 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530472', 'tblTempUsageDetail_20' ) start [2025-02-22 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530472', 'tblTempUsageDetail_20' ) end [2025-02-22 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:07:20] Production.INFO: ==25370== Releasing lock... [2025-02-22 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:08:05 [end_date_ymd] => 2025-02-22 06:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:08:05' and `end` < '2025-02-22 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-02-22 06:08:17] Production.INFO: count ==96 [2025-02-22 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:08:05 - End Time 2025-02-22 06:08:05 [2025-02-22 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530477', 'tblTempUsageDetail_20' ) start [2025-02-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530477', 'tblTempUsageDetail_20' ) end [2025-02-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530477', 'tblTempVendorCDR_20' ) start [2025-02-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530477', 'tblTempVendorCDR_20' ) end [2025-02-22 06:08:17] Production.INFO: ProcessCDR(1,14530477,1,1,2) [2025-02-22 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530477', 'tblTempUsageDetail_20' ) start [2025-02-22 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530477', 'tblTempUsageDetail_20' ) end [2025-02-22 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:08:22] Production.INFO: ==25443== Releasing lock... [2025-02-22 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:09:05 [end_date_ymd] => 2025-02-22 06:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:09:05' and `end` < '2025-02-22 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-02-22 06:09:16] Production.INFO: count ==96 [2025-02-22 06:09:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:09:05 - End Time 2025-02-22 06:09:05 [2025-02-22 06:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530482', 'tblTempUsageDetail_20' ) start [2025-02-22 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530482', 'tblTempUsageDetail_20' ) end [2025-02-22 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530482', 'tblTempVendorCDR_20' ) start [2025-02-22 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530482', 'tblTempVendorCDR_20' ) end [2025-02-22 06:09:16] Production.INFO: ProcessCDR(1,14530482,1,1,2) [2025-02-22 06:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530482', 'tblTempUsageDetail_20' ) start [2025-02-22 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530482', 'tblTempUsageDetail_20' ) end [2025-02-22 06:09:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:09:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:09:19] Production.INFO: ==25512== Releasing lock... [2025-02-22 06:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:09:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:10:06 [end_date_ymd] => 2025-02-22 06:10:06 [RateCDR] => 1 ) [2025-02-22 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:10:06' and `end` < '2025-02-22 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:10:18] Production.INFO: count ==94 [2025-02-22 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 03:10:06 - End Time 2025-02-22 06:10:06 [2025-02-22 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530488', 'tblTempUsageDetail_20' ) start [2025-02-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530488', 'tblTempUsageDetail_20' ) end [2025-02-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530488', 'tblTempVendorCDR_20' ) start [2025-02-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530488', 'tblTempVendorCDR_20' ) end [2025-02-22 06:10:18] Production.INFO: ProcessCDR(1,14530488,1,1,2) [2025-02-22 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530488', 'tblTempUsageDetail_20' ) start [2025-02-22 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530488', 'tblTempUsageDetail_20' ) end [2025-02-22 06:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:10:20] Production.INFO: ==25586== Releasing lock... [2025-02-22 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:10:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:11:06 [end_date_ymd] => 2025-02-22 06:11:06 [RateCDR] => 1 ) [2025-02-22 06: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-02-22 03:11:06' and `end` < '2025-02-22 06: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-02-22 06:11:17] Production.INFO: count ==94 [2025-02-22 06:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:11:06 - End Time 2025-02-22 06:11:06 [2025-02-22 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530493', 'tblTempUsageDetail_20' ) start [2025-02-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530493', 'tblTempUsageDetail_20' ) end [2025-02-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530493', 'tblTempVendorCDR_20' ) start [2025-02-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530493', 'tblTempVendorCDR_20' ) end [2025-02-22 06:11:17] Production.INFO: ProcessCDR(1,14530493,1,1,2) [2025-02-22 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530493', 'tblTempUsageDetail_20' ) start [2025-02-22 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530493', 'tblTempUsageDetail_20' ) end [2025-02-22 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:11:21] Production.INFO: ==25660== Releasing lock... [2025-02-22 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:12:05 [end_date_ymd] => 2025-02-22 06:12:05 [RateCDR] => 1 ) [2025-02-22 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:12:05' and `end` < '2025-02-22 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:12:17] Production.INFO: count ==94 [2025-02-22 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:12:05 - End Time 2025-02-22 06:12:05 [2025-02-22 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530498', 'tblTempUsageDetail_20' ) start [2025-02-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530498', 'tblTempUsageDetail_20' ) end [2025-02-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530498', 'tblTempVendorCDR_20' ) start [2025-02-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530498', 'tblTempVendorCDR_20' ) end [2025-02-22 06:12:17] Production.INFO: ProcessCDR(1,14530498,1,1,2) [2025-02-22 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530498', 'tblTempUsageDetail_20' ) start [2025-02-22 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530498', 'tblTempUsageDetail_20' ) end [2025-02-22 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:12:20] Production.INFO: ==25731== Releasing lock... [2025-02-22 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:13:05 [end_date_ymd] => 2025-02-22 06:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:13:05' and `end` < '2025-02-22 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-02-22 06:13:17] Production.INFO: count ==94 [2025-02-22 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:13:05 - End Time 2025-02-22 06:13:05 [2025-02-22 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530503', 'tblTempUsageDetail_20' ) start [2025-02-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530503', 'tblTempUsageDetail_20' ) end [2025-02-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530503', 'tblTempVendorCDR_20' ) start [2025-02-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530503', 'tblTempVendorCDR_20' ) end [2025-02-22 06:13:17] Production.INFO: ProcessCDR(1,14530503,1,1,2) [2025-02-22 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530503', 'tblTempUsageDetail_20' ) start [2025-02-22 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530503', 'tblTempUsageDetail_20' ) end [2025-02-22 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:13:20] Production.INFO: ==25804== Releasing lock... [2025-02-22 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:14:05 [end_date_ymd] => 2025-02-22 06:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:14:05' and `end` < '2025-02-22 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-02-22 06:14:17] Production.INFO: count ==94 [2025-02-22 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:14:05 - End Time 2025-02-22 06:14:05 [2025-02-22 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530508', 'tblTempUsageDetail_20' ) start [2025-02-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530508', 'tblTempUsageDetail_20' ) end [2025-02-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530508', 'tblTempVendorCDR_20' ) start [2025-02-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530508', 'tblTempVendorCDR_20' ) end [2025-02-22 06:14:17] Production.INFO: ProcessCDR(1,14530508,1,1,2) [2025-02-22 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530508', 'tblTempUsageDetail_20' ) start [2025-02-22 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530508', 'tblTempUsageDetail_20' ) end [2025-02-22 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:14:20] Production.INFO: ==25875== Releasing lock... [2025-02-22 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:15:05 [end_date_ymd] => 2025-02-22 06:15:05 [RateCDR] => 1 ) [2025-02-22 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:15:05' and `end` < '2025-02-22 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:15:17] Production.INFO: count ==94 [2025-02-22 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:15:05 - End Time 2025-02-22 06:15:05 [2025-02-22 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530513', 'tblTempUsageDetail_20' ) start [2025-02-22 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530513', 'tblTempUsageDetail_20' ) end [2025-02-22 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530513', 'tblTempVendorCDR_20' ) start [2025-02-22 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530513', 'tblTempVendorCDR_20' ) end [2025-02-22 06:15:17] Production.INFO: ProcessCDR(1,14530513,1,1,2) [2025-02-22 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530513', 'tblTempUsageDetail_20' ) start [2025-02-22 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530513', 'tblTempUsageDetail_20' ) end [2025-02-22 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:15:20] Production.INFO: ==25949== Releasing lock... [2025-02-22 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:16:04 [end_date_ymd] => 2025-02-22 06:16:04 [RateCDR] => 1 ) [2025-02-22 06:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:16:04' and `end` < '2025-02-22 06:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:16:16] Production.INFO: count ==92 [2025-02-22 06:16:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:16:04 - End Time 2025-02-22 06:16:04 [2025-02-22 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530518', 'tblTempUsageDetail_20' ) start [2025-02-22 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530518', 'tblTempUsageDetail_20' ) end [2025-02-22 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530518', 'tblTempVendorCDR_20' ) start [2025-02-22 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530518', 'tblTempVendorCDR_20' ) end [2025-02-22 06:16:16] Production.INFO: ProcessCDR(1,14530518,1,1,2) [2025-02-22 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530518', 'tblTempUsageDetail_20' ) start [2025-02-22 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530518', 'tblTempUsageDetail_20' ) end [2025-02-22 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:16:20] Production.INFO: ==26023== Releasing lock... [2025-02-22 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:17:06 [end_date_ymd] => 2025-02-22 06:17:06 [RateCDR] => 1 ) [2025-02-22 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:17:06' and `end` < '2025-02-22 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:17:17] Production.INFO: count ==91 [2025-02-22 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:17:06 - End Time 2025-02-22 06:17:06 [2025-02-22 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530523', 'tblTempUsageDetail_20' ) start [2025-02-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530523', 'tblTempUsageDetail_20' ) end [2025-02-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530523', 'tblTempVendorCDR_20' ) start [2025-02-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530523', 'tblTempVendorCDR_20' ) end [2025-02-22 06:17:17] Production.INFO: ProcessCDR(1,14530523,1,1,2) [2025-02-22 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530523', 'tblTempUsageDetail_20' ) start [2025-02-22 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530523', 'tblTempUsageDetail_20' ) end [2025-02-22 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:17:21] Production.INFO: ==26135== Releasing lock... [2025-02-22 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:18:05 [end_date_ymd] => 2025-02-22 06:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:18:05' and `end` < '2025-02-22 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-02-22 06:18:17] Production.INFO: count ==91 [2025-02-22 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:18:05 - End Time 2025-02-22 06:18:05 [2025-02-22 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530528', 'tblTempUsageDetail_20' ) start [2025-02-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530528', 'tblTempUsageDetail_20' ) end [2025-02-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530528', 'tblTempVendorCDR_20' ) start [2025-02-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530528', 'tblTempVendorCDR_20' ) end [2025-02-22 06:18:17] Production.INFO: ProcessCDR(1,14530528,1,1,2) [2025-02-22 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530528', 'tblTempUsageDetail_20' ) start [2025-02-22 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530528', 'tblTempUsageDetail_20' ) end [2025-02-22 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:18:20] Production.INFO: ==26207== Releasing lock... [2025-02-22 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:19:05 [end_date_ymd] => 2025-02-22 06:19:05 [RateCDR] => 1 ) [2025-02-22 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:19:05' and `end` < '2025-02-22 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:19:17] Production.INFO: count ==98 [2025-02-22 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:19:05 - End Time 2025-02-22 06:19:05 [2025-02-22 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530533', 'tblTempUsageDetail_20' ) start [2025-02-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530533', 'tblTempUsageDetail_20' ) end [2025-02-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530533', 'tblTempVendorCDR_20' ) start [2025-02-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530533', 'tblTempVendorCDR_20' ) end [2025-02-22 06:19:17] Production.INFO: ProcessCDR(1,14530533,1,1,2) [2025-02-22 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530533', 'tblTempUsageDetail_20' ) start [2025-02-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530533', 'tblTempUsageDetail_20' ) end [2025-02-22 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:19:20] Production.INFO: ==26278== Releasing lock... [2025-02-22 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:20:05 [end_date_ymd] => 2025-02-22 06:20:05 [RateCDR] => 1 ) [2025-02-22 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:20:05' and `end` < '2025-02-22 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-02-22 06:20:17] Production.INFO: count ==96 [2025-02-22 06:20:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:20:05 - End Time 2025-02-22 06:20:05 [2025-02-22 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530538', 'tblTempUsageDetail_20' ) start [2025-02-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530538', 'tblTempUsageDetail_20' ) end [2025-02-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530538', 'tblTempVendorCDR_20' ) start [2025-02-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530538', 'tblTempVendorCDR_20' ) end [2025-02-22 06:20:17] Production.INFO: ProcessCDR(1,14530538,1,1,2) [2025-02-22 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530538', 'tblTempUsageDetail_20' ) start [2025-02-22 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530538', 'tblTempUsageDetail_20' ) end [2025-02-22 06:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:20:20] Production.INFO: ==26352== Releasing lock... [2025-02-22 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:20:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:21:05 [end_date_ymd] => 2025-02-22 06:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:21:05' and `end` < '2025-02-22 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-02-22 06:21:17] Production.INFO: count ==96 [2025-02-22 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:21:05 - End Time 2025-02-22 06:21:05 [2025-02-22 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530544', 'tblTempUsageDetail_20' ) start [2025-02-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530544', 'tblTempUsageDetail_20' ) end [2025-02-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530544', 'tblTempVendorCDR_20' ) start [2025-02-22 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530544', 'tblTempVendorCDR_20' ) end [2025-02-22 06:21:17] Production.INFO: ProcessCDR(1,14530544,1,1,2) [2025-02-22 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530544', 'tblTempUsageDetail_20' ) start [2025-02-22 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530544', 'tblTempUsageDetail_20' ) end [2025-02-22 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:21:20] Production.INFO: ==26425== Releasing lock... [2025-02-22 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:22:04 [end_date_ymd] => 2025-02-22 06:22:04 [RateCDR] => 1 ) [2025-02-22 06: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-02-22 03:22:04' and `end` < '2025-02-22 06: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-02-22 06:22:16] Production.INFO: count ==96 [2025-02-22 06:22:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:22:04 - End Time 2025-02-22 06:22:04 [2025-02-22 06:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530549', 'tblTempUsageDetail_20' ) start [2025-02-22 06:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530549', 'tblTempUsageDetail_20' ) end [2025-02-22 06:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530549', 'tblTempVendorCDR_20' ) start [2025-02-22 06:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530549', 'tblTempVendorCDR_20' ) end [2025-02-22 06:22:16] Production.INFO: ProcessCDR(1,14530549,1,1,2) [2025-02-22 06:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530549', 'tblTempUsageDetail_20' ) start [2025-02-22 06:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530549', 'tblTempUsageDetail_20' ) end [2025-02-22 06:22:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:22:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:22:19] Production.INFO: ==26494== Releasing lock... [2025-02-22 06:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:22:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:23:05 [end_date_ymd] => 2025-02-22 06:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:23:05' and `end` < '2025-02-22 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-02-22 06:23:17] Production.INFO: count ==96 [2025-02-22 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:23:05 - End Time 2025-02-22 06:23:05 [2025-02-22 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530554', 'tblTempUsageDetail_20' ) start [2025-02-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530554', 'tblTempUsageDetail_20' ) end [2025-02-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530554', 'tblTempVendorCDR_20' ) start [2025-02-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530554', 'tblTempVendorCDR_20' ) end [2025-02-22 06:23:17] Production.INFO: ProcessCDR(1,14530554,1,1,2) [2025-02-22 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530554', 'tblTempUsageDetail_20' ) start [2025-02-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530554', 'tblTempUsageDetail_20' ) end [2025-02-22 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:23:20] Production.INFO: ==26567== Releasing lock... [2025-02-22 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:24:05 [end_date_ymd] => 2025-02-22 06:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:24:05' and `end` < '2025-02-22 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-02-22 06:24:16] Production.INFO: count ==96 [2025-02-22 06:24:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:24:05 - End Time 2025-02-22 06:24:05 [2025-02-22 06:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530559', 'tblTempUsageDetail_20' ) start [2025-02-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530559', 'tblTempUsageDetail_20' ) end [2025-02-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530559', 'tblTempVendorCDR_20' ) start [2025-02-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530559', 'tblTempVendorCDR_20' ) end [2025-02-22 06:24:17] Production.INFO: ProcessCDR(1,14530559,1,1,2) [2025-02-22 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530559', 'tblTempUsageDetail_20' ) start [2025-02-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530559', 'tblTempUsageDetail_20' ) end [2025-02-22 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:24:20] Production.INFO: ==26643== Releasing lock... [2025-02-22 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:25:05 [end_date_ymd] => 2025-02-22 06:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:25:05' and `end` < '2025-02-22 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-02-22 06:25:17] Production.INFO: count ==100 [2025-02-22 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:25:05 - End Time 2025-02-22 06:25:05 [2025-02-22 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530564', 'tblTempUsageDetail_20' ) start [2025-02-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530564', 'tblTempUsageDetail_20' ) end [2025-02-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530564', 'tblTempVendorCDR_20' ) start [2025-02-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530564', 'tblTempVendorCDR_20' ) end [2025-02-22 06:25:17] Production.INFO: ProcessCDR(1,14530564,1,1,2) [2025-02-22 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530564', 'tblTempUsageDetail_20' ) start [2025-02-22 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530564', 'tblTempUsageDetail_20' ) end [2025-02-22 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:25:20] Production.INFO: ==26716== Releasing lock... [2025-02-22 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:26:05 [end_date_ymd] => 2025-02-22 06:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:26:05' and `end` < '2025-02-22 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-02-22 06:26:16] Production.INFO: count ==100 [2025-02-22 06:26:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:26:05 - End Time 2025-02-22 06:26:05 [2025-02-22 06:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530569', 'tblTempUsageDetail_20' ) start [2025-02-22 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530569', 'tblTempUsageDetail_20' ) end [2025-02-22 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530569', 'tblTempVendorCDR_20' ) start [2025-02-22 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530569', 'tblTempVendorCDR_20' ) end [2025-02-22 06:26:16] Production.INFO: ProcessCDR(1,14530569,1,1,2) [2025-02-22 06:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530569', 'tblTempUsageDetail_20' ) start [2025-02-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530569', 'tblTempUsageDetail_20' ) end [2025-02-22 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:26:20] Production.INFO: ==26787== Releasing lock... [2025-02-22 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:27:05 [end_date_ymd] => 2025-02-22 06:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:27:05' and `end` < '2025-02-22 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-02-22 06:27:17] Production.INFO: count ==97 [2025-02-22 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:27:05 - End Time 2025-02-22 06:27:05 [2025-02-22 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530574', 'tblTempUsageDetail_20' ) start [2025-02-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530574', 'tblTempUsageDetail_20' ) end [2025-02-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530574', 'tblTempVendorCDR_20' ) start [2025-02-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530574', 'tblTempVendorCDR_20' ) end [2025-02-22 06:27:17] Production.INFO: ProcessCDR(1,14530574,1,1,2) [2025-02-22 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530574', 'tblTempUsageDetail_20' ) start [2025-02-22 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530574', 'tblTempUsageDetail_20' ) end [2025-02-22 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:27:20] Production.INFO: ==26861== Releasing lock... [2025-02-22 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:28:05 [end_date_ymd] => 2025-02-22 06:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:28:05' and `end` < '2025-02-22 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-02-22 06:28:16] Production.INFO: count ==97 [2025-02-22 06:28:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:28:05 - End Time 2025-02-22 06:28:05 [2025-02-22 06:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530579', 'tblTempUsageDetail_20' ) start [2025-02-22 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530579', 'tblTempUsageDetail_20' ) end [2025-02-22 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530579', 'tblTempVendorCDR_20' ) start [2025-02-22 06:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530579', 'tblTempVendorCDR_20' ) end [2025-02-22 06:28:16] Production.INFO: ProcessCDR(1,14530579,1,1,2) [2025-02-22 06:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530579', 'tblTempUsageDetail_20' ) start [2025-02-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530579', 'tblTempUsageDetail_20' ) end [2025-02-22 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:28:20] Production.INFO: ==26932== Releasing lock... [2025-02-22 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:29:05 [end_date_ymd] => 2025-02-22 06:29:05 [RateCDR] => 1 ) [2025-02-22 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:29:05' and `end` < '2025-02-22 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:29:17] Production.INFO: count ==94 [2025-02-22 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:29:05 - End Time 2025-02-22 06:29:05 [2025-02-22 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530584', 'tblTempUsageDetail_20' ) start [2025-02-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530584', 'tblTempUsageDetail_20' ) end [2025-02-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530584', 'tblTempVendorCDR_20' ) start [2025-02-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530584', 'tblTempVendorCDR_20' ) end [2025-02-22 06:29:17] Production.INFO: ProcessCDR(1,14530584,1,1,2) [2025-02-22 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530584', 'tblTempUsageDetail_20' ) start [2025-02-22 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530584', 'tblTempUsageDetail_20' ) end [2025-02-22 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:29:20] Production.INFO: ==27002== Releasing lock... [2025-02-22 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:30:06 [end_date_ymd] => 2025-02-22 06:30:06 [RateCDR] => 1 ) [2025-02-22 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:30:06' and `end` < '2025-02-22 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:30:18] Production.INFO: count ==90 [2025-02-22 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 03:30:06 - End Time 2025-02-22 06:30:06 [2025-02-22 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530590', 'tblTempUsageDetail_20' ) start [2025-02-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530590', 'tblTempUsageDetail_20' ) end [2025-02-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530590', 'tblTempVendorCDR_20' ) start [2025-02-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530590', 'tblTempVendorCDR_20' ) end [2025-02-22 06:30:18] Production.INFO: ProcessCDR(1,14530590,1,1,2) [2025-02-22 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530590', 'tblTempUsageDetail_20' ) start [2025-02-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530590', 'tblTempUsageDetail_20' ) end [2025-02-22 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:30:21] Production.INFO: ==27075== Releasing lock... [2025-02-22 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:31:05 [end_date_ymd] => 2025-02-22 06:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:31:05' and `end` < '2025-02-22 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-02-22 06:31:17] Production.INFO: count ==92 [2025-02-22 06:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:31:05 - End Time 2025-02-22 06:31:05 [2025-02-22 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530595', 'tblTempUsageDetail_20' ) start [2025-02-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530595', 'tblTempUsageDetail_20' ) end [2025-02-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530595', 'tblTempVendorCDR_20' ) start [2025-02-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530595', 'tblTempVendorCDR_20' ) end [2025-02-22 06:31:17] Production.INFO: ProcessCDR(1,14530595,1,1,2) [2025-02-22 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530595', 'tblTempUsageDetail_20' ) start [2025-02-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530595', 'tblTempUsageDetail_20' ) end [2025-02-22 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:31:20] Production.INFO: ==27149== Releasing lock... [2025-02-22 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:32:05 [end_date_ymd] => 2025-02-22 06:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:32:05' and `end` < '2025-02-22 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-02-22 06:32:17] Production.INFO: count ==92 [2025-02-22 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:32:05 - End Time 2025-02-22 06:32:05 [2025-02-22 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530600', 'tblTempUsageDetail_20' ) start [2025-02-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530600', 'tblTempUsageDetail_20' ) end [2025-02-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530600', 'tblTempVendorCDR_20' ) start [2025-02-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530600', 'tblTempVendorCDR_20' ) end [2025-02-22 06:32:17] Production.INFO: ProcessCDR(1,14530600,1,1,2) [2025-02-22 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530600', 'tblTempUsageDetail_20' ) start [2025-02-22 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530600', 'tblTempUsageDetail_20' ) end [2025-02-22 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:32:20] Production.INFO: ==27220== Releasing lock... [2025-02-22 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:33:05 [end_date_ymd] => 2025-02-22 06:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:33:05' and `end` < '2025-02-22 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-02-22 06:33:16] Production.INFO: count ==90 [2025-02-22 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:33:05 - End Time 2025-02-22 06:33:05 [2025-02-22 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530605', 'tblTempUsageDetail_20' ) start [2025-02-22 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530605', 'tblTempUsageDetail_20' ) end [2025-02-22 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530605', 'tblTempVendorCDR_20' ) start [2025-02-22 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530605', 'tblTempVendorCDR_20' ) end [2025-02-22 06:33:17] Production.INFO: ProcessCDR(1,14530605,1,1,2) [2025-02-22 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530605', 'tblTempUsageDetail_20' ) start [2025-02-22 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530605', 'tblTempUsageDetail_20' ) end [2025-02-22 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:33:20] Production.INFO: ==27332== Releasing lock... [2025-02-22 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:34:05 [end_date_ymd] => 2025-02-22 06:34:05 [RateCDR] => 1 ) [2025-02-22 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:34:05' and `end` < '2025-02-22 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:34:17] Production.INFO: count ==87 [2025-02-22 06:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:34:05 - End Time 2025-02-22 06:34:05 [2025-02-22 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530610', 'tblTempUsageDetail_20' ) start [2025-02-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530610', 'tblTempUsageDetail_20' ) end [2025-02-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530610', 'tblTempVendorCDR_20' ) start [2025-02-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530610', 'tblTempVendorCDR_20' ) end [2025-02-22 06:34:17] Production.INFO: ProcessCDR(1,14530610,1,1,2) [2025-02-22 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530610', 'tblTempUsageDetail_20' ) start [2025-02-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530610', 'tblTempUsageDetail_20' ) end [2025-02-22 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:34:20] Production.INFO: ==27403== Releasing lock... [2025-02-22 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:35:04 [end_date_ymd] => 2025-02-22 06:35:04 [RateCDR] => 1 ) [2025-02-22 06:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:35:04' and `end` < '2025-02-22 06:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:35:16] Production.INFO: count ==82 [2025-02-22 06:35:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:35:04 - End Time 2025-02-22 06:35:04 [2025-02-22 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530615', 'tblTempUsageDetail_20' ) start [2025-02-22 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530615', 'tblTempUsageDetail_20' ) end [2025-02-22 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530615', 'tblTempVendorCDR_20' ) start [2025-02-22 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530615', 'tblTempVendorCDR_20' ) end [2025-02-22 06:35:16] Production.INFO: ProcessCDR(1,14530615,1,1,2) [2025-02-22 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530615', 'tblTempUsageDetail_20' ) start [2025-02-22 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530615', 'tblTempUsageDetail_20' ) end [2025-02-22 06:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:35:19] Production.INFO: ==27473== Releasing lock... [2025-02-22 06:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:35:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:36:05 [end_date_ymd] => 2025-02-22 06:36:05 [RateCDR] => 1 ) [2025-02-22 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:36:05' and `end` < '2025-02-22 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:36:17] Production.INFO: count ==82 [2025-02-22 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:36:05 - End Time 2025-02-22 06:36:05 [2025-02-22 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530620', 'tblTempUsageDetail_20' ) start [2025-02-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530620', 'tblTempUsageDetail_20' ) end [2025-02-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530620', 'tblTempVendorCDR_20' ) start [2025-02-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530620', 'tblTempVendorCDR_20' ) end [2025-02-22 06:36:17] Production.INFO: ProcessCDR(1,14530620,1,1,2) [2025-02-22 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530620', 'tblTempUsageDetail_20' ) start [2025-02-22 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530620', 'tblTempUsageDetail_20' ) end [2025-02-22 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:36:20] Production.INFO: ==27549== Releasing lock... [2025-02-22 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:37:04 [end_date_ymd] => 2025-02-22 06:37:04 [RateCDR] => 1 ) [2025-02-22 06: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-02-22 03:37:04' and `end` < '2025-02-22 06: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-02-22 06:37:16] Production.INFO: count ==82 [2025-02-22 06:37:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:37:04 - End Time 2025-02-22 06:37:04 [2025-02-22 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530625', 'tblTempUsageDetail_20' ) start [2025-02-22 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530625', 'tblTempUsageDetail_20' ) end [2025-02-22 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530625', 'tblTempVendorCDR_20' ) start [2025-02-22 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530625', 'tblTempVendorCDR_20' ) end [2025-02-22 06:37:16] Production.INFO: ProcessCDR(1,14530625,1,1,2) [2025-02-22 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530625', 'tblTempUsageDetail_20' ) start [2025-02-22 06:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530625', 'tblTempUsageDetail_20' ) end [2025-02-22 06:37:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:37:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:37:19] Production.INFO: ==27622== Releasing lock... [2025-02-22 06:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:37:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:38:05 [end_date_ymd] => 2025-02-22 06:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:38:05' and `end` < '2025-02-22 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-02-22 06:38:17] Production.INFO: count ==80 [2025-02-22 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:38:05 - End Time 2025-02-22 06:38:05 [2025-02-22 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530630', 'tblTempUsageDetail_20' ) start [2025-02-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530630', 'tblTempUsageDetail_20' ) end [2025-02-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530630', 'tblTempVendorCDR_20' ) start [2025-02-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530630', 'tblTempVendorCDR_20' ) end [2025-02-22 06:38:17] Production.INFO: ProcessCDR(1,14530630,1,1,2) [2025-02-22 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530630', 'tblTempUsageDetail_20' ) start [2025-02-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530630', 'tblTempUsageDetail_20' ) end [2025-02-22 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:38:20] Production.INFO: ==27696== Releasing lock... [2025-02-22 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:39:06 [end_date_ymd] => 2025-02-22 06:39:06 [RateCDR] => 1 ) [2025-02-22 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:39:06' and `end` < '2025-02-22 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:39:17] Production.INFO: count ==79 [2025-02-22 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:39:06 - End Time 2025-02-22 06:39:06 [2025-02-22 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530635', 'tblTempUsageDetail_20' ) start [2025-02-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530635', 'tblTempUsageDetail_20' ) end [2025-02-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530635', 'tblTempVendorCDR_20' ) start [2025-02-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530635', 'tblTempVendorCDR_20' ) end [2025-02-22 06:39:17] Production.INFO: ProcessCDR(1,14530635,1,1,2) [2025-02-22 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530635', 'tblTempUsageDetail_20' ) start [2025-02-22 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530635', 'tblTempUsageDetail_20' ) end [2025-02-22 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:39:20] Production.INFO: ==27766== Releasing lock... [2025-02-22 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:40:06 [end_date_ymd] => 2025-02-22 06:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:40:06' and `end` < '2025-02-22 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-02-22 06:40:18] Production.INFO: count ==76 [2025-02-22 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 03:40:06 - End Time 2025-02-22 06:40:06 [2025-02-22 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530640', 'tblTempUsageDetail_20' ) start [2025-02-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530640', 'tblTempUsageDetail_20' ) end [2025-02-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530640', 'tblTempVendorCDR_20' ) start [2025-02-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530640', 'tblTempVendorCDR_20' ) end [2025-02-22 06:40:18] Production.INFO: ProcessCDR(1,14530640,1,1,2) [2025-02-22 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530640', 'tblTempUsageDetail_20' ) start [2025-02-22 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530640', 'tblTempUsageDetail_20' ) end [2025-02-22 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:40:21] Production.INFO: ==27840== Releasing lock... [2025-02-22 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:41:05 [end_date_ymd] => 2025-02-22 06:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:41:05' and `end` < '2025-02-22 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-02-22 06:41:17] Production.INFO: count ==76 [2025-02-22 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:41:05 - End Time 2025-02-22 06:41:05 [2025-02-22 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530646', 'tblTempUsageDetail_20' ) start [2025-02-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530646', 'tblTempUsageDetail_20' ) end [2025-02-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530646', 'tblTempVendorCDR_20' ) start [2025-02-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530646', 'tblTempVendorCDR_20' ) end [2025-02-22 06:41:17] Production.INFO: ProcessCDR(1,14530646,1,1,2) [2025-02-22 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530646', 'tblTempUsageDetail_20' ) start [2025-02-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530646', 'tblTempUsageDetail_20' ) end [2025-02-22 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:41:21] Production.INFO: ==27914== Releasing lock... [2025-02-22 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:42:05 [end_date_ymd] => 2025-02-22 06:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:42:05' and `end` < '2025-02-22 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-02-22 06:42:17] Production.INFO: count ==76 [2025-02-22 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:42:05 - End Time 2025-02-22 06:42:05 [2025-02-22 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530651', 'tblTempUsageDetail_20' ) start [2025-02-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530651', 'tblTempUsageDetail_20' ) end [2025-02-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530651', 'tblTempVendorCDR_20' ) start [2025-02-22 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530651', 'tblTempVendorCDR_20' ) end [2025-02-22 06:42:17] Production.INFO: ProcessCDR(1,14530651,1,1,2) [2025-02-22 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530651', 'tblTempUsageDetail_20' ) start [2025-02-22 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530651', 'tblTempUsageDetail_20' ) end [2025-02-22 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:42:20] Production.INFO: ==27984== Releasing lock... [2025-02-22 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:43:05 [end_date_ymd] => 2025-02-22 06:43:05 [RateCDR] => 1 ) [2025-02-22 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:43:05' and `end` < '2025-02-22 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:43:17] Production.INFO: count ==74 [2025-02-22 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:43:05 - End Time 2025-02-22 06:43:05 [2025-02-22 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530656', 'tblTempUsageDetail_20' ) start [2025-02-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530656', 'tblTempUsageDetail_20' ) end [2025-02-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530656', 'tblTempVendorCDR_20' ) start [2025-02-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530656', 'tblTempVendorCDR_20' ) end [2025-02-22 06:43:17] Production.INFO: ProcessCDR(1,14530656,1,1,2) [2025-02-22 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530656', 'tblTempUsageDetail_20' ) start [2025-02-22 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530656', 'tblTempUsageDetail_20' ) end [2025-02-22 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:43:20] Production.INFO: ==28054== Releasing lock... [2025-02-22 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:44:05 [end_date_ymd] => 2025-02-22 06:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:44:05' and `end` < '2025-02-22 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-02-22 06:44:16] Production.INFO: count ==74 [2025-02-22 06:44:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:44:05 - End Time 2025-02-22 06:44:05 [2025-02-22 06:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530661', 'tblTempUsageDetail_20' ) start [2025-02-22 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530661', 'tblTempUsageDetail_20' ) end [2025-02-22 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530661', 'tblTempVendorCDR_20' ) start [2025-02-22 06:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530661', 'tblTempVendorCDR_20' ) end [2025-02-22 06:44:16] Production.INFO: ProcessCDR(1,14530661,1,1,2) [2025-02-22 06:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530661', 'tblTempUsageDetail_20' ) start [2025-02-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530661', 'tblTempUsageDetail_20' ) end [2025-02-22 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:44:21] Production.INFO: ==28126== Releasing lock... [2025-02-22 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:45:05 [end_date_ymd] => 2025-02-22 06:45:05 [RateCDR] => 1 ) [2025-02-22 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:45:05' and `end` < '2025-02-22 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:45:17] Production.INFO: count ==74 [2025-02-22 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:45:05 - End Time 2025-02-22 06:45:05 [2025-02-22 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530666', 'tblTempUsageDetail_20' ) start [2025-02-22 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530666', 'tblTempUsageDetail_20' ) end [2025-02-22 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530666', 'tblTempVendorCDR_20' ) start [2025-02-22 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530666', 'tblTempVendorCDR_20' ) end [2025-02-22 06:45:17] Production.INFO: ProcessCDR(1,14530666,1,1,2) [2025-02-22 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530666', 'tblTempUsageDetail_20' ) start [2025-02-22 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530666', 'tblTempUsageDetail_20' ) end [2025-02-22 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:45:20] Production.INFO: ==28203== Releasing lock... [2025-02-22 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:46:05 [end_date_ymd] => 2025-02-22 06:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:46:05' and `end` < '2025-02-22 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-02-22 06:46:16] Production.INFO: count ==74 [2025-02-22 06:46:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:46:05 - End Time 2025-02-22 06:46:05 [2025-02-22 06:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530671', 'tblTempUsageDetail_20' ) start [2025-02-22 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530671', 'tblTempUsageDetail_20' ) end [2025-02-22 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530671', 'tblTempVendorCDR_20' ) start [2025-02-22 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530671', 'tblTempVendorCDR_20' ) end [2025-02-22 06:46:16] Production.INFO: ProcessCDR(1,14530671,1,1,2) [2025-02-22 06:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530671', 'tblTempUsageDetail_20' ) start [2025-02-22 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530671', 'tblTempUsageDetail_20' ) end [2025-02-22 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:46:20] Production.INFO: ==28273== Releasing lock... [2025-02-22 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:47:05 [end_date_ymd] => 2025-02-22 06:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:47:05' and `end` < '2025-02-22 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-02-22 06:47:17] Production.INFO: count ==74 [2025-02-22 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:47:05 - End Time 2025-02-22 06:47:05 [2025-02-22 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530676', 'tblTempUsageDetail_20' ) start [2025-02-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530676', 'tblTempUsageDetail_20' ) end [2025-02-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530676', 'tblTempVendorCDR_20' ) start [2025-02-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530676', 'tblTempVendorCDR_20' ) end [2025-02-22 06:47:17] Production.INFO: ProcessCDR(1,14530676,1,1,2) [2025-02-22 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530676', 'tblTempUsageDetail_20' ) start [2025-02-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530676', 'tblTempUsageDetail_20' ) end [2025-02-22 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:47:20] Production.INFO: ==28349== Releasing lock... [2025-02-22 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:48:06 [end_date_ymd] => 2025-02-22 06:48:06 [RateCDR] => 1 ) [2025-02-22 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:48:06' and `end` < '2025-02-22 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:48:17] Production.INFO: count ==74 [2025-02-22 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:48:06 - End Time 2025-02-22 06:48:06 [2025-02-22 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530681', 'tblTempUsageDetail_20' ) start [2025-02-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530681', 'tblTempUsageDetail_20' ) end [2025-02-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530681', 'tblTempVendorCDR_20' ) start [2025-02-22 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530681', 'tblTempVendorCDR_20' ) end [2025-02-22 06:48:17] Production.INFO: ProcessCDR(1,14530681,1,1,2) [2025-02-22 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530681', 'tblTempUsageDetail_20' ) start [2025-02-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530681', 'tblTempUsageDetail_20' ) end [2025-02-22 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:48:20] Production.INFO: ==28461== Releasing lock... [2025-02-22 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:49:05 [end_date_ymd] => 2025-02-22 06:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:49:05' and `end` < '2025-02-22 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-02-22 06:49:17] Production.INFO: count ==74 [2025-02-22 06:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:49:05 - End Time 2025-02-22 06:49:05 [2025-02-22 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530686', 'tblTempUsageDetail_20' ) start [2025-02-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530686', 'tblTempUsageDetail_20' ) end [2025-02-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530686', 'tblTempVendorCDR_20' ) start [2025-02-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530686', 'tblTempVendorCDR_20' ) end [2025-02-22 06:49:17] Production.INFO: ProcessCDR(1,14530686,1,1,2) [2025-02-22 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530686', 'tblTempUsageDetail_20' ) start [2025-02-22 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530686', 'tblTempUsageDetail_20' ) end [2025-02-22 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:49:20] Production.INFO: ==28533== Releasing lock... [2025-02-22 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:50:06 [end_date_ymd] => 2025-02-22 06:50:06 [RateCDR] => 1 ) [2025-02-22 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:50:06' and `end` < '2025-02-22 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:50:18] Production.INFO: count ==66 [2025-02-22 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 03:50:06 - End Time 2025-02-22 06:50:06 [2025-02-22 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530692', 'tblTempUsageDetail_20' ) start [2025-02-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530692', 'tblTempUsageDetail_20' ) end [2025-02-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530692', 'tblTempVendorCDR_20' ) start [2025-02-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530692', 'tblTempVendorCDR_20' ) end [2025-02-22 06:50:18] Production.INFO: ProcessCDR(1,14530692,1,1,2) [2025-02-22 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530692', 'tblTempUsageDetail_20' ) start [2025-02-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530692', 'tblTempUsageDetail_20' ) end [2025-02-22 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:50:21] Production.INFO: ==28609== Releasing lock... [2025-02-22 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:51:05 [end_date_ymd] => 2025-02-22 06:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:51:05' and `end` < '2025-02-22 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-02-22 06:51:16] Production.INFO: count ==70 [2025-02-22 06:51:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:51:05 - End Time 2025-02-22 06:51:05 [2025-02-22 06:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530697', 'tblTempUsageDetail_20' ) start [2025-02-22 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530697', 'tblTempUsageDetail_20' ) end [2025-02-22 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530697', 'tblTempVendorCDR_20' ) start [2025-02-22 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530697', 'tblTempVendorCDR_20' ) end [2025-02-22 06:51:16] Production.INFO: ProcessCDR(1,14530697,1,1,2) [2025-02-22 06:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530697', 'tblTempUsageDetail_20' ) start [2025-02-22 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530697', 'tblTempUsageDetail_20' ) end [2025-02-22 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:51:20] Production.INFO: ==28688== Releasing lock... [2025-02-22 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:52:06 [end_date_ymd] => 2025-02-22 06:52:06 [RateCDR] => 1 ) [2025-02-22 06: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-02-22 03:52:06' and `end` < '2025-02-22 06: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-02-22 06:52:18] Production.INFO: count ==78 [2025-02-22 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 03:52:06 - End Time 2025-02-22 06:52:06 [2025-02-22 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530702', 'tblTempUsageDetail_20' ) start [2025-02-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530702', 'tblTempUsageDetail_20' ) end [2025-02-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530702', 'tblTempVendorCDR_20' ) start [2025-02-22 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530702', 'tblTempVendorCDR_20' ) end [2025-02-22 06:52:18] Production.INFO: ProcessCDR(1,14530702,1,1,2) [2025-02-22 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530702', 'tblTempUsageDetail_20' ) start [2025-02-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530702', 'tblTempUsageDetail_20' ) end [2025-02-22 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:52:21] Production.INFO: ==28771== Releasing lock... [2025-02-22 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:53:05 [end_date_ymd] => 2025-02-22 06:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:53:05' and `end` < '2025-02-22 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-02-22 06:53:17] Production.INFO: count ==78 [2025-02-22 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:53:05 - End Time 2025-02-22 06:53:05 [2025-02-22 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530707', 'tblTempUsageDetail_20' ) start [2025-02-22 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530707', 'tblTempUsageDetail_20' ) end [2025-02-22 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530707', 'tblTempVendorCDR_20' ) start [2025-02-22 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530707', 'tblTempVendorCDR_20' ) end [2025-02-22 06:53:17] Production.INFO: ProcessCDR(1,14530707,1,1,2) [2025-02-22 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530707', 'tblTempUsageDetail_20' ) start [2025-02-22 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530707', 'tblTempUsageDetail_20' ) end [2025-02-22 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:53:20] Production.INFO: ==28852== Releasing lock... [2025-02-22 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:54:06 [end_date_ymd] => 2025-02-22 06:54:06 [RateCDR] => 1 ) [2025-02-22 06: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-02-22 03:54:06' and `end` < '2025-02-22 06: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-02-22 06:54:17] Production.INFO: count ==78 [2025-02-22 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:54:06 - End Time 2025-02-22 06:54:06 [2025-02-22 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530712', 'tblTempUsageDetail_20' ) start [2025-02-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530712', 'tblTempUsageDetail_20' ) end [2025-02-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530712', 'tblTempVendorCDR_20' ) start [2025-02-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530712', 'tblTempVendorCDR_20' ) end [2025-02-22 06:54:17] Production.INFO: ProcessCDR(1,14530712,1,1,2) [2025-02-22 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530712', 'tblTempUsageDetail_20' ) start [2025-02-22 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530712', 'tblTempUsageDetail_20' ) end [2025-02-22 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:54:21] Production.INFO: ==28931== Releasing lock... [2025-02-22 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:55:05 [end_date_ymd] => 2025-02-22 06:55:05 [RateCDR] => 1 ) [2025-02-22 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:55:05' and `end` < '2025-02-22 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:55:16] Production.INFO: count ==78 [2025-02-22 06:55:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:55:05 - End Time 2025-02-22 06:55:05 [2025-02-22 06:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530717', 'tblTempUsageDetail_20' ) start [2025-02-22 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530717', 'tblTempUsageDetail_20' ) end [2025-02-22 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530717', 'tblTempVendorCDR_20' ) start [2025-02-22 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530717', 'tblTempVendorCDR_20' ) end [2025-02-22 06:55:16] Production.INFO: ProcessCDR(1,14530717,1,1,2) [2025-02-22 06:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530717', 'tblTempUsageDetail_20' ) start [2025-02-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530717', 'tblTempUsageDetail_20' ) end [2025-02-22 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:55:20] Production.INFO: ==29014== Releasing lock... [2025-02-22 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:56:05 [end_date_ymd] => 2025-02-22 06:56:05 [RateCDR] => 1 ) [2025-02-22 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:56:05' and `end` < '2025-02-22 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:56:16] Production.INFO: count ==78 [2025-02-22 06:56:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:56:05 - End Time 2025-02-22 06:56:05 [2025-02-22 06:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530722', 'tblTempUsageDetail_20' ) start [2025-02-22 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530722', 'tblTempUsageDetail_20' ) end [2025-02-22 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530722', 'tblTempVendorCDR_20' ) start [2025-02-22 06:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530722', 'tblTempVendorCDR_20' ) end [2025-02-22 06:56:16] Production.INFO: ProcessCDR(1,14530722,1,1,2) [2025-02-22 06:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530722', 'tblTempUsageDetail_20' ) start [2025-02-22 06:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530722', 'tblTempUsageDetail_20' ) end [2025-02-22 06:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:56:19] Production.INFO: ==29088== Releasing lock... [2025-02-22 06:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:56:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:57:05 [end_date_ymd] => 2025-02-22 06:57:05 [RateCDR] => 1 ) [2025-02-22 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:57:05' and `end` < '2025-02-22 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:57:16] Production.INFO: count ==78 [2025-02-22 06:57:16] Production.ERROR: pbx CDR StartTime 2025-02-22 03:57:05 - End Time 2025-02-22 06:57:05 [2025-02-22 06:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530727', 'tblTempUsageDetail_20' ) start [2025-02-22 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530727', 'tblTempUsageDetail_20' ) end [2025-02-22 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530727', 'tblTempVendorCDR_20' ) start [2025-02-22 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530727', 'tblTempVendorCDR_20' ) end [2025-02-22 06:57:16] Production.INFO: ProcessCDR(1,14530727,1,1,2) [2025-02-22 06:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530727', 'tblTempUsageDetail_20' ) start [2025-02-22 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530727', 'tblTempUsageDetail_20' ) end [2025-02-22 06:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:57:19] Production.INFO: ==29168== Releasing lock... [2025-02-22 06:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:57:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:58:05 [end_date_ymd] => 2025-02-22 06:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 03:58:05' and `end` < '2025-02-22 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-02-22 06:58:17] Production.INFO: count ==78 [2025-02-22 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:58:05 - End Time 2025-02-22 06:58:05 [2025-02-22 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530732', 'tblTempUsageDetail_20' ) start [2025-02-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530732', 'tblTempUsageDetail_20' ) end [2025-02-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530732', 'tblTempVendorCDR_20' ) start [2025-02-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530732', 'tblTempVendorCDR_20' ) end [2025-02-22 06:58:17] Production.INFO: ProcessCDR(1,14530732,1,1,2) [2025-02-22 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530732', 'tblTempUsageDetail_20' ) start [2025-02-22 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530732', 'tblTempUsageDetail_20' ) end [2025-02-22 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:58:20] Production.INFO: ==29249== Releasing lock... [2025-02-22 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 03:59:05 [end_date_ymd] => 2025-02-22 06:59:05 [RateCDR] => 1 ) [2025-02-22 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 03:59:05' and `end` < '2025-02-22 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 06:59:16] Production.INFO: count ==78 [2025-02-22 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 03:59:05 - End Time 2025-02-22 06:59:05 [2025-02-22 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530737', 'tblTempUsageDetail_20' ) start [2025-02-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530737', 'tblTempUsageDetail_20' ) end [2025-02-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530737', 'tblTempVendorCDR_20' ) start [2025-02-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530737', 'tblTempVendorCDR_20' ) end [2025-02-22 06:59:17] Production.INFO: ProcessCDR(1,14530737,1,1,2) [2025-02-22 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530737', 'tblTempUsageDetail_20' ) start [2025-02-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530737', 'tblTempUsageDetail_20' ) end [2025-02-22 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 06:59:20] Production.INFO: ==29328== Releasing lock... [2025-02-22 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:00:06 [end_date_ymd] => 2025-02-22 07:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:00:06' and `end` < '2025-02-22 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-02-22 07:00:18] Production.INFO: count ==80 [2025-02-22 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:00:06 - End Time 2025-02-22 07:00:06 [2025-02-22 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530742', 'tblTempUsageDetail_20' ) start [2025-02-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530742', 'tblTempUsageDetail_20' ) end [2025-02-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530742', 'tblTempVendorCDR_20' ) start [2025-02-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530742', 'tblTempVendorCDR_20' ) end [2025-02-22 07:00:18] Production.INFO: ProcessCDR(1,14530742,1,1,2) [2025-02-22 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530742', 'tblTempUsageDetail_20' ) start [2025-02-22 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530742', 'tblTempUsageDetail_20' ) end [2025-02-22 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:00:22] Production.INFO: ==29409== Releasing lock... [2025-02-22 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:01:05 [end_date_ymd] => 2025-02-22 07:01:05 [RateCDR] => 1 ) [2025-02-22 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:01:05' and `end` < '2025-02-22 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:01:17] Production.INFO: count ==80 [2025-02-22 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:01:05 - End Time 2025-02-22 07:01:05 [2025-02-22 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530748', 'tblTempUsageDetail_20' ) start [2025-02-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530748', 'tblTempUsageDetail_20' ) end [2025-02-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530748', 'tblTempVendorCDR_20' ) start [2025-02-22 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530748', 'tblTempVendorCDR_20' ) end [2025-02-22 07:01:17] Production.INFO: ProcessCDR(1,14530748,1,1,2) [2025-02-22 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530748', 'tblTempUsageDetail_20' ) start [2025-02-22 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530748', 'tblTempUsageDetail_20' ) end [2025-02-22 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:01:20] Production.INFO: ==29502== Releasing lock... [2025-02-22 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:02:06 [end_date_ymd] => 2025-02-22 07:02:06 [RateCDR] => 1 ) [2025-02-22 07: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-02-22 04:02:06' and `end` < '2025-02-22 07: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-02-22 07:02:18] Production.INFO: count ==79 [2025-02-22 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:02:06 - End Time 2025-02-22 07:02:06 [2025-02-22 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530753', 'tblTempUsageDetail_20' ) start [2025-02-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530753', 'tblTempUsageDetail_20' ) end [2025-02-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530753', 'tblTempVendorCDR_20' ) start [2025-02-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530753', 'tblTempVendorCDR_20' ) end [2025-02-22 07:02:18] Production.INFO: ProcessCDR(1,14530753,1,1,2) [2025-02-22 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530753', 'tblTempUsageDetail_20' ) start [2025-02-22 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530753', 'tblTempUsageDetail_20' ) end [2025-02-22 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:02:22] Production.INFO: ==29660== Releasing lock... [2025-02-22 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:03:05 [end_date_ymd] => 2025-02-22 07:03:05 [RateCDR] => 1 ) [2025-02-22 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:03:05' and `end` < '2025-02-22 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:03:18] Production.INFO: count ==79 [2025-02-22 07:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:03:05 - End Time 2025-02-22 07:03:05 [2025-02-22 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530758', 'tblTempUsageDetail_20' ) start [2025-02-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530758', 'tblTempUsageDetail_20' ) end [2025-02-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530758', 'tblTempVendorCDR_20' ) start [2025-02-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530758', 'tblTempVendorCDR_20' ) end [2025-02-22 07:03:18] Production.INFO: ProcessCDR(1,14530758,1,1,2) [2025-02-22 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530758', 'tblTempUsageDetail_20' ) start [2025-02-22 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530758', 'tblTempUsageDetail_20' ) end [2025-02-22 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:03:21] Production.INFO: ==29738== Releasing lock... [2025-02-22 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:04:05 [end_date_ymd] => 2025-02-22 07:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:04:05' and `end` < '2025-02-22 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-02-22 07:04:17] Production.INFO: count ==79 [2025-02-22 07:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:04:05 - End Time 2025-02-22 07:04:05 [2025-02-22 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530763', 'tblTempUsageDetail_20' ) start [2025-02-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530763', 'tblTempUsageDetail_20' ) end [2025-02-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530763', 'tblTempVendorCDR_20' ) start [2025-02-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530763', 'tblTempVendorCDR_20' ) end [2025-02-22 07:04:18] Production.INFO: ProcessCDR(1,14530763,1,1,2) [2025-02-22 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530763', 'tblTempUsageDetail_20' ) start [2025-02-22 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530763', 'tblTempUsageDetail_20' ) end [2025-02-22 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:04:21] Production.INFO: ==29856== Releasing lock... [2025-02-22 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:05:05 [end_date_ymd] => 2025-02-22 07:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:05:05' and `end` < '2025-02-22 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-02-22 07:05:17] Production.INFO: count ==73 [2025-02-22 07:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:05:05 - End Time 2025-02-22 07:05:05 [2025-02-22 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530768', 'tblTempUsageDetail_20' ) start [2025-02-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530768', 'tblTempUsageDetail_20' ) end [2025-02-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530768', 'tblTempVendorCDR_20' ) start [2025-02-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530768', 'tblTempVendorCDR_20' ) end [2025-02-22 07:05:17] Production.INFO: ProcessCDR(1,14530768,1,1,2) [2025-02-22 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530768', 'tblTempUsageDetail_20' ) start [2025-02-22 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530768', 'tblTempUsageDetail_20' ) end [2025-02-22 07:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:05:20] Production.INFO: ==30013== Releasing lock... [2025-02-22 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:06:05 [end_date_ymd] => 2025-02-22 07:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:06:05' and `end` < '2025-02-22 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-02-22 07:06:17] Production.INFO: count ==73 [2025-02-22 07:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:06:05 - End Time 2025-02-22 07:06:05 [2025-02-22 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530773', 'tblTempUsageDetail_20' ) start [2025-02-22 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530773', 'tblTempUsageDetail_20' ) end [2025-02-22 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530773', 'tblTempVendorCDR_20' ) start [2025-02-22 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530773', 'tblTempVendorCDR_20' ) end [2025-02-22 07:06:17] Production.INFO: ProcessCDR(1,14530773,1,1,2) [2025-02-22 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530773', 'tblTempUsageDetail_20' ) start [2025-02-22 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530773', 'tblTempUsageDetail_20' ) end [2025-02-22 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:06:20] Production.INFO: ==30095== Releasing lock... [2025-02-22 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:06:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:07:04 [end_date_ymd] => 2025-02-22 07:07:04 [RateCDR] => 1 ) [2025-02-22 07: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-02-22 04:07:04' and `end` < '2025-02-22 07: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-02-22 07:07:17] Production.INFO: count ==73 [2025-02-22 07:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:07:04 - End Time 2025-02-22 07:07:04 [2025-02-22 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530778', 'tblTempUsageDetail_20' ) start [2025-02-22 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530778', 'tblTempUsageDetail_20' ) end [2025-02-22 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530778', 'tblTempVendorCDR_20' ) start [2025-02-22 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530778', 'tblTempVendorCDR_20' ) end [2025-02-22 07:07:17] Production.INFO: ProcessCDR(1,14530778,1,1,2) [2025-02-22 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530778', 'tblTempUsageDetail_20' ) start [2025-02-22 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530778', 'tblTempUsageDetail_20' ) end [2025-02-22 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:07:20] Production.INFO: ==30173== Releasing lock... [2025-02-22 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:08:05 [end_date_ymd] => 2025-02-22 07:08:05 [RateCDR] => 1 ) [2025-02-22 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:08:05' and `end` < '2025-02-22 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:08:17] Production.INFO: count ==73 [2025-02-22 07:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:08:05 - End Time 2025-02-22 07:08:05 [2025-02-22 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530783', 'tblTempUsageDetail_20' ) start [2025-02-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530783', 'tblTempUsageDetail_20' ) end [2025-02-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530783', 'tblTempVendorCDR_20' ) start [2025-02-22 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530783', 'tblTempVendorCDR_20' ) end [2025-02-22 07:08:17] Production.INFO: ProcessCDR(1,14530783,1,1,2) [2025-02-22 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530783', 'tblTempUsageDetail_20' ) start [2025-02-22 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530783', 'tblTempUsageDetail_20' ) end [2025-02-22 07:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:08:20] Production.INFO: ==30253== Releasing lock... [2025-02-22 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:09:05 [end_date_ymd] => 2025-02-22 07:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:09:05' and `end` < '2025-02-22 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-02-22 07:09:17] Production.INFO: count ==73 [2025-02-22 07:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:09:05 - End Time 2025-02-22 07:09:05 [2025-02-22 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530788', 'tblTempUsageDetail_20' ) start [2025-02-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530788', 'tblTempUsageDetail_20' ) end [2025-02-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530788', 'tblTempVendorCDR_20' ) start [2025-02-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530788', 'tblTempVendorCDR_20' ) end [2025-02-22 07:09:17] Production.INFO: ProcessCDR(1,14530788,1,1,2) [2025-02-22 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530788', 'tblTempUsageDetail_20' ) start [2025-02-22 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530788', 'tblTempUsageDetail_20' ) end [2025-02-22 07:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:09:20] Production.INFO: ==30411== Releasing lock... [2025-02-22 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:10:06 [end_date_ymd] => 2025-02-22 07:10:06 [RateCDR] => 1 ) [2025-02-22 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:10:06' and `end` < '2025-02-22 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:10:17] Production.INFO: count ==73 [2025-02-22 07:10:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:10:06 - End Time 2025-02-22 07:10:06 [2025-02-22 07:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530794', 'tblTempUsageDetail_20' ) start [2025-02-22 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530794', 'tblTempUsageDetail_20' ) end [2025-02-22 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530794', 'tblTempVendorCDR_20' ) start [2025-02-22 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530794', 'tblTempVendorCDR_20' ) end [2025-02-22 07:10:17] Production.INFO: ProcessCDR(1,14530794,1,1,2) [2025-02-22 07:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530794', 'tblTempUsageDetail_20' ) start [2025-02-22 07:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530794', 'tblTempUsageDetail_20' ) end [2025-02-22 07:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:10:21] Production.INFO: ==30490== Releasing lock... [2025-02-22 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:11:05 [end_date_ymd] => 2025-02-22 07:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:11:05' and `end` < '2025-02-22 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-02-22 07:11:17] Production.INFO: count ==73 [2025-02-22 07:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:11:05 - End Time 2025-02-22 07:11:05 [2025-02-22 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530799', 'tblTempUsageDetail_20' ) start [2025-02-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530799', 'tblTempUsageDetail_20' ) end [2025-02-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530799', 'tblTempVendorCDR_20' ) start [2025-02-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530799', 'tblTempVendorCDR_20' ) end [2025-02-22 07:11:17] Production.INFO: ProcessCDR(1,14530799,1,1,2) [2025-02-22 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530799', 'tblTempUsageDetail_20' ) start [2025-02-22 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530799', 'tblTempUsageDetail_20' ) end [2025-02-22 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:11:20] Production.INFO: ==30568== Releasing lock... [2025-02-22 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:12:05 [end_date_ymd] => 2025-02-22 07:12:05 [RateCDR] => 1 ) [2025-02-22 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:12:05' and `end` < '2025-02-22 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:12:18] Production.INFO: count ==73 [2025-02-22 07:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:12:05 - End Time 2025-02-22 07:12:05 [2025-02-22 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530804', 'tblTempUsageDetail_20' ) start [2025-02-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530804', 'tblTempUsageDetail_20' ) end [2025-02-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530804', 'tblTempVendorCDR_20' ) start [2025-02-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530804', 'tblTempVendorCDR_20' ) end [2025-02-22 07:12:18] Production.INFO: ProcessCDR(1,14530804,1,1,2) [2025-02-22 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530804', 'tblTempUsageDetail_20' ) start [2025-02-22 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530804', 'tblTempUsageDetail_20' ) end [2025-02-22 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:12:21] Production.INFO: ==30726== Releasing lock... [2025-02-22 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:13:05 [end_date_ymd] => 2025-02-22 07:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:13:05' and `end` < '2025-02-22 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-02-22 07:13:17] Production.INFO: count ==73 [2025-02-22 07:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:13:05 - End Time 2025-02-22 07:13:05 [2025-02-22 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530809', 'tblTempUsageDetail_20' ) start [2025-02-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530809', 'tblTempUsageDetail_20' ) end [2025-02-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530809', 'tblTempVendorCDR_20' ) start [2025-02-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530809', 'tblTempVendorCDR_20' ) end [2025-02-22 07:13:17] Production.INFO: ProcessCDR(1,14530809,1,1,2) [2025-02-22 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530809', 'tblTempUsageDetail_20' ) start [2025-02-22 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530809', 'tblTempUsageDetail_20' ) end [2025-02-22 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:13:20] Production.INFO: ==30805== Releasing lock... [2025-02-22 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:13:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:14:05 [end_date_ymd] => 2025-02-22 07:14:05 [RateCDR] => 1 ) [2025-02-22 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:14:05' and `end` < '2025-02-22 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:14:16] Production.INFO: count ==73 [2025-02-22 07:14:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:14:05 - End Time 2025-02-22 07:14:05 [2025-02-22 07:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530814', 'tblTempUsageDetail_20' ) start [2025-02-22 07:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530814', 'tblTempUsageDetail_20' ) end [2025-02-22 07:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530814', 'tblTempVendorCDR_20' ) start [2025-02-22 07:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530814', 'tblTempVendorCDR_20' ) end [2025-02-22 07:14:16] Production.INFO: ProcessCDR(1,14530814,1,1,2) [2025-02-22 07:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530814', 'tblTempUsageDetail_20' ) start [2025-02-22 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530814', 'tblTempUsageDetail_20' ) end [2025-02-22 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:14:20] Production.INFO: ==30885== Releasing lock... [2025-02-22 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:15:05 [end_date_ymd] => 2025-02-22 07:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:15:05' and `end` < '2025-02-22 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-02-22 07:15:17] Production.INFO: count ==69 [2025-02-22 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:15:05 - End Time 2025-02-22 07:15:05 [2025-02-22 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530819', 'tblTempUsageDetail_20' ) start [2025-02-22 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530819', 'tblTempUsageDetail_20' ) end [2025-02-22 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530819', 'tblTempVendorCDR_20' ) start [2025-02-22 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530819', 'tblTempVendorCDR_20' ) end [2025-02-22 07:15:17] Production.INFO: ProcessCDR(1,14530819,1,1,2) [2025-02-22 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530819', 'tblTempUsageDetail_20' ) start [2025-02-22 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530819', 'tblTempUsageDetail_20' ) end [2025-02-22 07:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:15:21] Production.INFO: ==30961== Releasing lock... [2025-02-22 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:16:05 [end_date_ymd] => 2025-02-22 07:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:16:05' and `end` < '2025-02-22 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-02-22 07:16:19] Production.INFO: count ==69 [2025-02-22 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-22 04:16:05 - End Time 2025-02-22 07:16:05 [2025-02-22 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530824', 'tblTempUsageDetail_20' ) start [2025-02-22 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530824', 'tblTempUsageDetail_20' ) end [2025-02-22 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530824', 'tblTempVendorCDR_20' ) start [2025-02-22 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530824', 'tblTempVendorCDR_20' ) end [2025-02-22 07:16:19] Production.INFO: ProcessCDR(1,14530824,1,1,2) [2025-02-22 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530824', 'tblTempUsageDetail_20' ) start [2025-02-22 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530824', 'tblTempUsageDetail_20' ) end [2025-02-22 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:16:22] Production.INFO: ==31117== Releasing lock... [2025-02-22 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:17:06 [end_date_ymd] => 2025-02-22 07:17:06 [RateCDR] => 1 ) [2025-02-22 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:17:06' and `end` < '2025-02-22 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:17:18] Production.INFO: count ==69 [2025-02-22 07:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:17:06 - End Time 2025-02-22 07:17:06 [2025-02-22 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530829', 'tblTempUsageDetail_20' ) start [2025-02-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530829', 'tblTempUsageDetail_20' ) end [2025-02-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530829', 'tblTempVendorCDR_20' ) start [2025-02-22 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530829', 'tblTempVendorCDR_20' ) end [2025-02-22 07:17:18] Production.INFO: ProcessCDR(1,14530829,1,1,2) [2025-02-22 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530829', 'tblTempUsageDetail_20' ) start [2025-02-22 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530829', 'tblTempUsageDetail_20' ) end [2025-02-22 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:17:21] Production.INFO: ==31191== Releasing lock... [2025-02-22 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:18:06 [end_date_ymd] => 2025-02-22 07:18:06 [RateCDR] => 1 ) [2025-02-22 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:18:06' and `end` < '2025-02-22 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:18:18] Production.INFO: count ==69 [2025-02-22 07:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:18:06 - End Time 2025-02-22 07:18:06 [2025-02-22 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530834', 'tblTempUsageDetail_20' ) start [2025-02-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530834', 'tblTempUsageDetail_20' ) end [2025-02-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530834', 'tblTempVendorCDR_20' ) start [2025-02-22 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530834', 'tblTempVendorCDR_20' ) end [2025-02-22 07:18:18] Production.INFO: ProcessCDR(1,14530834,1,1,2) [2025-02-22 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530834', 'tblTempUsageDetail_20' ) start [2025-02-22 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530834', 'tblTempUsageDetail_20' ) end [2025-02-22 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:18:22] Production.INFO: ==31265== Releasing lock... [2025-02-22 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:19:05 [end_date_ymd] => 2025-02-22 07:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:19:05' and `end` < '2025-02-22 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-02-22 07:19:17] Production.INFO: count ==69 [2025-02-22 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:19:05 - End Time 2025-02-22 07:19:05 [2025-02-22 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530839', 'tblTempUsageDetail_20' ) start [2025-02-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530839', 'tblTempUsageDetail_20' ) end [2025-02-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530839', 'tblTempVendorCDR_20' ) start [2025-02-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530839', 'tblTempVendorCDR_20' ) end [2025-02-22 07:19:17] Production.INFO: ProcessCDR(1,14530839,1,1,2) [2025-02-22 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530839', 'tblTempUsageDetail_20' ) start [2025-02-22 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530839', 'tblTempUsageDetail_20' ) end [2025-02-22 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:19:21] Production.INFO: ==31375== Releasing lock... [2025-02-22 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:20:06 [end_date_ymd] => 2025-02-22 07:20:06 [RateCDR] => 1 ) [2025-02-22 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:20:06' and `end` < '2025-02-22 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:20:17] Production.INFO: count ==77 [2025-02-22 07:20:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:20:06 - End Time 2025-02-22 07:20:06 [2025-02-22 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530844', 'tblTempUsageDetail_20' ) start [2025-02-22 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530844', 'tblTempUsageDetail_20' ) end [2025-02-22 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530844', 'tblTempVendorCDR_20' ) start [2025-02-22 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530844', 'tblTempVendorCDR_20' ) end [2025-02-22 07:20:17] Production.INFO: ProcessCDR(1,14530844,1,1,2) [2025-02-22 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530844', 'tblTempUsageDetail_20' ) start [2025-02-22 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530844', 'tblTempUsageDetail_20' ) end [2025-02-22 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:20:21] Production.INFO: ==31451== Releasing lock... [2025-02-22 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:21:05 [end_date_ymd] => 2025-02-22 07:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:21:05' and `end` < '2025-02-22 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-02-22 07:21:17] Production.INFO: count ==77 [2025-02-22 07:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:21:05 - End Time 2025-02-22 07:21:05 [2025-02-22 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530850', 'tblTempUsageDetail_20' ) start [2025-02-22 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530850', 'tblTempUsageDetail_20' ) end [2025-02-22 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530850', 'tblTempVendorCDR_20' ) start [2025-02-22 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530850', 'tblTempVendorCDR_20' ) end [2025-02-22 07:21:17] Production.INFO: ProcessCDR(1,14530850,1,1,2) [2025-02-22 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530850', 'tblTempUsageDetail_20' ) start [2025-02-22 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530850', 'tblTempUsageDetail_20' ) end [2025-02-22 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:21:21] Production.INFO: ==31522== Releasing lock... [2025-02-22 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:22:05 [end_date_ymd] => 2025-02-22 07:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:22:05' and `end` < '2025-02-22 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-02-22 07:22:17] Production.INFO: count ==77 [2025-02-22 07:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:22:05 - End Time 2025-02-22 07:22:05 [2025-02-22 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530855', 'tblTempUsageDetail_20' ) start [2025-02-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530855', 'tblTempUsageDetail_20' ) end [2025-02-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530855', 'tblTempVendorCDR_20' ) start [2025-02-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530855', 'tblTempVendorCDR_20' ) end [2025-02-22 07:22:17] Production.INFO: ProcessCDR(1,14530855,1,1,2) [2025-02-22 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530855', 'tblTempUsageDetail_20' ) start [2025-02-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530855', 'tblTempUsageDetail_20' ) end [2025-02-22 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:22:20] Production.INFO: ==31593== Releasing lock... [2025-02-22 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:23:06 [end_date_ymd] => 2025-02-22 07:23:06 [RateCDR] => 1 ) [2025-02-22 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:23:06' and `end` < '2025-02-22 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:23:18] Production.INFO: count ==77 [2025-02-22 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:23:06 - End Time 2025-02-22 07:23:06 [2025-02-22 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530860', 'tblTempUsageDetail_20' ) start [2025-02-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530860', 'tblTempUsageDetail_20' ) end [2025-02-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530860', 'tblTempVendorCDR_20' ) start [2025-02-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530860', 'tblTempVendorCDR_20' ) end [2025-02-22 07:23:18] Production.INFO: ProcessCDR(1,14530860,1,1,2) [2025-02-22 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530860', 'tblTempUsageDetail_20' ) start [2025-02-22 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530860', 'tblTempUsageDetail_20' ) end [2025-02-22 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:23:22] Production.INFO: ==31666== Releasing lock... [2025-02-22 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:24:05 [end_date_ymd] => 2025-02-22 07:24:05 [RateCDR] => 1 ) [2025-02-22 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:24:05' and `end` < '2025-02-22 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:24:17] Production.INFO: count ==77 [2025-02-22 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:24:05 - End Time 2025-02-22 07:24:05 [2025-02-22 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530865', 'tblTempUsageDetail_20' ) start [2025-02-22 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530865', 'tblTempUsageDetail_20' ) end [2025-02-22 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530865', 'tblTempVendorCDR_20' ) start [2025-02-22 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530865', 'tblTempVendorCDR_20' ) end [2025-02-22 07:24:17] Production.INFO: ProcessCDR(1,14530865,1,1,2) [2025-02-22 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530865', 'tblTempUsageDetail_20' ) start [2025-02-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530865', 'tblTempUsageDetail_20' ) end [2025-02-22 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:24:21] Production.INFO: ==31735== Releasing lock... [2025-02-22 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:25:05 [end_date_ymd] => 2025-02-22 07:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:25:05' and `end` < '2025-02-22 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-02-22 07:25:17] Production.INFO: count ==77 [2025-02-22 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:25:05 - End Time 2025-02-22 07:25:05 [2025-02-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530870', 'tblTempUsageDetail_20' ) start [2025-02-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530870', 'tblTempUsageDetail_20' ) end [2025-02-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530870', 'tblTempVendorCDR_20' ) start [2025-02-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530870', 'tblTempVendorCDR_20' ) end [2025-02-22 07:25:17] Production.INFO: ProcessCDR(1,14530870,1,1,2) [2025-02-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530870', 'tblTempUsageDetail_20' ) start [2025-02-22 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530870', 'tblTempUsageDetail_20' ) end [2025-02-22 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:25:21] Production.INFO: ==31806== Releasing lock... [2025-02-22 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:26:05 [end_date_ymd] => 2025-02-22 07:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:26:05' and `end` < '2025-02-22 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-02-22 07:26:17] Production.INFO: count ==78 [2025-02-22 07:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:26:05 - End Time 2025-02-22 07:26:05 [2025-02-22 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530875', 'tblTempUsageDetail_20' ) start [2025-02-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530875', 'tblTempUsageDetail_20' ) end [2025-02-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530875', 'tblTempVendorCDR_20' ) start [2025-02-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530875', 'tblTempVendorCDR_20' ) end [2025-02-22 07:26:17] Production.INFO: ProcessCDR(1,14530875,1,1,2) [2025-02-22 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530875', 'tblTempUsageDetail_20' ) start [2025-02-22 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530875', 'tblTempUsageDetail_20' ) end [2025-02-22 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:26:22] Production.INFO: ==31879== Releasing lock... [2025-02-22 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:27:05 [end_date_ymd] => 2025-02-22 07:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:27:05' and `end` < '2025-02-22 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-02-22 07:27:17] Production.INFO: count ==78 [2025-02-22 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:27:05 - End Time 2025-02-22 07:27:05 [2025-02-22 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530880', 'tblTempUsageDetail_20' ) start [2025-02-22 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530880', 'tblTempUsageDetail_20' ) end [2025-02-22 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530880', 'tblTempVendorCDR_20' ) start [2025-02-22 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530880', 'tblTempVendorCDR_20' ) end [2025-02-22 07:27:17] Production.INFO: ProcessCDR(1,14530880,1,1,2) [2025-02-22 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530880', 'tblTempUsageDetail_20' ) start [2025-02-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530880', 'tblTempUsageDetail_20' ) end [2025-02-22 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:27:21] Production.INFO: ==31948== Releasing lock... [2025-02-22 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:28:06 [end_date_ymd] => 2025-02-22 07:28:06 [RateCDR] => 1 ) [2025-02-22 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:28:06' and `end` < '2025-02-22 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:28:18] Production.INFO: count ==78 [2025-02-22 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:28:06 - End Time 2025-02-22 07:28:06 [2025-02-22 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530885', 'tblTempUsageDetail_20' ) start [2025-02-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530885', 'tblTempUsageDetail_20' ) end [2025-02-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530885', 'tblTempVendorCDR_20' ) start [2025-02-22 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530885', 'tblTempVendorCDR_20' ) end [2025-02-22 07:28:18] Production.INFO: ProcessCDR(1,14530885,1,1,2) [2025-02-22 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530885', 'tblTempUsageDetail_20' ) start [2025-02-22 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530885', 'tblTempUsageDetail_20' ) end [2025-02-22 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:28:21] Production.INFO: ==32019== Releasing lock... [2025-02-22 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:29:05 [end_date_ymd] => 2025-02-22 07:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:29:05' and `end` < '2025-02-22 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-02-22 07:29:17] Production.INFO: count ==78 [2025-02-22 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:29:05 - End Time 2025-02-22 07:29:05 [2025-02-22 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530890', 'tblTempUsageDetail_20' ) start [2025-02-22 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530890', 'tblTempUsageDetail_20' ) end [2025-02-22 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530890', 'tblTempVendorCDR_20' ) start [2025-02-22 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530890', 'tblTempVendorCDR_20' ) end [2025-02-22 07:29:17] Production.INFO: ProcessCDR(1,14530890,1,1,2) [2025-02-22 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530890', 'tblTempUsageDetail_20' ) start [2025-02-22 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530890', 'tblTempUsageDetail_20' ) end [2025-02-22 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:29:20] Production.INFO: ==32091== Releasing lock... [2025-02-22 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:30:07 [end_date_ymd] => 2025-02-22 07:30:07 [RateCDR] => 1 ) [2025-02-22 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:30:07' and `end` < '2025-02-22 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:30:19] Production.INFO: count ==75 [2025-02-22 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 04:30:07 - End Time 2025-02-22 07:30:07 [2025-02-22 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530896', 'tblTempUsageDetail_20' ) start [2025-02-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530896', 'tblTempUsageDetail_20' ) end [2025-02-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530896', 'tblTempVendorCDR_20' ) start [2025-02-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530896', 'tblTempVendorCDR_20' ) end [2025-02-22 07:30:19] Production.INFO: ProcessCDR(1,14530896,1,1,2) [2025-02-22 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530896', 'tblTempUsageDetail_20' ) start [2025-02-22 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530896', 'tblTempUsageDetail_20' ) end [2025-02-22 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:30:23] Production.INFO: ==32165== Releasing lock... [2025-02-22 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:30:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:31:06 [end_date_ymd] => 2025-02-22 07:31:06 [RateCDR] => 1 ) [2025-02-22 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:31:06' and `end` < '2025-02-22 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:31:17] Production.INFO: count ==75 [2025-02-22 07:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:31:06 - End Time 2025-02-22 07:31:06 [2025-02-22 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530901', 'tblTempUsageDetail_20' ) start [2025-02-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530901', 'tblTempUsageDetail_20' ) end [2025-02-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530901', 'tblTempVendorCDR_20' ) start [2025-02-22 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530901', 'tblTempVendorCDR_20' ) end [2025-02-22 07:31:17] Production.INFO: ProcessCDR(1,14530901,1,1,2) [2025-02-22 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530901', 'tblTempUsageDetail_20' ) start [2025-02-22 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530901', 'tblTempUsageDetail_20' ) end [2025-02-22 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:31:21] Production.INFO: ==32237== Releasing lock... [2025-02-22 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:32:05 [end_date_ymd] => 2025-02-22 07:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:32:05' and `end` < '2025-02-22 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-02-22 07:32:17] Production.INFO: count ==75 [2025-02-22 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:32:05 - End Time 2025-02-22 07:32:05 [2025-02-22 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530906', 'tblTempUsageDetail_20' ) start [2025-02-22 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530906', 'tblTempUsageDetail_20' ) end [2025-02-22 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530906', 'tblTempVendorCDR_20' ) start [2025-02-22 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530906', 'tblTempVendorCDR_20' ) end [2025-02-22 07:32:17] Production.INFO: ProcessCDR(1,14530906,1,1,2) [2025-02-22 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530906', 'tblTempUsageDetail_20' ) start [2025-02-22 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530906', 'tblTempUsageDetail_20' ) end [2025-02-22 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:32:21] Production.INFO: ==32307== Releasing lock... [2025-02-22 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:33:06 [end_date_ymd] => 2025-02-22 07:33:06 [RateCDR] => 1 ) [2025-02-22 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:33:06' and `end` < '2025-02-22 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:33:18] Production.INFO: count ==75 [2025-02-22 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:33:06 - End Time 2025-02-22 07:33:06 [2025-02-22 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530911', 'tblTempUsageDetail_20' ) start [2025-02-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530911', 'tblTempUsageDetail_20' ) end [2025-02-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530911', 'tblTempVendorCDR_20' ) start [2025-02-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530911', 'tblTempVendorCDR_20' ) end [2025-02-22 07:33:18] Production.INFO: ProcessCDR(1,14530911,1,1,2) [2025-02-22 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530911', 'tblTempUsageDetail_20' ) start [2025-02-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530911', 'tblTempUsageDetail_20' ) end [2025-02-22 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:33:21] Production.INFO: ==32379== Releasing lock... [2025-02-22 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:34:04 [end_date_ymd] => 2025-02-22 07:34:04 [RateCDR] => 1 ) [2025-02-22 07: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-02-22 04:34:04' and `end` < '2025-02-22 07: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-02-22 07:34:16] Production.INFO: count ==76 [2025-02-22 07:34:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:34:04 - End Time 2025-02-22 07:34:04 [2025-02-22 07:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530916', 'tblTempUsageDetail_20' ) start [2025-02-22 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530916', 'tblTempUsageDetail_20' ) end [2025-02-22 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530916', 'tblTempVendorCDR_20' ) start [2025-02-22 07:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530916', 'tblTempVendorCDR_20' ) end [2025-02-22 07:34:16] Production.INFO: ProcessCDR(1,14530916,1,1,2) [2025-02-22 07:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530916', 'tblTempUsageDetail_20' ) start [2025-02-22 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530916', 'tblTempUsageDetail_20' ) end [2025-02-22 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:34:20] Production.INFO: ==32499== Releasing lock... [2025-02-22 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:35:05 [end_date_ymd] => 2025-02-22 07:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:35:05' and `end` < '2025-02-22 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-02-22 07:35:17] Production.INFO: count ==76 [2025-02-22 07:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:35:05 - End Time 2025-02-22 07:35:05 [2025-02-22 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530921', 'tblTempUsageDetail_20' ) start [2025-02-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530921', 'tblTempUsageDetail_20' ) end [2025-02-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530921', 'tblTempVendorCDR_20' ) start [2025-02-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530921', 'tblTempVendorCDR_20' ) end [2025-02-22 07:35:17] Production.INFO: ProcessCDR(1,14530921,1,1,2) [2025-02-22 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530921', 'tblTempUsageDetail_20' ) start [2025-02-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530921', 'tblTempUsageDetail_20' ) end [2025-02-22 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:35:20] Production.INFO: ==32572== Releasing lock... [2025-02-22 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:36:05 [end_date_ymd] => 2025-02-22 07:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:36:05' and `end` < '2025-02-22 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-02-22 07:36:17] Production.INFO: count ==76 [2025-02-22 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:36:05 - End Time 2025-02-22 07:36:05 [2025-02-22 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530926', 'tblTempUsageDetail_20' ) start [2025-02-22 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530926', 'tblTempUsageDetail_20' ) end [2025-02-22 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530926', 'tblTempVendorCDR_20' ) start [2025-02-22 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530926', 'tblTempVendorCDR_20' ) end [2025-02-22 07:36:17] Production.INFO: ProcessCDR(1,14530926,1,1,2) [2025-02-22 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530926', 'tblTempUsageDetail_20' ) start [2025-02-22 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530926', 'tblTempUsageDetail_20' ) end [2025-02-22 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:36:21] Production.INFO: ==32642== Releasing lock... [2025-02-22 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:37:05 [end_date_ymd] => 2025-02-22 07:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:37:05' and `end` < '2025-02-22 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-02-22 07:37:17] Production.INFO: count ==76 [2025-02-22 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:37:05 - End Time 2025-02-22 07:37:05 [2025-02-22 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530931', 'tblTempUsageDetail_20' ) start [2025-02-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530931', 'tblTempUsageDetail_20' ) end [2025-02-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530931', 'tblTempVendorCDR_20' ) start [2025-02-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530931', 'tblTempVendorCDR_20' ) end [2025-02-22 07:37:17] Production.INFO: ProcessCDR(1,14530931,1,1,2) [2025-02-22 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530931', 'tblTempUsageDetail_20' ) start [2025-02-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530931', 'tblTempUsageDetail_20' ) end [2025-02-22 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:37:20] Production.INFO: ==32713== Releasing lock... [2025-02-22 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:38:05 [end_date_ymd] => 2025-02-22 07:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:38:05' and `end` < '2025-02-22 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-02-22 07:38:16] Production.INFO: count ==76 [2025-02-22 07:38:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:38:05 - End Time 2025-02-22 07:38:05 [2025-02-22 07:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530936', 'tblTempUsageDetail_20' ) start [2025-02-22 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530936', 'tblTempUsageDetail_20' ) end [2025-02-22 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530936', 'tblTempVendorCDR_20' ) start [2025-02-22 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530936', 'tblTempVendorCDR_20' ) end [2025-02-22 07:38:16] Production.INFO: ProcessCDR(1,14530936,1,1,2) [2025-02-22 07:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530936', 'tblTempUsageDetail_20' ) start [2025-02-22 07:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530936', 'tblTempUsageDetail_20' ) end [2025-02-22 07:38:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:38:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:38:20] Production.INFO: ==324== Releasing lock... [2025-02-22 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:39:05 [end_date_ymd] => 2025-02-22 07:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:39:05' and `end` < '2025-02-22 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-02-22 07:39:17] Production.INFO: count ==76 [2025-02-22 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:39:05 - End Time 2025-02-22 07:39:05 [2025-02-22 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530941', 'tblTempUsageDetail_20' ) start [2025-02-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530941', 'tblTempUsageDetail_20' ) end [2025-02-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530941', 'tblTempVendorCDR_20' ) start [2025-02-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530941', 'tblTempVendorCDR_20' ) end [2025-02-22 07:39:17] Production.INFO: ProcessCDR(1,14530941,1,1,2) [2025-02-22 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530941', 'tblTempUsageDetail_20' ) start [2025-02-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530941', 'tblTempUsageDetail_20' ) end [2025-02-22 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:39:20] Production.INFO: ==407== Releasing lock... [2025-02-22 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:40:06 [end_date_ymd] => 2025-02-22 07:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:40:06' and `end` < '2025-02-22 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-02-22 07:40:17] Production.INFO: count ==82 [2025-02-22 07:40:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:40:06 - End Time 2025-02-22 07:40:06 [2025-02-22 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530947', 'tblTempUsageDetail_20' ) start [2025-02-22 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530947', 'tblTempUsageDetail_20' ) end [2025-02-22 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530947', 'tblTempVendorCDR_20' ) start [2025-02-22 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530947', 'tblTempVendorCDR_20' ) end [2025-02-22 07:40:17] Production.INFO: ProcessCDR(1,14530947,1,1,2) [2025-02-22 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530947', 'tblTempUsageDetail_20' ) start [2025-02-22 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530947', 'tblTempUsageDetail_20' ) end [2025-02-22 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:40:21] Production.INFO: ==481== Releasing lock... [2025-02-22 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:41:05 [end_date_ymd] => 2025-02-22 07:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:41:05' and `end` < '2025-02-22 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-02-22 07:41:17] Production.INFO: count ==82 [2025-02-22 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:41:05 - End Time 2025-02-22 07:41:05 [2025-02-22 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530952', 'tblTempUsageDetail_20' ) start [2025-02-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530952', 'tblTempUsageDetail_20' ) end [2025-02-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530952', 'tblTempVendorCDR_20' ) start [2025-02-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530952', 'tblTempVendorCDR_20' ) end [2025-02-22 07:41:17] Production.INFO: ProcessCDR(1,14530952,1,1,2) [2025-02-22 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530952', 'tblTempUsageDetail_20' ) start [2025-02-22 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530952', 'tblTempUsageDetail_20' ) end [2025-02-22 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:41:20] Production.INFO: ==562== Releasing lock... [2025-02-22 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:42:05 [end_date_ymd] => 2025-02-22 07:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:42:05' and `end` < '2025-02-22 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-02-22 07:42:17] Production.INFO: count ==81 [2025-02-22 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:42:05 - End Time 2025-02-22 07:42:05 [2025-02-22 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530957', 'tblTempUsageDetail_20' ) start [2025-02-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530957', 'tblTempUsageDetail_20' ) end [2025-02-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530957', 'tblTempVendorCDR_20' ) start [2025-02-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530957', 'tblTempVendorCDR_20' ) end [2025-02-22 07:42:17] Production.INFO: ProcessCDR(1,14530957,1,1,2) [2025-02-22 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530957', 'tblTempUsageDetail_20' ) start [2025-02-22 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530957', 'tblTempUsageDetail_20' ) end [2025-02-22 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:42:20] Production.INFO: ==642== Releasing lock... [2025-02-22 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:43:05 [end_date_ymd] => 2025-02-22 07:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:43:05' and `end` < '2025-02-22 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-02-22 07:43:17] Production.INFO: count ==82 [2025-02-22 07:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:43:05 - End Time 2025-02-22 07:43:05 [2025-02-22 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530962', 'tblTempUsageDetail_20' ) start [2025-02-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530962', 'tblTempUsageDetail_20' ) end [2025-02-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530962', 'tblTempVendorCDR_20' ) start [2025-02-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530962', 'tblTempVendorCDR_20' ) end [2025-02-22 07:43:17] Production.INFO: ProcessCDR(1,14530962,1,1,2) [2025-02-22 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530962', 'tblTempUsageDetail_20' ) start [2025-02-22 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530962', 'tblTempUsageDetail_20' ) end [2025-02-22 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:43:22] Production.INFO: ==735== Releasing lock... [2025-02-22 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:44:05 [end_date_ymd] => 2025-02-22 07:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:44:05' and `end` < '2025-02-22 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-02-22 07:44:17] Production.INFO: count ==82 [2025-02-22 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:44:05 - End Time 2025-02-22 07:44:05 [2025-02-22 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530967', 'tblTempUsageDetail_20' ) start [2025-02-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530967', 'tblTempUsageDetail_20' ) end [2025-02-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530967', 'tblTempVendorCDR_20' ) start [2025-02-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530967', 'tblTempVendorCDR_20' ) end [2025-02-22 07:44:17] Production.INFO: ProcessCDR(1,14530967,1,1,2) [2025-02-22 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530967', 'tblTempUsageDetail_20' ) start [2025-02-22 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530967', 'tblTempUsageDetail_20' ) end [2025-02-22 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:44:20] Production.INFO: ==812== Releasing lock... [2025-02-22 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:45:05 [end_date_ymd] => 2025-02-22 07:45:05 [RateCDR] => 1 ) [2025-02-22 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:45:05' and `end` < '2025-02-22 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:45:17] Production.INFO: count ==82 [2025-02-22 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:45:05 - End Time 2025-02-22 07:45:05 [2025-02-22 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530972', 'tblTempUsageDetail_20' ) start [2025-02-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530972', 'tblTempUsageDetail_20' ) end [2025-02-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530972', 'tblTempVendorCDR_20' ) start [2025-02-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530972', 'tblTempVendorCDR_20' ) end [2025-02-22 07:45:17] Production.INFO: ProcessCDR(1,14530972,1,1,2) [2025-02-22 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530972', 'tblTempUsageDetail_20' ) start [2025-02-22 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530972', 'tblTempUsageDetail_20' ) end [2025-02-22 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:45:20] Production.INFO: ==882== Releasing lock... [2025-02-22 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:46:05 [end_date_ymd] => 2025-02-22 07:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:46:05' and `end` < '2025-02-22 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-02-22 07:46:17] Production.INFO: count ==82 [2025-02-22 07:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:46:05 - End Time 2025-02-22 07:46:05 [2025-02-22 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530977', 'tblTempUsageDetail_20' ) start [2025-02-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530977', 'tblTempUsageDetail_20' ) end [2025-02-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530977', 'tblTempVendorCDR_20' ) start [2025-02-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530977', 'tblTempVendorCDR_20' ) end [2025-02-22 07:46:17] Production.INFO: ProcessCDR(1,14530977,1,1,2) [2025-02-22 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530977', 'tblTempUsageDetail_20' ) start [2025-02-22 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530977', 'tblTempUsageDetail_20' ) end [2025-02-22 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:46:20] Production.INFO: ==952== Releasing lock... [2025-02-22 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:47:05 [end_date_ymd] => 2025-02-22 07:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:47:05' and `end` < '2025-02-22 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-02-22 07:47:17] Production.INFO: count ==82 [2025-02-22 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:47:05 - End Time 2025-02-22 07:47:05 [2025-02-22 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530982', 'tblTempUsageDetail_20' ) start [2025-02-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530982', 'tblTempUsageDetail_20' ) end [2025-02-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530982', 'tblTempVendorCDR_20' ) start [2025-02-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530982', 'tblTempVendorCDR_20' ) end [2025-02-22 07:47:17] Production.INFO: ProcessCDR(1,14530982,1,1,2) [2025-02-22 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530982', 'tblTempUsageDetail_20' ) start [2025-02-22 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530982', 'tblTempUsageDetail_20' ) end [2025-02-22 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:47:20] Production.INFO: ==1026== Releasing lock... [2025-02-22 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:48:05 [end_date_ymd] => 2025-02-22 07:48:05 [RateCDR] => 1 ) [2025-02-22 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:48:05' and `end` < '2025-02-22 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:48:17] Production.INFO: count ==82 [2025-02-22 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:48:05 - End Time 2025-02-22 07:48:05 [2025-02-22 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530987', 'tblTempUsageDetail_20' ) start [2025-02-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530987', 'tblTempUsageDetail_20' ) end [2025-02-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530987', 'tblTempVendorCDR_20' ) start [2025-02-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530987', 'tblTempVendorCDR_20' ) end [2025-02-22 07:48:17] Production.INFO: ProcessCDR(1,14530987,1,1,2) [2025-02-22 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530987', 'tblTempUsageDetail_20' ) start [2025-02-22 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530987', 'tblTempUsageDetail_20' ) end [2025-02-22 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:48:20] Production.INFO: ==1098== Releasing lock... [2025-02-22 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:49:05 [end_date_ymd] => 2025-02-22 07:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:49:05' and `end` < '2025-02-22 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-02-22 07:49:17] Production.INFO: count ==82 [2025-02-22 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:49:05 - End Time 2025-02-22 07:49:05 [2025-02-22 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530992', 'tblTempUsageDetail_20' ) start [2025-02-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530992', 'tblTempUsageDetail_20' ) end [2025-02-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530992', 'tblTempVendorCDR_20' ) start [2025-02-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530992', 'tblTempVendorCDR_20' ) end [2025-02-22 07:49:17] Production.INFO: ProcessCDR(1,14530992,1,1,2) [2025-02-22 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530992', 'tblTempUsageDetail_20' ) start [2025-02-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530992', 'tblTempUsageDetail_20' ) end [2025-02-22 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:49:20] Production.INFO: ==1176== Releasing lock... [2025-02-22 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:50:06 [end_date_ymd] => 2025-02-22 07:50:06 [RateCDR] => 1 ) [2025-02-22 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:50:06' and `end` < '2025-02-22 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:50:18] Production.INFO: count ==90 [2025-02-22 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 04:50:06 - End Time 2025-02-22 07:50:06 [2025-02-22 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530998', 'tblTempUsageDetail_20' ) start [2025-02-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14530998', 'tblTempUsageDetail_20' ) end [2025-02-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530998', 'tblTempVendorCDR_20' ) start [2025-02-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14530998', 'tblTempVendorCDR_20' ) end [2025-02-22 07:50:18] Production.INFO: ProcessCDR(1,14530998,1,1,2) [2025-02-22 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14530998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14530998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14530998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14530998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530998', 'tblTempUsageDetail_20' ) start [2025-02-22 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14530998', 'tblTempUsageDetail_20' ) end [2025-02-22 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:50:23] Production.INFO: ==1300== Releasing lock... [2025-02-22 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:51:05 [end_date_ymd] => 2025-02-22 07:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:51:05' and `end` < '2025-02-22 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-02-22 07:51:16] Production.INFO: count ==91 [2025-02-22 07:51:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:51:05 - End Time 2025-02-22 07:51:05 [2025-02-22 07:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531003', 'tblTempUsageDetail_20' ) start [2025-02-22 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531003', 'tblTempUsageDetail_20' ) end [2025-02-22 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531003', 'tblTempVendorCDR_20' ) start [2025-02-22 07:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531003', 'tblTempVendorCDR_20' ) end [2025-02-22 07:51:16] Production.INFO: ProcessCDR(1,14531003,1,1,2) [2025-02-22 07:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531003', 'tblTempUsageDetail_20' ) start [2025-02-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531003', 'tblTempUsageDetail_20' ) end [2025-02-22 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:51:21] Production.INFO: ==1373== Releasing lock... [2025-02-22 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:52:05 [end_date_ymd] => 2025-02-22 07:52:05 [RateCDR] => 1 ) [2025-02-22 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:52:05' and `end` < '2025-02-22 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:52:17] Production.INFO: count ==91 [2025-02-22 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:52:05 - End Time 2025-02-22 07:52:05 [2025-02-22 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531008', 'tblTempUsageDetail_20' ) start [2025-02-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531008', 'tblTempUsageDetail_20' ) end [2025-02-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531008', 'tblTempVendorCDR_20' ) start [2025-02-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531008', 'tblTempVendorCDR_20' ) end [2025-02-22 07:52:17] Production.INFO: ProcessCDR(1,14531008,1,1,2) [2025-02-22 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531008', 'tblTempUsageDetail_20' ) start [2025-02-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531008', 'tblTempUsageDetail_20' ) end [2025-02-22 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:52:20] Production.INFO: ==1444== Releasing lock... [2025-02-22 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:53:05 [end_date_ymd] => 2025-02-22 07:53:05 [RateCDR] => 1 ) [2025-02-22 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:53:05' and `end` < '2025-02-22 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:53:17] Production.INFO: count ==91 [2025-02-22 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:53:05 - End Time 2025-02-22 07:53:05 [2025-02-22 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531013', 'tblTempUsageDetail_20' ) start [2025-02-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531013', 'tblTempUsageDetail_20' ) end [2025-02-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531013', 'tblTempVendorCDR_20' ) start [2025-02-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531013', 'tblTempVendorCDR_20' ) end [2025-02-22 07:53:17] Production.INFO: ProcessCDR(1,14531013,1,1,2) [2025-02-22 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531013', 'tblTempUsageDetail_20' ) start [2025-02-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531013', 'tblTempUsageDetail_20' ) end [2025-02-22 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:53:20] Production.INFO: ==1550== Releasing lock... [2025-02-22 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:54:06 [end_date_ymd] => 2025-02-22 07:54:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:54:06' and `end` < '2025-02-22 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-02-22 07:54:17] Production.INFO: count ==91 [2025-02-22 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:54:06 - End Time 2025-02-22 07:54:06 [2025-02-22 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531018', 'tblTempUsageDetail_20' ) start [2025-02-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531018', 'tblTempUsageDetail_20' ) end [2025-02-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531018', 'tblTempVendorCDR_20' ) start [2025-02-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531018', 'tblTempVendorCDR_20' ) end [2025-02-22 07:54:17] Production.INFO: ProcessCDR(1,14531018,1,1,2) [2025-02-22 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531018', 'tblTempUsageDetail_20' ) start [2025-02-22 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531018', 'tblTempUsageDetail_20' ) end [2025-02-22 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:54:20] Production.INFO: ==1628== Releasing lock... [2025-02-22 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:55:05 [end_date_ymd] => 2025-02-22 07:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:55:05' and `end` < '2025-02-22 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-02-22 07:55:16] Production.INFO: count ==91 [2025-02-22 07:55:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:55:05 - End Time 2025-02-22 07:55:05 [2025-02-22 07:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531023', 'tblTempUsageDetail_20' ) start [2025-02-22 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531023', 'tblTempUsageDetail_20' ) end [2025-02-22 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531023', 'tblTempVendorCDR_20' ) start [2025-02-22 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531023', 'tblTempVendorCDR_20' ) end [2025-02-22 07:55:16] Production.INFO: ProcessCDR(1,14531023,1,1,2) [2025-02-22 07:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531023', 'tblTempUsageDetail_20' ) start [2025-02-22 07:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531023', 'tblTempUsageDetail_20' ) end [2025-02-22 07:55:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:55:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:55:19] Production.INFO: ==1699== Releasing lock... [2025-02-22 07:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:55:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:56:05 [end_date_ymd] => 2025-02-22 07:56:05 [RateCDR] => 1 ) [2025-02-22 07: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-02-22 04:56:05' and `end` < '2025-02-22 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-02-22 07:56:17] Production.INFO: count ==91 [2025-02-22 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:56:05 - End Time 2025-02-22 07:56:05 [2025-02-22 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531028', 'tblTempUsageDetail_20' ) start [2025-02-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531028', 'tblTempUsageDetail_20' ) end [2025-02-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531028', 'tblTempVendorCDR_20' ) start [2025-02-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531028', 'tblTempVendorCDR_20' ) end [2025-02-22 07:56:17] Production.INFO: ProcessCDR(1,14531028,1,1,2) [2025-02-22 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531028', 'tblTempUsageDetail_20' ) start [2025-02-22 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531028', 'tblTempUsageDetail_20' ) end [2025-02-22 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:56:20] Production.INFO: ==1773== Releasing lock... [2025-02-22 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:57:04 [end_date_ymd] => 2025-02-22 07:57:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:57:04' and `end` < '2025-02-22 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-02-22 07:57:16] Production.INFO: count ==91 [2025-02-22 07:57:16] Production.ERROR: pbx CDR StartTime 2025-02-22 04:57:04 - End Time 2025-02-22 07:57:04 [2025-02-22 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531033', 'tblTempUsageDetail_20' ) start [2025-02-22 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531033', 'tblTempUsageDetail_20' ) end [2025-02-22 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531033', 'tblTempVendorCDR_20' ) start [2025-02-22 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531033', 'tblTempVendorCDR_20' ) end [2025-02-22 07:57:16] Production.INFO: ProcessCDR(1,14531033,1,1,2) [2025-02-22 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531033', 'tblTempUsageDetail_20' ) start [2025-02-22 07:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531033', 'tblTempUsageDetail_20' ) end [2025-02-22 07:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:57:19] Production.INFO: ==1847== Releasing lock... [2025-02-22 07:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:57:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:58:05 [end_date_ymd] => 2025-02-22 07:58:05 [RateCDR] => 1 ) [2025-02-22 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 04:58:05' and `end` < '2025-02-22 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 07:58:17] Production.INFO: count ==91 [2025-02-22 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:58:05 - End Time 2025-02-22 07:58:05 [2025-02-22 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531038', 'tblTempUsageDetail_20' ) start [2025-02-22 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531038', 'tblTempUsageDetail_20' ) end [2025-02-22 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531038', 'tblTempVendorCDR_20' ) start [2025-02-22 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531038', 'tblTempVendorCDR_20' ) end [2025-02-22 07:58:17] Production.INFO: ProcessCDR(1,14531038,1,1,2) [2025-02-22 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531038', 'tblTempUsageDetail_20' ) start [2025-02-22 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531038', 'tblTempUsageDetail_20' ) end [2025-02-22 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:58:22] Production.INFO: ==1921== Releasing lock... [2025-02-22 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 04:59:05 [end_date_ymd] => 2025-02-22 07:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 04:59:05' and `end` < '2025-02-22 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-02-22 07:59:17] Production.INFO: count ==91 [2025-02-22 07:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 04:59:05 - End Time 2025-02-22 07:59:05 [2025-02-22 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531043', 'tblTempUsageDetail_20' ) start [2025-02-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531043', 'tblTempUsageDetail_20' ) end [2025-02-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531043', 'tblTempVendorCDR_20' ) start [2025-02-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531043', 'tblTempVendorCDR_20' ) end [2025-02-22 07:59:17] Production.INFO: ProcessCDR(1,14531043,1,1,2) [2025-02-22 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531043', 'tblTempUsageDetail_20' ) start [2025-02-22 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531043', 'tblTempUsageDetail_20' ) end [2025-02-22 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 07:59:20] Production.INFO: ==2008== Releasing lock... [2025-02-22 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 07:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:00:06 [end_date_ymd] => 2025-02-22 08:00:06 [RateCDR] => 1 ) [2025-02-22 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:00:06' and `end` < '2025-02-22 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:00:18] Production.INFO: count ==91 [2025-02-22 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 05:00:06 - End Time 2025-02-22 08:00:06 [2025-02-22 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531049', 'tblTempUsageDetail_20' ) start [2025-02-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531049', 'tblTempUsageDetail_20' ) end [2025-02-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531049', 'tblTempVendorCDR_20' ) start [2025-02-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531049', 'tblTempVendorCDR_20' ) end [2025-02-22 08:00:18] Production.INFO: ProcessCDR(1,14531049,1,1,2) [2025-02-22 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531049', 'tblTempUsageDetail_20' ) start [2025-02-22 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531049', 'tblTempUsageDetail_20' ) end [2025-02-22 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:00:21] Production.INFO: ==2100== Releasing lock... [2025-02-22 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:01:04 [end_date_ymd] => 2025-02-22 08:01:04 [RateCDR] => 1 ) [2025-02-22 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:01:04' and `end` < '2025-02-22 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:01:16] Production.INFO: count ==91 [2025-02-22 08:01:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:01:04 - End Time 2025-02-22 08:01:04 [2025-02-22 08:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531054', 'tblTempUsageDetail_20' ) start [2025-02-22 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531054', 'tblTempUsageDetail_20' ) end [2025-02-22 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531054', 'tblTempVendorCDR_20' ) start [2025-02-22 08:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531054', 'tblTempVendorCDR_20' ) end [2025-02-22 08:01:16] Production.INFO: ProcessCDR(1,14531054,1,1,2) [2025-02-22 08:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:01:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531054', 'tblTempUsageDetail_20' ) start [2025-02-22 08:01:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531054', 'tblTempUsageDetail_20' ) end [2025-02-22 08:01:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:01:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:01:19] Production.INFO: ==2201== Releasing lock... [2025-02-22 08:01:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:01:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:02:06 [end_date_ymd] => 2025-02-22 08:02:06 [RateCDR] => 1 ) [2025-02-22 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:02:06' and `end` < '2025-02-22 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:02:17] Production.INFO: count ==92 [2025-02-22 08:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:02:06 - End Time 2025-02-22 08:02:06 [2025-02-22 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531059', 'tblTempUsageDetail_20' ) start [2025-02-22 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531059', 'tblTempUsageDetail_20' ) end [2025-02-22 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531059', 'tblTempVendorCDR_20' ) start [2025-02-22 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531059', 'tblTempVendorCDR_20' ) end [2025-02-22 08:02:17] Production.INFO: ProcessCDR(1,14531059,1,1,2) [2025-02-22 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531059', 'tblTempUsageDetail_20' ) start [2025-02-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531059', 'tblTempUsageDetail_20' ) end [2025-02-22 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:02:21] Production.INFO: ==2289== Releasing lock... [2025-02-22 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-22 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:03:05 [end_date_ymd] => 2025-02-22 08:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:03:05' and `end` < '2025-02-22 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-02-22 08:03:17] Production.INFO: count ==95 [2025-02-22 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:03:05 - End Time 2025-02-22 08:03:05 [2025-02-22 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531064', 'tblTempUsageDetail_20' ) start [2025-02-22 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531064', 'tblTempUsageDetail_20' ) end [2025-02-22 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531064', 'tblTempVendorCDR_20' ) start [2025-02-22 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531064', 'tblTempVendorCDR_20' ) end [2025-02-22 08:03:17] Production.INFO: ProcessCDR(1,14531064,1,1,2) [2025-02-22 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531064', 'tblTempUsageDetail_20' ) start [2025-02-22 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531064', 'tblTempUsageDetail_20' ) end [2025-02-22 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:03:20] Production.INFO: ==2374== Releasing lock... [2025-02-22 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:04:05 [end_date_ymd] => 2025-02-22 08:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:04:05' and `end` < '2025-02-22 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-02-22 08:04:17] Production.INFO: count ==99 [2025-02-22 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:04:05 - End Time 2025-02-22 08:04:05 [2025-02-22 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531069', 'tblTempUsageDetail_20' ) start [2025-02-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531069', 'tblTempUsageDetail_20' ) end [2025-02-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531069', 'tblTempVendorCDR_20' ) start [2025-02-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531069', 'tblTempVendorCDR_20' ) end [2025-02-22 08:04:17] Production.INFO: ProcessCDR(1,14531069,1,1,2) [2025-02-22 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531069', 'tblTempUsageDetail_20' ) start [2025-02-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531069', 'tblTempUsageDetail_20' ) end [2025-02-22 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:04:21] Production.INFO: ==2463== Releasing lock... [2025-02-22 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-22 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:05:06 [end_date_ymd] => 2025-02-22 08:05:06 [RateCDR] => 1 ) [2025-02-22 08: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-02-22 05:05:06' and `end` < '2025-02-22 08: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-02-22 08:05:17] Production.INFO: count ==107 [2025-02-22 08:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:05:06 - End Time 2025-02-22 08:05:06 [2025-02-22 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531074', 'tblTempUsageDetail_20' ) start [2025-02-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531074', 'tblTempUsageDetail_20' ) end [2025-02-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531074', 'tblTempVendorCDR_20' ) start [2025-02-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531074', 'tblTempVendorCDR_20' ) end [2025-02-22 08:05:17] Production.INFO: ProcessCDR(1,14531074,1,1,2) [2025-02-22 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531074', 'tblTempUsageDetail_20' ) start [2025-02-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531074', 'tblTempUsageDetail_20' ) end [2025-02-22 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:05:21] Production.INFO: ==2584== Releasing lock... [2025-02-22 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-22 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:06:05 [end_date_ymd] => 2025-02-22 08:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:06:05' and `end` < '2025-02-22 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-02-22 08:06:17] Production.INFO: count ==107 [2025-02-22 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:06:05 - End Time 2025-02-22 08:06:05 [2025-02-22 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531079', 'tblTempUsageDetail_20' ) start [2025-02-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531079', 'tblTempUsageDetail_20' ) end [2025-02-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531079', 'tblTempVendorCDR_20' ) start [2025-02-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531079', 'tblTempVendorCDR_20' ) end [2025-02-22 08:06:17] Production.INFO: ProcessCDR(1,14531079,1,1,2) [2025-02-22 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531079', 'tblTempUsageDetail_20' ) start [2025-02-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531079', 'tblTempUsageDetail_20' ) end [2025-02-22 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:06:20] Production.INFO: ==2669== Releasing lock... [2025-02-22 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:06:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:07:05 [end_date_ymd] => 2025-02-22 08:07:05 [RateCDR] => 1 ) [2025-02-22 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:07:05' and `end` < '2025-02-22 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:07:17] Production.INFO: count ==114 [2025-02-22 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:07:05 - End Time 2025-02-22 08:07:05 [2025-02-22 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531084', 'tblTempUsageDetail_20' ) start [2025-02-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531084', 'tblTempUsageDetail_20' ) end [2025-02-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531084', 'tblTempVendorCDR_20' ) start [2025-02-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531084', 'tblTempVendorCDR_20' ) end [2025-02-22 08:07:17] Production.INFO: ProcessCDR(1,14531084,1,1,2) [2025-02-22 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531084', 'tblTempUsageDetail_20' ) start [2025-02-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531084', 'tblTempUsageDetail_20' ) end [2025-02-22 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:07:20] Production.INFO: ==2756== Releasing lock... [2025-02-22 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:07:20] Production.INFO: 29 MB #Memory Used# [2025-02-22 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:08:05 [end_date_ymd] => 2025-02-22 08:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:08:05' and `end` < '2025-02-22 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-02-22 08:08:17] Production.INFO: count ==124 [2025-02-22 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:08:05 - End Time 2025-02-22 08:08:05 [2025-02-22 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531089', 'tblTempUsageDetail_20' ) start [2025-02-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531089', 'tblTempUsageDetail_20' ) end [2025-02-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531089', 'tblTempVendorCDR_20' ) start [2025-02-22 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531089', 'tblTempVendorCDR_20' ) end [2025-02-22 08:08:17] Production.INFO: ProcessCDR(1,14531089,1,1,2) [2025-02-22 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531089', 'tblTempUsageDetail_20' ) start [2025-02-22 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531089', 'tblTempUsageDetail_20' ) end [2025-02-22 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:08:22] Production.INFO: ==2841== Releasing lock... [2025-02-22 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:09:05 [end_date_ymd] => 2025-02-22 08:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:09:05' and `end` < '2025-02-22 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-02-22 08:09:17] Production.INFO: count ==124 [2025-02-22 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:09:05 - End Time 2025-02-22 08:09:05 [2025-02-22 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531094', 'tblTempUsageDetail_20' ) start [2025-02-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531094', 'tblTempUsageDetail_20' ) end [2025-02-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531094', 'tblTempVendorCDR_20' ) start [2025-02-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531094', 'tblTempVendorCDR_20' ) end [2025-02-22 08:09:17] Production.INFO: ProcessCDR(1,14531094,1,1,2) [2025-02-22 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531094', 'tblTempUsageDetail_20' ) start [2025-02-22 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531094', 'tblTempUsageDetail_20' ) end [2025-02-22 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:09:20] Production.INFO: ==2928== Releasing lock... [2025-02-22 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:10:06 [end_date_ymd] => 2025-02-22 08:10:06 [RateCDR] => 1 ) [2025-02-22 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:10:06' and `end` < '2025-02-22 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:10:18] Production.INFO: count ==130 [2025-02-22 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 05:10:06 - End Time 2025-02-22 08:10:06 [2025-02-22 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531100', 'tblTempUsageDetail_20' ) start [2025-02-22 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531100', 'tblTempUsageDetail_20' ) end [2025-02-22 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531100', 'tblTempVendorCDR_20' ) start [2025-02-22 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531100', 'tblTempVendorCDR_20' ) end [2025-02-22 08:10:18] Production.INFO: ProcessCDR(1,14531100,1,1,2) [2025-02-22 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531100', 'tblTempUsageDetail_20' ) start [2025-02-22 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531100', 'tblTempUsageDetail_20' ) end [2025-02-22 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:10:21] Production.INFO: ==3017== Releasing lock... [2025-02-22 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-22 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:11:05 [end_date_ymd] => 2025-02-22 08:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:11:05' and `end` < '2025-02-22 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-02-22 08:11:17] Production.INFO: count ==144 [2025-02-22 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:11:05 - End Time 2025-02-22 08:11:05 [2025-02-22 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531105', 'tblTempUsageDetail_20' ) start [2025-02-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531105', 'tblTempUsageDetail_20' ) end [2025-02-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531105', 'tblTempVendorCDR_20' ) start [2025-02-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531105', 'tblTempVendorCDR_20' ) end [2025-02-22 08:11:17] Production.INFO: ProcessCDR(1,14531105,1,1,2) [2025-02-22 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531105', 'tblTempUsageDetail_20' ) start [2025-02-22 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531105', 'tblTempUsageDetail_20' ) end [2025-02-22 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:11:20] Production.INFO: ==3113== Releasing lock... [2025-02-22 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:12:05 [end_date_ymd] => 2025-02-22 08:12:05 [RateCDR] => 1 ) [2025-02-22 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:12:05' and `end` < '2025-02-22 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:12:17] Production.INFO: count ==145 [2025-02-22 08:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:12:05 - End Time 2025-02-22 08:12:05 [2025-02-22 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531110', 'tblTempUsageDetail_20' ) start [2025-02-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531110', 'tblTempUsageDetail_20' ) end [2025-02-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531110', 'tblTempVendorCDR_20' ) start [2025-02-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531110', 'tblTempVendorCDR_20' ) end [2025-02-22 08:12:17] Production.INFO: ProcessCDR(1,14531110,1,1,2) [2025-02-22 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531110', 'tblTempUsageDetail_20' ) start [2025-02-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531110', 'tblTempUsageDetail_20' ) end [2025-02-22 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:12:21] Production.INFO: ==3205== Releasing lock... [2025-02-22 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:13:05 [end_date_ymd] => 2025-02-22 08:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:13:05' and `end` < '2025-02-22 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-02-22 08:13:16] Production.INFO: count ==147 [2025-02-22 08:13:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:13:05 - End Time 2025-02-22 08:13:05 [2025-02-22 08:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531115', 'tblTempUsageDetail_20' ) start [2025-02-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531115', 'tblTempUsageDetail_20' ) end [2025-02-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531115', 'tblTempVendorCDR_20' ) start [2025-02-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531115', 'tblTempVendorCDR_20' ) end [2025-02-22 08:13:17] Production.INFO: ProcessCDR(1,14531115,1,1,2) [2025-02-22 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531115', 'tblTempUsageDetail_20' ) start [2025-02-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531115', 'tblTempUsageDetail_20' ) end [2025-02-22 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:13:21] Production.INFO: ==3292== Releasing lock... [2025-02-22 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:14:05 [end_date_ymd] => 2025-02-22 08:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:14:05' and `end` < '2025-02-22 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-02-22 08:14:16] Production.INFO: count ==147 [2025-02-22 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:14:05 - End Time 2025-02-22 08:14:05 [2025-02-22 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531120', 'tblTempUsageDetail_20' ) start [2025-02-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531120', 'tblTempUsageDetail_20' ) end [2025-02-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531120', 'tblTempVendorCDR_20' ) start [2025-02-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531120', 'tblTempVendorCDR_20' ) end [2025-02-22 08:14:17] Production.INFO: ProcessCDR(1,14531120,1,1,2) [2025-02-22 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531120', 'tblTempUsageDetail_20' ) start [2025-02-22 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531120', 'tblTempUsageDetail_20' ) end [2025-02-22 08:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:14:20] Production.INFO: ==3377== Releasing lock... [2025-02-22 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:14:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:15:05 [end_date_ymd] => 2025-02-22 08:15:05 [RateCDR] => 1 ) [2025-02-22 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:15:05' and `end` < '2025-02-22 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:15:17] Production.INFO: count ==147 [2025-02-22 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:15:05 - End Time 2025-02-22 08:15:05 [2025-02-22 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531125', 'tblTempUsageDetail_20' ) start [2025-02-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531125', 'tblTempUsageDetail_20' ) end [2025-02-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531125', 'tblTempVendorCDR_20' ) start [2025-02-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531125', 'tblTempVendorCDR_20' ) end [2025-02-22 08:15:17] Production.INFO: ProcessCDR(1,14531125,1,1,2) [2025-02-22 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531125', 'tblTempUsageDetail_20' ) start [2025-02-22 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531125', 'tblTempUsageDetail_20' ) end [2025-02-22 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:15:20] Production.INFO: ==3468== Releasing lock... [2025-02-22 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:16:05 [end_date_ymd] => 2025-02-22 08:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:16:05' and `end` < '2025-02-22 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-02-22 08:16:16] Production.INFO: count ==147 [2025-02-22 08:16:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:16:05 - End Time 2025-02-22 08:16:05 [2025-02-22 08:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531130', 'tblTempUsageDetail_20' ) start [2025-02-22 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531130', 'tblTempUsageDetail_20' ) end [2025-02-22 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531130', 'tblTempVendorCDR_20' ) start [2025-02-22 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531130', 'tblTempVendorCDR_20' ) end [2025-02-22 08:16:16] Production.INFO: ProcessCDR(1,14531130,1,1,2) [2025-02-22 08:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531130', 'tblTempUsageDetail_20' ) start [2025-02-22 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531130', 'tblTempUsageDetail_20' ) end [2025-02-22 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:16:20] Production.INFO: ==3560== Releasing lock... [2025-02-22 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:17:05 [end_date_ymd] => 2025-02-22 08:17:05 [RateCDR] => 1 ) [2025-02-22 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:17:05' and `end` < '2025-02-22 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:17:17] Production.INFO: count ==147 [2025-02-22 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:17:05 - End Time 2025-02-22 08:17:05 [2025-02-22 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531135', 'tblTempUsageDetail_20' ) start [2025-02-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531135', 'tblTempUsageDetail_20' ) end [2025-02-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531135', 'tblTempVendorCDR_20' ) start [2025-02-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531135', 'tblTempVendorCDR_20' ) end [2025-02-22 08:17:17] Production.INFO: ProcessCDR(1,14531135,1,1,2) [2025-02-22 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531135', 'tblTempUsageDetail_20' ) start [2025-02-22 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531135', 'tblTempUsageDetail_20' ) end [2025-02-22 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:17:20] Production.INFO: ==3651== Releasing lock... [2025-02-22 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:18:05 [end_date_ymd] => 2025-02-22 08:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:18:05' and `end` < '2025-02-22 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-02-22 08:18:16] Production.INFO: count ==148 [2025-02-22 08:18:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:18:05 - End Time 2025-02-22 08:18:05 [2025-02-22 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531140', 'tblTempUsageDetail_20' ) start [2025-02-22 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531140', 'tblTempUsageDetail_20' ) end [2025-02-22 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531140', 'tblTempVendorCDR_20' ) start [2025-02-22 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531140', 'tblTempVendorCDR_20' ) end [2025-02-22 08:18:16] Production.INFO: ProcessCDR(1,14531140,1,1,2) [2025-02-22 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531140', 'tblTempUsageDetail_20' ) start [2025-02-22 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531140', 'tblTempUsageDetail_20' ) end [2025-02-22 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:18:20] Production.INFO: ==3748== Releasing lock... [2025-02-22 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:19:05 [end_date_ymd] => 2025-02-22 08:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:19:05' and `end` < '2025-02-22 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-02-22 08:19:16] Production.INFO: count ==153 [2025-02-22 08:19:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:19:05 - End Time 2025-02-22 08:19:05 [2025-02-22 08:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531145', 'tblTempUsageDetail_20' ) start [2025-02-22 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531145', 'tblTempUsageDetail_20' ) end [2025-02-22 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531145', 'tblTempVendorCDR_20' ) start [2025-02-22 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531145', 'tblTempVendorCDR_20' ) end [2025-02-22 08:19:16] Production.INFO: ProcessCDR(1,14531145,1,1,2) [2025-02-22 08:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531145', 'tblTempUsageDetail_20' ) start [2025-02-22 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531145', 'tblTempUsageDetail_20' ) end [2025-02-22 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:19:20] Production.INFO: ==3839== Releasing lock... [2025-02-22 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:20:06 [end_date_ymd] => 2025-02-22 08:20:06 [RateCDR] => 1 ) [2025-02-22 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:20:06' and `end` < '2025-02-22 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:20:17] Production.INFO: count ==168 [2025-02-22 08:20:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:20:06 - End Time 2025-02-22 08:20:06 [2025-02-22 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531151', 'tblTempUsageDetail_20' ) start [2025-02-22 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531151', 'tblTempUsageDetail_20' ) end [2025-02-22 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531151', 'tblTempVendorCDR_20' ) start [2025-02-22 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531151', 'tblTempVendorCDR_20' ) end [2025-02-22 08:20:17] Production.INFO: ProcessCDR(1,14531151,1,1,2) [2025-02-22 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531151', 'tblTempUsageDetail_20' ) start [2025-02-22 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531151', 'tblTempUsageDetail_20' ) end [2025-02-22 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:20:21] Production.INFO: ==3928== Releasing lock... [2025-02-22 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:21:05 [end_date_ymd] => 2025-02-22 08:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:21:05' and `end` < '2025-02-22 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-02-22 08:21:17] Production.INFO: count ==179 [2025-02-22 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:21:05 - End Time 2025-02-22 08:21:05 [2025-02-22 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531156', 'tblTempUsageDetail_20' ) start [2025-02-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531156', 'tblTempUsageDetail_20' ) end [2025-02-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531156', 'tblTempVendorCDR_20' ) start [2025-02-22 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531156', 'tblTempVendorCDR_20' ) end [2025-02-22 08:21:17] Production.INFO: ProcessCDR(1,14531156,1,1,2) [2025-02-22 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531156', 'tblTempUsageDetail_20' ) start [2025-02-22 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531156', 'tblTempUsageDetail_20' ) end [2025-02-22 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:21:20] Production.INFO: ==4055== Releasing lock... [2025-02-22 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:22:06 [end_date_ymd] => 2025-02-22 08:22:06 [RateCDR] => 1 ) [2025-02-22 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:22:06' and `end` < '2025-02-22 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:22:17] Production.INFO: count ==181 [2025-02-22 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:22:06 - End Time 2025-02-22 08:22:06 [2025-02-22 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531161', 'tblTempUsageDetail_20' ) start [2025-02-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531161', 'tblTempUsageDetail_20' ) end [2025-02-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531161', 'tblTempVendorCDR_20' ) start [2025-02-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531161', 'tblTempVendorCDR_20' ) end [2025-02-22 08:22:18] Production.INFO: ProcessCDR(1,14531161,1,1,2) [2025-02-22 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531161', 'tblTempUsageDetail_20' ) start [2025-02-22 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531161', 'tblTempUsageDetail_20' ) end [2025-02-22 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:22:22] Production.INFO: ==4146== Releasing lock... [2025-02-22 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:23:05 [end_date_ymd] => 2025-02-22 08:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:23:05' and `end` < '2025-02-22 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-02-22 08:23:17] Production.INFO: count ==181 [2025-02-22 08:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:23:05 - End Time 2025-02-22 08:23:05 [2025-02-22 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531166', 'tblTempUsageDetail_20' ) start [2025-02-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531166', 'tblTempUsageDetail_20' ) end [2025-02-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531166', 'tblTempVendorCDR_20' ) start [2025-02-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531166', 'tblTempVendorCDR_20' ) end [2025-02-22 08:23:17] Production.INFO: ProcessCDR(1,14531166,1,1,2) [2025-02-22 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531166', 'tblTempUsageDetail_20' ) start [2025-02-22 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531166', 'tblTempUsageDetail_20' ) end [2025-02-22 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:23:20] Production.INFO: ==4235== Releasing lock... [2025-02-22 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:24:05 [end_date_ymd] => 2025-02-22 08:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:24:05' and `end` < '2025-02-22 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-02-22 08:24:17] Production.INFO: count ==189 [2025-02-22 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:24:05 - End Time 2025-02-22 08:24:05 [2025-02-22 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531171', 'tblTempUsageDetail_20' ) start [2025-02-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531171', 'tblTempUsageDetail_20' ) end [2025-02-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531171', 'tblTempVendorCDR_20' ) start [2025-02-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531171', 'tblTempVendorCDR_20' ) end [2025-02-22 08:24:17] Production.INFO: ProcessCDR(1,14531171,1,1,2) [2025-02-22 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531171', 'tblTempUsageDetail_20' ) start [2025-02-22 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531171', 'tblTempUsageDetail_20' ) end [2025-02-22 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:24:21] Production.INFO: ==4323== Releasing lock... [2025-02-22 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:25:05 [end_date_ymd] => 2025-02-22 08:25:05 [RateCDR] => 1 ) [2025-02-22 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:25:05' and `end` < '2025-02-22 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:25:17] Production.INFO: count ==191 [2025-02-22 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:25:05 - End Time 2025-02-22 08:25:05 [2025-02-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531176', 'tblTempUsageDetail_20' ) start [2025-02-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531176', 'tblTempUsageDetail_20' ) end [2025-02-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531176', 'tblTempVendorCDR_20' ) start [2025-02-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531176', 'tblTempVendorCDR_20' ) end [2025-02-22 08:25:17] Production.INFO: ProcessCDR(1,14531176,1,1,2) [2025-02-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531176', 'tblTempUsageDetail_20' ) start [2025-02-22 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531176', 'tblTempUsageDetail_20' ) end [2025-02-22 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:25:20] Production.INFO: ==4405== Releasing lock... [2025-02-22 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-22 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:26:05 [end_date_ymd] => 2025-02-22 08:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:26:05' and `end` < '2025-02-22 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-02-22 08:26:17] Production.INFO: count ==194 [2025-02-22 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:26:05 - End Time 2025-02-22 08:26:05 [2025-02-22 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531181', 'tblTempUsageDetail_20' ) start [2025-02-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531181', 'tblTempUsageDetail_20' ) end [2025-02-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531181', 'tblTempVendorCDR_20' ) start [2025-02-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531181', 'tblTempVendorCDR_20' ) end [2025-02-22 08:26:17] Production.INFO: ProcessCDR(1,14531181,1,1,2) [2025-02-22 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531181', 'tblTempUsageDetail_20' ) start [2025-02-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531181', 'tblTempUsageDetail_20' ) end [2025-02-22 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:26:20] Production.INFO: ==4495== Releasing lock... [2025-02-22 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:26:20] Production.INFO: 30 MB #Memory Used# [2025-02-22 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:27:05 [end_date_ymd] => 2025-02-22 08:27:05 [RateCDR] => 1 ) [2025-02-22 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:27:05' and `end` < '2025-02-22 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:27:17] Production.INFO: count ==200 [2025-02-22 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:27:05 - End Time 2025-02-22 08:27:05 [2025-02-22 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531186', 'tblTempUsageDetail_20' ) start [2025-02-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531186', 'tblTempUsageDetail_20' ) end [2025-02-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531186', 'tblTempVendorCDR_20' ) start [2025-02-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531186', 'tblTempVendorCDR_20' ) end [2025-02-22 08:27:17] Production.INFO: ProcessCDR(1,14531186,1,1,2) [2025-02-22 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531186', 'tblTempUsageDetail_20' ) start [2025-02-22 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531186', 'tblTempUsageDetail_20' ) end [2025-02-22 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:27:21] Production.INFO: ==4590== Releasing lock... [2025-02-22 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:27:21] Production.INFO: 30 MB #Memory Used# [2025-02-22 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:28:05 [end_date_ymd] => 2025-02-22 08:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:28:05' and `end` < '2025-02-22 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-02-22 08:28:16] Production.INFO: count ==203 [2025-02-22 08:28:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:28:05 - End Time 2025-02-22 08:28:05 [2025-02-22 08:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531191', 'tblTempUsageDetail_20' ) start [2025-02-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531191', 'tblTempUsageDetail_20' ) end [2025-02-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531191', 'tblTempVendorCDR_20' ) start [2025-02-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531191', 'tblTempVendorCDR_20' ) end [2025-02-22 08:28:16] Production.INFO: ProcessCDR(1,14531191,1,1,2) [2025-02-22 08:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531191', 'tblTempUsageDetail_20' ) start [2025-02-22 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531191', 'tblTempUsageDetail_20' ) end [2025-02-22 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:28:21] Production.INFO: ==4678== Releasing lock... [2025-02-22 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:29:04 [end_date_ymd] => 2025-02-22 08:29:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:29:04' and `end` < '2025-02-22 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:29:16] Production.INFO: count ==203 [2025-02-22 08:29:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:29:04 - End Time 2025-02-22 08:29:04 [2025-02-22 08:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531196', 'tblTempUsageDetail_20' ) start [2025-02-22 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531196', 'tblTempUsageDetail_20' ) end [2025-02-22 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531196', 'tblTempVendorCDR_20' ) start [2025-02-22 08:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531196', 'tblTempVendorCDR_20' ) end [2025-02-22 08:29:16] Production.INFO: ProcessCDR(1,14531196,1,1,2) [2025-02-22 08:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531196', 'tblTempUsageDetail_20' ) start [2025-02-22 08:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531196', 'tblTempUsageDetail_20' ) end [2025-02-22 08:29:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:29:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:29:19] Production.INFO: ==4765== Releasing lock... [2025-02-22 08:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:29:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:30:05 [end_date_ymd] => 2025-02-22 08:30:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:30:05' and `end` < '2025-02-22 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-02-22 08:30:17] Production.INFO: count ==210 [2025-02-22 08:30:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:30:05 - End Time 2025-02-22 08:30:05 [2025-02-22 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531201', 'tblTempUsageDetail_20' ) start [2025-02-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531201', 'tblTempUsageDetail_20' ) end [2025-02-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531201', 'tblTempVendorCDR_20' ) start [2025-02-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531201', 'tblTempVendorCDR_20' ) end [2025-02-22 08:30:17] Production.INFO: ProcessCDR(1,14531201,1,1,2) [2025-02-22 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531201', 'tblTempUsageDetail_20' ) start [2025-02-22 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531201', 'tblTempUsageDetail_20' ) end [2025-02-22 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:30:22] Production.INFO: ==4857== Releasing lock... [2025-02-22 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:31:06 [end_date_ymd] => 2025-02-22 08:31:06 [RateCDR] => 1 ) [2025-02-22 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:31:06' and `end` < '2025-02-22 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:31:18] Production.INFO: count ==221 [2025-02-22 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 05:31:06 - End Time 2025-02-22 08:31:06 [2025-02-22 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531207', 'tblTempUsageDetail_20' ) start [2025-02-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531207', 'tblTempUsageDetail_20' ) end [2025-02-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531207', 'tblTempVendorCDR_20' ) start [2025-02-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531207', 'tblTempVendorCDR_20' ) end [2025-02-22 08:31:18] Production.INFO: ProcessCDR(1,14531207,1,1,2) [2025-02-22 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531207', 'tblTempUsageDetail_20' ) start [2025-02-22 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531207', 'tblTempUsageDetail_20' ) end [2025-02-22 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:31:21] Production.INFO: ==4945== Releasing lock... [2025-02-22 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:32:05 [end_date_ymd] => 2025-02-22 08:32:05 [RateCDR] => 1 ) [2025-02-22 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:32:05' and `end` < '2025-02-22 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:32:17] Production.INFO: count ==221 [2025-02-22 08:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:32:05 - End Time 2025-02-22 08:32:05 [2025-02-22 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531212', 'tblTempUsageDetail_20' ) start [2025-02-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531212', 'tblTempUsageDetail_20' ) end [2025-02-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531212', 'tblTempVendorCDR_20' ) start [2025-02-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531212', 'tblTempVendorCDR_20' ) end [2025-02-22 08:32:17] Production.INFO: ProcessCDR(1,14531212,1,1,2) [2025-02-22 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531212', 'tblTempUsageDetail_20' ) start [2025-02-22 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531212', 'tblTempUsageDetail_20' ) end [2025-02-22 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:32:20] Production.INFO: ==5038== Releasing lock... [2025-02-22 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:32:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:33:06 [end_date_ymd] => 2025-02-22 08:33:06 [RateCDR] => 1 ) [2025-02-22 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:33:06' and `end` < '2025-02-22 08:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:33:18] Production.INFO: count ==221 [2025-02-22 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 05:33:06 - End Time 2025-02-22 08:33:06 [2025-02-22 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531217', 'tblTempUsageDetail_20' ) start [2025-02-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531217', 'tblTempUsageDetail_20' ) end [2025-02-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531217', 'tblTempVendorCDR_20' ) start [2025-02-22 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531217', 'tblTempVendorCDR_20' ) end [2025-02-22 08:33:18] Production.INFO: ProcessCDR(1,14531217,1,1,2) [2025-02-22 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531217', 'tblTempUsageDetail_20' ) start [2025-02-22 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531217', 'tblTempUsageDetail_20' ) end [2025-02-22 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:33:21] Production.INFO: ==5126== Releasing lock... [2025-02-22 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:34:05 [end_date_ymd] => 2025-02-22 08:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:34:05' and `end` < '2025-02-22 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-02-22 08:34:17] Production.INFO: count ==221 [2025-02-22 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:34:05 - End Time 2025-02-22 08:34:05 [2025-02-22 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531222', 'tblTempUsageDetail_20' ) start [2025-02-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531222', 'tblTempUsageDetail_20' ) end [2025-02-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531222', 'tblTempVendorCDR_20' ) start [2025-02-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531222', 'tblTempVendorCDR_20' ) end [2025-02-22 08:34:17] Production.INFO: ProcessCDR(1,14531222,1,1,2) [2025-02-22 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531222', 'tblTempUsageDetail_20' ) start [2025-02-22 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531222', 'tblTempUsageDetail_20' ) end [2025-02-22 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:34:20] Production.INFO: ==5214== Releasing lock... [2025-02-22 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-22 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:35:05 [end_date_ymd] => 2025-02-22 08:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:35:05' and `end` < '2025-02-22 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-02-22 08:35:17] Production.INFO: count ==226 [2025-02-22 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:35:05 - End Time 2025-02-22 08:35:05 [2025-02-22 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531227', 'tblTempUsageDetail_20' ) start [2025-02-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531227', 'tblTempUsageDetail_20' ) end [2025-02-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531227', 'tblTempVendorCDR_20' ) start [2025-02-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531227', 'tblTempVendorCDR_20' ) end [2025-02-22 08:35:17] Production.INFO: ProcessCDR(1,14531227,1,1,2) [2025-02-22 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531227', 'tblTempUsageDetail_20' ) start [2025-02-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531227', 'tblTempUsageDetail_20' ) end [2025-02-22 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:35:20] Production.INFO: ==5304== Releasing lock... [2025-02-22 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:36:05 [end_date_ymd] => 2025-02-22 08:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:36:05' and `end` < '2025-02-22 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-02-22 08:36:17] Production.INFO: count ==232 [2025-02-22 08:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:36:05 - End Time 2025-02-22 08:36:05 [2025-02-22 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531232', 'tblTempUsageDetail_20' ) start [2025-02-22 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531232', 'tblTempUsageDetail_20' ) end [2025-02-22 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531232', 'tblTempVendorCDR_20' ) start [2025-02-22 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531232', 'tblTempVendorCDR_20' ) end [2025-02-22 08:36:17] Production.INFO: ProcessCDR(1,14531232,1,1,2) [2025-02-22 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531232', 'tblTempUsageDetail_20' ) start [2025-02-22 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531232', 'tblTempUsageDetail_20' ) end [2025-02-22 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:36:20] Production.INFO: ==5427== Releasing lock... [2025-02-22 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:36:20] Production.INFO: 30 MB #Memory Used# [2025-02-22 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:37:05 [end_date_ymd] => 2025-02-22 08:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:37:05' and `end` < '2025-02-22 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-02-22 08:37:17] Production.INFO: count ==233 [2025-02-22 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:37:05 - End Time 2025-02-22 08:37:05 [2025-02-22 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531237', 'tblTempUsageDetail_20' ) start [2025-02-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531237', 'tblTempUsageDetail_20' ) end [2025-02-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531237', 'tblTempVendorCDR_20' ) start [2025-02-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531237', 'tblTempVendorCDR_20' ) end [2025-02-22 08:37:17] Production.INFO: ProcessCDR(1,14531237,1,1,2) [2025-02-22 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531237', 'tblTempUsageDetail_20' ) start [2025-02-22 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531237', 'tblTempUsageDetail_20' ) end [2025-02-22 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:37:21] Production.INFO: ==5513== Releasing lock... [2025-02-22 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:38:04 [end_date_ymd] => 2025-02-22 08:38:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:38:04' and `end` < '2025-02-22 08: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-02-22 08:38:16] Production.INFO: count ==234 [2025-02-22 08:38:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:38:04 - End Time 2025-02-22 08:38:04 [2025-02-22 08:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531242', 'tblTempUsageDetail_20' ) start [2025-02-22 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531242', 'tblTempUsageDetail_20' ) end [2025-02-22 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531242', 'tblTempVendorCDR_20' ) start [2025-02-22 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531242', 'tblTempVendorCDR_20' ) end [2025-02-22 08:38:16] Production.INFO: ProcessCDR(1,14531242,1,1,2) [2025-02-22 08:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531242', 'tblTempUsageDetail_20' ) start [2025-02-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531242', 'tblTempUsageDetail_20' ) end [2025-02-22 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:38:21] Production.INFO: ==5602== Releasing lock... [2025-02-22 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:39:05 [end_date_ymd] => 2025-02-22 08:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:39:05' and `end` < '2025-02-22 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-02-22 08:39:17] Production.INFO: count ==235 [2025-02-22 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:39:05 - End Time 2025-02-22 08:39:05 [2025-02-22 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531247', 'tblTempUsageDetail_20' ) start [2025-02-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531247', 'tblTempUsageDetail_20' ) end [2025-02-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531247', 'tblTempVendorCDR_20' ) start [2025-02-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531247', 'tblTempVendorCDR_20' ) end [2025-02-22 08:39:17] Production.INFO: ProcessCDR(1,14531247,1,1,2) [2025-02-22 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531247', 'tblTempUsageDetail_20' ) start [2025-02-22 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531247', 'tblTempUsageDetail_20' ) end [2025-02-22 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:39:21] Production.INFO: ==5690== Releasing lock... [2025-02-22 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:40:05 [end_date_ymd] => 2025-02-22 08:40:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:40:05' and `end` < '2025-02-22 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-02-22 08:40:17] Production.INFO: count ==243 [2025-02-22 08:40:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:40:05 - End Time 2025-02-22 08:40:05 [2025-02-22 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531253', 'tblTempUsageDetail_20' ) start [2025-02-22 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531253', 'tblTempUsageDetail_20' ) end [2025-02-22 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531253', 'tblTempVendorCDR_20' ) start [2025-02-22 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531253', 'tblTempVendorCDR_20' ) end [2025-02-22 08:40:17] Production.INFO: ProcessCDR(1,14531253,1,1,2) [2025-02-22 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531253', 'tblTempUsageDetail_20' ) start [2025-02-22 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531253', 'tblTempUsageDetail_20' ) end [2025-02-22 08:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:40:20] Production.INFO: ==5782== Releasing lock... [2025-02-22 08:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:40:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:41:05 [end_date_ymd] => 2025-02-22 08:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:41:05' and `end` < '2025-02-22 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-02-22 08:41:17] Production.INFO: count ==261 [2025-02-22 08:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:41:05 - End Time 2025-02-22 08:41:05 [2025-02-22 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531258', 'tblTempUsageDetail_20' ) start [2025-02-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531258', 'tblTempUsageDetail_20' ) end [2025-02-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531258', 'tblTempVendorCDR_20' ) start [2025-02-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531258', 'tblTempVendorCDR_20' ) end [2025-02-22 08:41:17] Production.INFO: ProcessCDR(1,14531258,1,1,2) [2025-02-22 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531258', 'tblTempUsageDetail_20' ) start [2025-02-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531258', 'tblTempUsageDetail_20' ) end [2025-02-22 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:41:20] Production.INFO: ==5877== Releasing lock... [2025-02-22 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:42:05 [end_date_ymd] => 2025-02-22 08:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:42:05' and `end` < '2025-02-22 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-02-22 08:42:17] Production.INFO: count ==272 [2025-02-22 08:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:42:05 - End Time 2025-02-22 08:42:05 [2025-02-22 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531263', 'tblTempUsageDetail_20' ) start [2025-02-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531263', 'tblTempUsageDetail_20' ) end [2025-02-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531263', 'tblTempVendorCDR_20' ) start [2025-02-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531263', 'tblTempVendorCDR_20' ) end [2025-02-22 08:42:17] Production.INFO: ProcessCDR(1,14531263,1,1,2) [2025-02-22 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531263', 'tblTempUsageDetail_20' ) start [2025-02-22 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531263', 'tblTempUsageDetail_20' ) end [2025-02-22 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:42:22] Production.INFO: ==5951== Releasing lock... [2025-02-22 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:43:05 [end_date_ymd] => 2025-02-22 08:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:43:05' and `end` < '2025-02-22 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-02-22 08:43:17] Production.INFO: count ==276 [2025-02-22 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:43:05 - End Time 2025-02-22 08:43:05 [2025-02-22 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531268', 'tblTempUsageDetail_20' ) start [2025-02-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531268', 'tblTempUsageDetail_20' ) end [2025-02-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531268', 'tblTempVendorCDR_20' ) start [2025-02-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531268', 'tblTempVendorCDR_20' ) end [2025-02-22 08:43:17] Production.INFO: ProcessCDR(1,14531268,1,1,2) [2025-02-22 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531268', 'tblTempUsageDetail_20' ) start [2025-02-22 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531268', 'tblTempUsageDetail_20' ) end [2025-02-22 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:43:20] Production.INFO: ==6027== Releasing lock... [2025-02-22 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-22 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:44:05 [end_date_ymd] => 2025-02-22 08:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:44:05' and `end` < '2025-02-22 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-02-22 08:44:17] Production.INFO: count ==274 [2025-02-22 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:44:05 - End Time 2025-02-22 08:44:05 [2025-02-22 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531273', 'tblTempUsageDetail_20' ) start [2025-02-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531273', 'tblTempUsageDetail_20' ) end [2025-02-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531273', 'tblTempVendorCDR_20' ) start [2025-02-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531273', 'tblTempVendorCDR_20' ) end [2025-02-22 08:44:17] Production.INFO: ProcessCDR(1,14531273,1,1,2) [2025-02-22 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531273', 'tblTempUsageDetail_20' ) start [2025-02-22 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531273', 'tblTempUsageDetail_20' ) end [2025-02-22 08:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:44:20] Production.INFO: ==6100== Releasing lock... [2025-02-22 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:45:05 [end_date_ymd] => 2025-02-22 08:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:45:05' and `end` < '2025-02-22 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-02-22 08:45:17] Production.INFO: count ==276 [2025-02-22 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:45:05 - End Time 2025-02-22 08:45:05 [2025-02-22 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531278', 'tblTempUsageDetail_20' ) start [2025-02-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531278', 'tblTempUsageDetail_20' ) end [2025-02-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531278', 'tblTempVendorCDR_20' ) start [2025-02-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531278', 'tblTempVendorCDR_20' ) end [2025-02-22 08:45:17] Production.INFO: ProcessCDR(1,14531278,1,1,2) [2025-02-22 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531278', 'tblTempUsageDetail_20' ) start [2025-02-22 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531278', 'tblTempUsageDetail_20' ) end [2025-02-22 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:45:20] Production.INFO: ==6177== Releasing lock... [2025-02-22 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:45:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:46:05 [end_date_ymd] => 2025-02-22 08:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:46:05' and `end` < '2025-02-22 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-02-22 08:46:17] Production.INFO: count ==276 [2025-02-22 08:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:46:05 - End Time 2025-02-22 08:46:05 [2025-02-22 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531283', 'tblTempUsageDetail_20' ) start [2025-02-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531283', 'tblTempUsageDetail_20' ) end [2025-02-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531283', 'tblTempVendorCDR_20' ) start [2025-02-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531283', 'tblTempVendorCDR_20' ) end [2025-02-22 08:46:17] Production.INFO: ProcessCDR(1,14531283,1,1,2) [2025-02-22 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531283', 'tblTempUsageDetail_20' ) start [2025-02-22 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531283', 'tblTempUsageDetail_20' ) end [2025-02-22 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:46:20] Production.INFO: ==6252== Releasing lock... [2025-02-22 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:47:04 [end_date_ymd] => 2025-02-22 08:47:04 [RateCDR] => 1 ) [2025-02-22 08: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-02-22 05:47:04' and `end` < '2025-02-22 08: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-02-22 08:47:16] Production.INFO: count ==279 [2025-02-22 08:47:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:47:04 - End Time 2025-02-22 08:47:04 [2025-02-22 08:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531288', 'tblTempUsageDetail_20' ) start [2025-02-22 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531288', 'tblTempUsageDetail_20' ) end [2025-02-22 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531288', 'tblTempVendorCDR_20' ) start [2025-02-22 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531288', 'tblTempVendorCDR_20' ) end [2025-02-22 08:47:16] Production.INFO: ProcessCDR(1,14531288,1,1,2) [2025-02-22 08:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531288', 'tblTempUsageDetail_20' ) start [2025-02-22 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531288', 'tblTempUsageDetail_20' ) end [2025-02-22 08:47:19] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:47:19] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:47:19] Production.INFO: ==6326== Releasing lock... [2025-02-22 08:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:47:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:48:05 [end_date_ymd] => 2025-02-22 08:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:48:05' and `end` < '2025-02-22 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-02-22 08:48:17] Production.INFO: count ==279 [2025-02-22 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:48:05 - End Time 2025-02-22 08:48:05 [2025-02-22 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531293', 'tblTempUsageDetail_20' ) start [2025-02-22 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531293', 'tblTempUsageDetail_20' ) end [2025-02-22 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531293', 'tblTempVendorCDR_20' ) start [2025-02-22 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531293', 'tblTempVendorCDR_20' ) end [2025-02-22 08:48:17] Production.INFO: ProcessCDR(1,14531293,1,1,2) [2025-02-22 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531293', 'tblTempUsageDetail_20' ) start [2025-02-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531293', 'tblTempUsageDetail_20' ) end [2025-02-22 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:48:21] Production.INFO: ==6400== Releasing lock... [2025-02-22 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:49:04 [end_date_ymd] => 2025-02-22 08:49:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:49:04' and `end` < '2025-02-22 08: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-02-22 08:49:16] Production.INFO: count ==285 [2025-02-22 08:49:16] Production.ERROR: pbx CDR StartTime 2025-02-22 05:49:04 - End Time 2025-02-22 08:49:04 [2025-02-22 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531298', 'tblTempUsageDetail_20' ) start [2025-02-22 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531298', 'tblTempUsageDetail_20' ) end [2025-02-22 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531298', 'tblTempVendorCDR_20' ) start [2025-02-22 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531298', 'tblTempVendorCDR_20' ) end [2025-02-22 08:49:16] Production.INFO: ProcessCDR(1,14531298,1,1,2) [2025-02-22 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531298', 'tblTempUsageDetail_20' ) start [2025-02-22 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531298', 'tblTempUsageDetail_20' ) end [2025-02-22 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:49:20] Production.INFO: ==6474== Releasing lock... [2025-02-22 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:50:06 [end_date_ymd] => 2025-02-22 08:50:06 [RateCDR] => 1 ) [2025-02-22 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 05:50:06' and `end` < '2025-02-22 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 08:50:18] Production.INFO: count ==291 [2025-02-22 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 05:50:06 - End Time 2025-02-22 08:50:06 [2025-02-22 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531304', 'tblTempUsageDetail_20' ) start [2025-02-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531304', 'tblTempUsageDetail_20' ) end [2025-02-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531304', 'tblTempVendorCDR_20' ) start [2025-02-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531304', 'tblTempVendorCDR_20' ) end [2025-02-22 08:50:18] Production.INFO: ProcessCDR(1,14531304,1,1,2) [2025-02-22 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531304', 'tblTempUsageDetail_20' ) start [2025-02-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531304', 'tblTempUsageDetail_20' ) end [2025-02-22 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:50:21] Production.INFO: ==6549== Releasing lock... [2025-02-22 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-22 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:51:05 [end_date_ymd] => 2025-02-22 08:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:51:05' and `end` < '2025-02-22 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-02-22 08:51:17] Production.INFO: count ==295 [2025-02-22 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:51:05 - End Time 2025-02-22 08:51:05 [2025-02-22 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531309', 'tblTempUsageDetail_20' ) start [2025-02-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531309', 'tblTempUsageDetail_20' ) end [2025-02-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531309', 'tblTempVendorCDR_20' ) start [2025-02-22 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531309', 'tblTempVendorCDR_20' ) end [2025-02-22 08:51:17] Production.INFO: ProcessCDR(1,14531309,1,1,2) [2025-02-22 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531309', 'tblTempUsageDetail_20' ) start [2025-02-22 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531309', 'tblTempUsageDetail_20' ) end [2025-02-22 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:51:20] Production.INFO: ==6632== Releasing lock... [2025-02-22 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:51:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:52:05 [end_date_ymd] => 2025-02-22 08:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:52:05' and `end` < '2025-02-22 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-02-22 08:52:17] Production.INFO: count ==295 [2025-02-22 08:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:52:05 - End Time 2025-02-22 08:52:05 [2025-02-22 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531314', 'tblTempUsageDetail_20' ) start [2025-02-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531314', 'tblTempUsageDetail_20' ) end [2025-02-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531314', 'tblTempVendorCDR_20' ) start [2025-02-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531314', 'tblTempVendorCDR_20' ) end [2025-02-22 08:52:17] Production.INFO: ProcessCDR(1,14531314,1,1,2) [2025-02-22 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531314', 'tblTempUsageDetail_20' ) start [2025-02-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531314', 'tblTempUsageDetail_20' ) end [2025-02-22 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:52:20] Production.INFO: ==6748== Releasing lock... [2025-02-22 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:52:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:53:05 [end_date_ymd] => 2025-02-22 08:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:53:05' and `end` < '2025-02-22 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-02-22 08:53:17] Production.INFO: count ==296 [2025-02-22 08:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:53:05 - End Time 2025-02-22 08:53:05 [2025-02-22 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531319', 'tblTempUsageDetail_20' ) start [2025-02-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531319', 'tblTempUsageDetail_20' ) end [2025-02-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531319', 'tblTempVendorCDR_20' ) start [2025-02-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531319', 'tblTempVendorCDR_20' ) end [2025-02-22 08:53:17] Production.INFO: ProcessCDR(1,14531319,1,1,2) [2025-02-22 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531319', 'tblTempUsageDetail_20' ) start [2025-02-22 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531319', 'tblTempUsageDetail_20' ) end [2025-02-22 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:53:22] Production.INFO: ==6826== Releasing lock... [2025-02-22 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:53:22] Production.INFO: 31 MB #Memory Used# [2025-02-22 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:54:05 [end_date_ymd] => 2025-02-22 08:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:54:05' and `end` < '2025-02-22 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-02-22 08:54:17] Production.INFO: count ==296 [2025-02-22 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:54:05 - End Time 2025-02-22 08:54:05 [2025-02-22 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531324', 'tblTempUsageDetail_20' ) start [2025-02-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531324', 'tblTempUsageDetail_20' ) end [2025-02-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531324', 'tblTempVendorCDR_20' ) start [2025-02-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531324', 'tblTempVendorCDR_20' ) end [2025-02-22 08:54:17] Production.INFO: ProcessCDR(1,14531324,1,1,2) [2025-02-22 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531324', 'tblTempUsageDetail_20' ) start [2025-02-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531324', 'tblTempUsageDetail_20' ) end [2025-02-22 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:54:20] Production.INFO: ==6903== Releasing lock... [2025-02-22 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:54:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:55:06 [end_date_ymd] => 2025-02-22 08:55:06 [RateCDR] => 1 ) [2025-02-22 08: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-02-22 05:55:06' and `end` < '2025-02-22 08: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-02-22 08:55:17] Production.INFO: count ==296 [2025-02-22 08:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:55:06 - End Time 2025-02-22 08:55:06 [2025-02-22 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531329', 'tblTempUsageDetail_20' ) start [2025-02-22 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531329', 'tblTempUsageDetail_20' ) end [2025-02-22 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531329', 'tblTempVendorCDR_20' ) start [2025-02-22 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531329', 'tblTempVendorCDR_20' ) end [2025-02-22 08:55:17] Production.INFO: ProcessCDR(1,14531329,1,1,2) [2025-02-22 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531329', 'tblTempUsageDetail_20' ) start [2025-02-22 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531329', 'tblTempUsageDetail_20' ) end [2025-02-22 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:55:21] Production.INFO: ==6978== Releasing lock... [2025-02-22 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:56:05 [end_date_ymd] => 2025-02-22 08:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:56:05' and `end` < '2025-02-22 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-02-22 08:56:17] Production.INFO: count ==296 [2025-02-22 08:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:56:05 - End Time 2025-02-22 08:56:05 [2025-02-22 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531334', 'tblTempUsageDetail_20' ) start [2025-02-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531334', 'tblTempUsageDetail_20' ) end [2025-02-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531334', 'tblTempVendorCDR_20' ) start [2025-02-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531334', 'tblTempVendorCDR_20' ) end [2025-02-22 08:56:17] Production.INFO: ProcessCDR(1,14531334,1,1,2) [2025-02-22 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531334', 'tblTempUsageDetail_20' ) start [2025-02-22 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531334', 'tblTempUsageDetail_20' ) end [2025-02-22 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:56:20] Production.INFO: ==7049== Releasing lock... [2025-02-22 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:56:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:57:05 [end_date_ymd] => 2025-02-22 08:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:57:05' and `end` < '2025-02-22 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-02-22 08:57:17] Production.INFO: count ==296 [2025-02-22 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:57:05 - End Time 2025-02-22 08:57:05 [2025-02-22 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531339', 'tblTempUsageDetail_20' ) start [2025-02-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531339', 'tblTempUsageDetail_20' ) end [2025-02-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531339', 'tblTempVendorCDR_20' ) start [2025-02-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531339', 'tblTempVendorCDR_20' ) end [2025-02-22 08:57:17] Production.INFO: ProcessCDR(1,14531339,1,1,2) [2025-02-22 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531339', 'tblTempUsageDetail_20' ) start [2025-02-22 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531339', 'tblTempUsageDetail_20' ) end [2025-02-22 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:57:20] Production.INFO: ==7124== Releasing lock... [2025-02-22 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:57:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:58:05 [end_date_ymd] => 2025-02-22 08:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:58:05' and `end` < '2025-02-22 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-02-22 08:58:16] Production.INFO: count ==298 [2025-02-22 08:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:58:05 - End Time 2025-02-22 08:58:05 [2025-02-22 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531344', 'tblTempUsageDetail_20' ) start [2025-02-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531344', 'tblTempUsageDetail_20' ) end [2025-02-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531344', 'tblTempVendorCDR_20' ) start [2025-02-22 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531344', 'tblTempVendorCDR_20' ) end [2025-02-22 08:58:17] Production.INFO: ProcessCDR(1,14531344,1,1,2) [2025-02-22 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531344', 'tblTempUsageDetail_20' ) start [2025-02-22 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531344', 'tblTempUsageDetail_20' ) end [2025-02-22 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:58:20] Production.INFO: ==7199== Releasing lock... [2025-02-22 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:58:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 05:59:05 [end_date_ymd] => 2025-02-22 08:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 05:59:05' and `end` < '2025-02-22 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-02-22 08:59:17] Production.INFO: count ==299 [2025-02-22 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 05:59:05 - End Time 2025-02-22 08:59:05 [2025-02-22 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531349', 'tblTempUsageDetail_20' ) start [2025-02-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531349', 'tblTempUsageDetail_20' ) end [2025-02-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531349', 'tblTempVendorCDR_20' ) start [2025-02-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531349', 'tblTempVendorCDR_20' ) end [2025-02-22 08:59:17] Production.INFO: ProcessCDR(1,14531349,1,1,2) [2025-02-22 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531349', 'tblTempUsageDetail_20' ) start [2025-02-22 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531349', 'tblTempUsageDetail_20' ) end [2025-02-22 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 08:59:20] Production.INFO: ==7272== Releasing lock... [2025-02-22 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 08:59:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:00:05 [end_date_ymd] => 2025-02-22 09:00:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:00:05' and `end` < '2025-02-22 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-02-22 09:00:17] Production.INFO: count ==311 [2025-02-22 09:00:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:00:05 - End Time 2025-02-22 09:00:05 [2025-02-22 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531354', 'tblTempUsageDetail_20' ) start [2025-02-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531354', 'tblTempUsageDetail_20' ) end [2025-02-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531354', 'tblTempVendorCDR_20' ) start [2025-02-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531354', 'tblTempVendorCDR_20' ) end [2025-02-22 09:00:17] Production.INFO: ProcessCDR(1,14531354,1,1,2) [2025-02-22 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531354', 'tblTempUsageDetail_20' ) start [2025-02-22 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531354', 'tblTempUsageDetail_20' ) end [2025-02-22 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:00:22] Production.INFO: ==7351== Releasing lock... [2025-02-22 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:00:22] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:01:05 [end_date_ymd] => 2025-02-22 09:01:05 [RateCDR] => 1 ) [2025-02-22 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:01:05' and `end` < '2025-02-22 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:01:17] Production.INFO: count ==327 [2025-02-22 09:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:01:05 - End Time 2025-02-22 09:01:05 [2025-02-22 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531360', 'tblTempUsageDetail_20' ) start [2025-02-22 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531360', 'tblTempUsageDetail_20' ) end [2025-02-22 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531360', 'tblTempVendorCDR_20' ) start [2025-02-22 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531360', 'tblTempVendorCDR_20' ) end [2025-02-22 09:01:17] Production.INFO: ProcessCDR(1,14531360,1,1,2) [2025-02-22 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531360', 'tblTempUsageDetail_20' ) start [2025-02-22 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531360', 'tblTempUsageDetail_20' ) end [2025-02-22 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:01:20] Production.INFO: ==7438== Releasing lock... [2025-02-22 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:01:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:02:06 [end_date_ymd] => 2025-02-22 09:02:06 [RateCDR] => 1 ) [2025-02-22 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:02:06' and `end` < '2025-02-22 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:02:17] Production.INFO: count ==327 [2025-02-22 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:02:06 - End Time 2025-02-22 09:02:06 [2025-02-22 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531365', 'tblTempUsageDetail_20' ) start [2025-02-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531365', 'tblTempUsageDetail_20' ) end [2025-02-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531365', 'tblTempVendorCDR_20' ) start [2025-02-22 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531365', 'tblTempVendorCDR_20' ) end [2025-02-22 09:02:18] Production.INFO: ProcessCDR(1,14531365,1,1,2) [2025-02-22 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531365', 'tblTempUsageDetail_20' ) start [2025-02-22 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531365', 'tblTempUsageDetail_20' ) end [2025-02-22 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:02:21] Production.INFO: ==7513== Releasing lock... [2025-02-22 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:02:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:03:05 [end_date_ymd] => 2025-02-22 09:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:03:05' and `end` < '2025-02-22 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-02-22 09:03:17] Production.INFO: count ==329 [2025-02-22 09:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:03:05 - End Time 2025-02-22 09:03:05 [2025-02-22 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531370', 'tblTempUsageDetail_20' ) start [2025-02-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531370', 'tblTempUsageDetail_20' ) end [2025-02-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531370', 'tblTempVendorCDR_20' ) start [2025-02-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531370', 'tblTempVendorCDR_20' ) end [2025-02-22 09:03:17] Production.INFO: ProcessCDR(1,14531370,1,1,2) [2025-02-22 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531370', 'tblTempUsageDetail_20' ) start [2025-02-22 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531370', 'tblTempUsageDetail_20' ) end [2025-02-22 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:03:20] Production.INFO: ==7588== Releasing lock... [2025-02-22 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:03:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:04:05 [end_date_ymd] => 2025-02-22 09:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:04:05' and `end` < '2025-02-22 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-02-22 09:04:17] Production.INFO: count ==327 [2025-02-22 09:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:04:05 - End Time 2025-02-22 09:04:05 [2025-02-22 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531375', 'tblTempUsageDetail_20' ) start [2025-02-22 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531375', 'tblTempUsageDetail_20' ) end [2025-02-22 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531375', 'tblTempVendorCDR_20' ) start [2025-02-22 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531375', 'tblTempVendorCDR_20' ) end [2025-02-22 09:04:17] Production.INFO: ProcessCDR(1,14531375,1,1,2) [2025-02-22 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531375', 'tblTempUsageDetail_20' ) start [2025-02-22 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531375', 'tblTempUsageDetail_20' ) end [2025-02-22 09:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:04:20] Production.INFO: ==7662== Releasing lock... [2025-02-22 09:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:04:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:05:05 [end_date_ymd] => 2025-02-22 09:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:05:05' and `end` < '2025-02-22 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-02-22 09:05:17] Production.INFO: count ==325 [2025-02-22 09:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:05:05 - End Time 2025-02-22 09:05:05 [2025-02-22 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531380', 'tblTempUsageDetail_20' ) start [2025-02-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531380', 'tblTempUsageDetail_20' ) end [2025-02-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531380', 'tblTempVendorCDR_20' ) start [2025-02-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531380', 'tblTempVendorCDR_20' ) end [2025-02-22 09:05:17] Production.INFO: ProcessCDR(1,14531380,1,1,2) [2025-02-22 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531380', 'tblTempUsageDetail_20' ) start [2025-02-22 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531380', 'tblTempUsageDetail_20' ) end [2025-02-22 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:05:20] Production.INFO: ==7732== Releasing lock... [2025-02-22 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:06:05 [end_date_ymd] => 2025-02-22 09:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:06:05' and `end` < '2025-02-22 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-02-22 09:06:17] Production.INFO: count ==335 [2025-02-22 09:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:06:05 - End Time 2025-02-22 09:06:05 [2025-02-22 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531385', 'tblTempUsageDetail_20' ) start [2025-02-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531385', 'tblTempUsageDetail_20' ) end [2025-02-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531385', 'tblTempVendorCDR_20' ) start [2025-02-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531385', 'tblTempVendorCDR_20' ) end [2025-02-22 09:06:17] Production.INFO: ProcessCDR(1,14531385,1,1,2) [2025-02-22 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531385', 'tblTempUsageDetail_20' ) start [2025-02-22 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531385', 'tblTempUsageDetail_20' ) end [2025-02-22 09:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:06:20] Production.INFO: ==7810== Releasing lock... [2025-02-22 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:07:05 [end_date_ymd] => 2025-02-22 09:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:07:05' and `end` < '2025-02-22 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-02-22 09:07:17] Production.INFO: count ==335 [2025-02-22 09:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:07:05 - End Time 2025-02-22 09:07:05 [2025-02-22 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531390', 'tblTempUsageDetail_20' ) start [2025-02-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531390', 'tblTempUsageDetail_20' ) end [2025-02-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531390', 'tblTempVendorCDR_20' ) start [2025-02-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531390', 'tblTempVendorCDR_20' ) end [2025-02-22 09:07:17] Production.INFO: ProcessCDR(1,14531390,1,1,2) [2025-02-22 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531390', 'tblTempUsageDetail_20' ) start [2025-02-22 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531390', 'tblTempUsageDetail_20' ) end [2025-02-22 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:07:20] Production.INFO: ==7921== Releasing lock... [2025-02-22 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:07:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:08:05 [end_date_ymd] => 2025-02-22 09:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:08:05' and `end` < '2025-02-22 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-02-22 09:08:17] Production.INFO: count ==335 [2025-02-22 09:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:08:05 - End Time 2025-02-22 09:08:05 [2025-02-22 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531395', 'tblTempUsageDetail_20' ) start [2025-02-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531395', 'tblTempUsageDetail_20' ) end [2025-02-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531395', 'tblTempVendorCDR_20' ) start [2025-02-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531395', 'tblTempVendorCDR_20' ) end [2025-02-22 09:08:17] Production.INFO: ProcessCDR(1,14531395,1,1,2) [2025-02-22 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531395', 'tblTempUsageDetail_20' ) start [2025-02-22 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531395', 'tblTempUsageDetail_20' ) end [2025-02-22 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:08:21] Production.INFO: ==7995== Releasing lock... [2025-02-22 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:08:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:09:05 [end_date_ymd] => 2025-02-22 09:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:09:05' and `end` < '2025-02-22 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-02-22 09:09:16] Production.INFO: count ==341 [2025-02-22 09:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:09:05 - End Time 2025-02-22 09:09:05 [2025-02-22 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531400', 'tblTempUsageDetail_20' ) start [2025-02-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531400', 'tblTempUsageDetail_20' ) end [2025-02-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531400', 'tblTempVendorCDR_20' ) start [2025-02-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531400', 'tblTempVendorCDR_20' ) end [2025-02-22 09:09:17] Production.INFO: ProcessCDR(1,14531400,1,1,2) [2025-02-22 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531400', 'tblTempUsageDetail_20' ) start [2025-02-22 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531400', 'tblTempUsageDetail_20' ) end [2025-02-22 09:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:09:20] Production.INFO: ==8066== Releasing lock... [2025-02-22 09:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:09:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:10:06 [end_date_ymd] => 2025-02-22 09:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:10:06' and `end` < '2025-02-22 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-02-22 09:10:18] Production.INFO: count ==347 [2025-02-22 09:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:10:06 - End Time 2025-02-22 09:10:06 [2025-02-22 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531405', 'tblTempUsageDetail_20' ) start [2025-02-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531405', 'tblTempUsageDetail_20' ) end [2025-02-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531405', 'tblTempVendorCDR_20' ) start [2025-02-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531405', 'tblTempVendorCDR_20' ) end [2025-02-22 09:10:18] Production.INFO: ProcessCDR(1,14531405,1,1,2) [2025-02-22 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531405', 'tblTempUsageDetail_20' ) start [2025-02-22 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531405', 'tblTempUsageDetail_20' ) end [2025-02-22 09:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:10:21] Production.INFO: ==8144== Releasing lock... [2025-02-22 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:10:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:11:04 [end_date_ymd] => 2025-02-22 09:11:04 [RateCDR] => 1 ) [2025-02-22 09: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-02-22 06:11:04' and `end` < '2025-02-22 09: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-02-22 09:11:16] Production.INFO: count ==357 [2025-02-22 09:11:16] Production.ERROR: pbx CDR StartTime 2025-02-22 06:11:04 - End Time 2025-02-22 09:11:04 [2025-02-22 09:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531407', 'tblTempUsageDetail_20' ) start [2025-02-22 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531407', 'tblTempUsageDetail_20' ) end [2025-02-22 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531407', 'tblTempVendorCDR_20' ) start [2025-02-22 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531407', 'tblTempVendorCDR_20' ) end [2025-02-22 09:11:16] Production.INFO: ProcessCDR(1,14531407,1,1,2) [2025-02-22 09:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531407', 'tblTempUsageDetail_20' ) start [2025-02-22 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531407', 'tblTempUsageDetail_20' ) end [2025-02-22 09:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:11:20] Production.INFO: ==8226== Releasing lock... [2025-02-22 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-22 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:12:05 [end_date_ymd] => 2025-02-22 09:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:12:05' and `end` < '2025-02-22 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-02-22 09:12:17] Production.INFO: count ==365 [2025-02-22 09:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:12:05 - End Time 2025-02-22 09:12:05 [2025-02-22 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531416', 'tblTempUsageDetail_20' ) start [2025-02-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531416', 'tblTempUsageDetail_20' ) end [2025-02-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531416', 'tblTempVendorCDR_20' ) start [2025-02-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531416', 'tblTempVendorCDR_20' ) end [2025-02-22 09:12:17] Production.INFO: ProcessCDR(1,14531416,1,1,2) [2025-02-22 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531416', 'tblTempUsageDetail_20' ) start [2025-02-22 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531416', 'tblTempUsageDetail_20' ) end [2025-02-22 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:12:22] Production.INFO: ==8306== Releasing lock... [2025-02-22 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:12:22] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:13:04 [end_date_ymd] => 2025-02-22 09:13:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:13:04' and `end` < '2025-02-22 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-02-22 09:13:16] Production.INFO: count ==365 [2025-02-22 09:13:16] Production.ERROR: pbx CDR StartTime 2025-02-22 06:13:04 - End Time 2025-02-22 09:13:04 [2025-02-22 09:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531421', 'tblTempUsageDetail_20' ) start [2025-02-22 09:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531421', 'tblTempUsageDetail_20' ) end [2025-02-22 09:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531421', 'tblTempVendorCDR_20' ) start [2025-02-22 09:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531421', 'tblTempVendorCDR_20' ) end [2025-02-22 09:13:16] Production.INFO: ProcessCDR(1,14531421,1,1,2) [2025-02-22 09:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531421', 'tblTempUsageDetail_20' ) start [2025-02-22 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531421', 'tblTempUsageDetail_20' ) end [2025-02-22 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:13:20] Production.INFO: ==8378== Releasing lock... [2025-02-22 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:13:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:14:05 [end_date_ymd] => 2025-02-22 09:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:14:05' and `end` < '2025-02-22 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-02-22 09:14:17] Production.INFO: count ==365 [2025-02-22 09:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:14:05 - End Time 2025-02-22 09:14:05 [2025-02-22 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531426', 'tblTempUsageDetail_20' ) start [2025-02-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531426', 'tblTempUsageDetail_20' ) end [2025-02-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531426', 'tblTempVendorCDR_20' ) start [2025-02-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531426', 'tblTempVendorCDR_20' ) end [2025-02-22 09:14:17] Production.INFO: ProcessCDR(1,14531426,1,1,2) [2025-02-22 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531426', 'tblTempUsageDetail_20' ) start [2025-02-22 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531426', 'tblTempUsageDetail_20' ) end [2025-02-22 09:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:14:20] Production.INFO: ==8453== Releasing lock... [2025-02-22 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:14:20] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:15:06 [end_date_ymd] => 2025-02-22 09:15:06 [RateCDR] => 1 ) [2025-02-22 09: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-02-22 06:15:06' and `end` < '2025-02-22 09: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-02-22 09:15:17] Production.INFO: count ==372 [2025-02-22 09:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:15:06 - End Time 2025-02-22 09:15:06 [2025-02-22 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531431', 'tblTempUsageDetail_20' ) start [2025-02-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531431', 'tblTempUsageDetail_20' ) end [2025-02-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531431', 'tblTempVendorCDR_20' ) start [2025-02-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531431', 'tblTempVendorCDR_20' ) end [2025-02-22 09:15:17] Production.INFO: ProcessCDR(1,14531431,1,1,2) [2025-02-22 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531431', 'tblTempUsageDetail_20' ) start [2025-02-22 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531431', 'tblTempUsageDetail_20' ) end [2025-02-22 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:15:21] Production.INFO: ==8531== Releasing lock... [2025-02-22 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:15:21] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:16:05 [end_date_ymd] => 2025-02-22 09:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:16:05' and `end` < '2025-02-22 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-02-22 09:16:17] Production.INFO: count ==378 [2025-02-22 09:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:16:05 - End Time 2025-02-22 09:16:05 [2025-02-22 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531436', 'tblTempUsageDetail_20' ) start [2025-02-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531436', 'tblTempUsageDetail_20' ) end [2025-02-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531436', 'tblTempVendorCDR_20' ) start [2025-02-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531436', 'tblTempVendorCDR_20' ) end [2025-02-22 09:16:17] Production.INFO: ProcessCDR(1,14531436,1,1,2) [2025-02-22 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531436', 'tblTempUsageDetail_20' ) start [2025-02-22 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531436', 'tblTempUsageDetail_20' ) end [2025-02-22 09:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:16:20] Production.INFO: ==8603== Releasing lock... [2025-02-22 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:17:05 [end_date_ymd] => 2025-02-22 09:17:05 [RateCDR] => 1 ) [2025-02-22 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:17:05' and `end` < '2025-02-22 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:17:16] Production.INFO: count ==379 [2025-02-22 09:17:16] Production.ERROR: pbx CDR StartTime 2025-02-22 06:17:05 - End Time 2025-02-22 09:17:05 [2025-02-22 09:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531441', 'tblTempUsageDetail_20' ) start [2025-02-22 09:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531441', 'tblTempUsageDetail_20' ) end [2025-02-22 09:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531441', 'tblTempVendorCDR_20' ) start [2025-02-22 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531441', 'tblTempVendorCDR_20' ) end [2025-02-22 09:17:17] Production.INFO: ProcessCDR(1,14531441,1,1,2) [2025-02-22 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531441', 'tblTempUsageDetail_20' ) start [2025-02-22 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531441', 'tblTempUsageDetail_20' ) end [2025-02-22 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:17:21] Production.INFO: ==8677== Releasing lock... [2025-02-22 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:18:05 [end_date_ymd] => 2025-02-22 09:18:05 [RateCDR] => 1 ) [2025-02-22 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:18:05' and `end` < '2025-02-22 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:18:17] Production.INFO: count ==379 [2025-02-22 09:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:18:05 - End Time 2025-02-22 09:18:05 [2025-02-22 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531446', 'tblTempUsageDetail_20' ) start [2025-02-22 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531446', 'tblTempUsageDetail_20' ) end [2025-02-22 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531446', 'tblTempVendorCDR_20' ) start [2025-02-22 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531446', 'tblTempVendorCDR_20' ) end [2025-02-22 09:18:17] Production.INFO: ProcessCDR(1,14531446,1,1,2) [2025-02-22 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531446', 'tblTempUsageDetail_20' ) start [2025-02-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531446', 'tblTempUsageDetail_20' ) end [2025-02-22 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:18:21] Production.INFO: ==8749== Releasing lock... [2025-02-22 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:19:05 [end_date_ymd] => 2025-02-22 09:19:05 [RateCDR] => 1 ) [2025-02-22 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:19:05' and `end` < '2025-02-22 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:19:17] Production.INFO: count ==373 [2025-02-22 09:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:19:05 - End Time 2025-02-22 09:19:05 [2025-02-22 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531451', 'tblTempUsageDetail_20' ) start [2025-02-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531451', 'tblTempUsageDetail_20' ) end [2025-02-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531451', 'tblTempVendorCDR_20' ) start [2025-02-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531451', 'tblTempVendorCDR_20' ) end [2025-02-22 09:19:17] Production.INFO: ProcessCDR(1,14531451,1,1,2) [2025-02-22 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531451', 'tblTempUsageDetail_20' ) start [2025-02-22 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531451', 'tblTempUsageDetail_20' ) end [2025-02-22 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:19:22] Production.INFO: ==8824== Releasing lock... [2025-02-22 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:19:22] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:20:06 [end_date_ymd] => 2025-02-22 09:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:20:06' and `end` < '2025-02-22 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-02-22 09:20:17] Production.INFO: count ==385 [2025-02-22 09:20:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:20:06 - End Time 2025-02-22 09:20:06 [2025-02-22 09:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531457', 'tblTempUsageDetail_20' ) start [2025-02-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531457', 'tblTempUsageDetail_20' ) end [2025-02-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531457', 'tblTempVendorCDR_20' ) start [2025-02-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531457', 'tblTempVendorCDR_20' ) end [2025-02-22 09:20:18] Production.INFO: ProcessCDR(1,14531457,1,1,2) [2025-02-22 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531457', 'tblTempUsageDetail_20' ) start [2025-02-22 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531457', 'tblTempUsageDetail_20' ) end [2025-02-22 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:20:21] Production.INFO: ==8901== Releasing lock... [2025-02-22 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:21:05 [end_date_ymd] => 2025-02-22 09:21:05 [RateCDR] => 1 ) [2025-02-22 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:21:05' and `end` < '2025-02-22 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:21:17] Production.INFO: count ==385 [2025-02-22 09:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:21:05 - End Time 2025-02-22 09:21:05 [2025-02-22 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531462', 'tblTempUsageDetail_20' ) start [2025-02-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531462', 'tblTempUsageDetail_20' ) end [2025-02-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531462', 'tblTempVendorCDR_20' ) start [2025-02-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531462', 'tblTempVendorCDR_20' ) end [2025-02-22 09:21:17] Production.INFO: ProcessCDR(1,14531462,1,1,2) [2025-02-22 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531462', 'tblTempUsageDetail_20' ) start [2025-02-22 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531462', 'tblTempUsageDetail_20' ) end [2025-02-22 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:21:20] Production.INFO: ==8978== Releasing lock... [2025-02-22 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:21:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:22:05 [end_date_ymd] => 2025-02-22 09:22:05 [RateCDR] => 1 ) [2025-02-22 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:22:05' and `end` < '2025-02-22 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:22:17] Production.INFO: count ==385 [2025-02-22 09:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:22:05 - End Time 2025-02-22 09:22:05 [2025-02-22 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531467', 'tblTempUsageDetail_20' ) start [2025-02-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531467', 'tblTempUsageDetail_20' ) end [2025-02-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531467', 'tblTempVendorCDR_20' ) start [2025-02-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531467', 'tblTempVendorCDR_20' ) end [2025-02-22 09:22:17] Production.INFO: ProcessCDR(1,14531467,1,1,2) [2025-02-22 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531467', 'tblTempUsageDetail_20' ) start [2025-02-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531467', 'tblTempUsageDetail_20' ) end [2025-02-22 09:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:22:20] Production.INFO: ==9089== Releasing lock... [2025-02-22 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:22:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:23:05 [end_date_ymd] => 2025-02-22 09:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:23:05' and `end` < '2025-02-22 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-02-22 09:23:17] Production.INFO: count ==385 [2025-02-22 09:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:23:05 - End Time 2025-02-22 09:23:05 [2025-02-22 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531472', 'tblTempUsageDetail_20' ) start [2025-02-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531472', 'tblTempUsageDetail_20' ) end [2025-02-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531472', 'tblTempVendorCDR_20' ) start [2025-02-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531472', 'tblTempVendorCDR_20' ) end [2025-02-22 09:23:17] Production.INFO: ProcessCDR(1,14531472,1,1,2) [2025-02-22 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531472', 'tblTempUsageDetail_20' ) start [2025-02-22 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531472', 'tblTempUsageDetail_20' ) end [2025-02-22 09:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:23:20] Production.INFO: ==9164== Releasing lock... [2025-02-22 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:23:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:24:05 [end_date_ymd] => 2025-02-22 09:24:05 [RateCDR] => 1 ) [2025-02-22 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:24:05' and `end` < '2025-02-22 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:24:17] Production.INFO: count ==385 [2025-02-22 09:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:24:05 - End Time 2025-02-22 09:24:05 [2025-02-22 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531477', 'tblTempUsageDetail_20' ) start [2025-02-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531477', 'tblTempUsageDetail_20' ) end [2025-02-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531477', 'tblTempVendorCDR_20' ) start [2025-02-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531477', 'tblTempVendorCDR_20' ) end [2025-02-22 09:24:17] Production.INFO: ProcessCDR(1,14531477,1,1,2) [2025-02-22 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531477', 'tblTempUsageDetail_20' ) start [2025-02-22 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531477', 'tblTempUsageDetail_20' ) end [2025-02-22 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:24:21] Production.INFO: ==9237== Releasing lock... [2025-02-22 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:25:06 [end_date_ymd] => 2025-02-22 09:25:06 [RateCDR] => 1 ) [2025-02-22 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:25:06' and `end` < '2025-02-22 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:25:17] Production.INFO: count ==381 [2025-02-22 09:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:25:06 - End Time 2025-02-22 09:25:06 [2025-02-22 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531482', 'tblTempUsageDetail_20' ) start [2025-02-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531482', 'tblTempUsageDetail_20' ) end [2025-02-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531482', 'tblTempVendorCDR_20' ) start [2025-02-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531482', 'tblTempVendorCDR_20' ) end [2025-02-22 09:25:17] Production.INFO: ProcessCDR(1,14531482,1,1,2) [2025-02-22 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531482', 'tblTempUsageDetail_20' ) start [2025-02-22 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531482', 'tblTempUsageDetail_20' ) end [2025-02-22 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:25:21] Production.INFO: ==9309== Releasing lock... [2025-02-22 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:26:05 [end_date_ymd] => 2025-02-22 09:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:26:05' and `end` < '2025-02-22 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-02-22 09:26:16] Production.INFO: count ==382 [2025-02-22 09:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:26:05 - End Time 2025-02-22 09:26:05 [2025-02-22 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531487', 'tblTempUsageDetail_20' ) start [2025-02-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531487', 'tblTempUsageDetail_20' ) end [2025-02-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531487', 'tblTempVendorCDR_20' ) start [2025-02-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531487', 'tblTempVendorCDR_20' ) end [2025-02-22 09:26:17] Production.INFO: ProcessCDR(1,14531487,1,1,2) [2025-02-22 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531487', 'tblTempUsageDetail_20' ) start [2025-02-22 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531487', 'tblTempUsageDetail_20' ) end [2025-02-22 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:26:21] Production.INFO: ==9388== Releasing lock... [2025-02-22 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:27:05 [end_date_ymd] => 2025-02-22 09:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:27:05' and `end` < '2025-02-22 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-02-22 09:27:18] Production.INFO: count ==389 [2025-02-22 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:27:05 - End Time 2025-02-22 09:27:05 [2025-02-22 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531492', 'tblTempUsageDetail_20' ) start [2025-02-22 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531492', 'tblTempUsageDetail_20' ) end [2025-02-22 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531492', 'tblTempVendorCDR_20' ) start [2025-02-22 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531492', 'tblTempVendorCDR_20' ) end [2025-02-22 09:27:18] Production.INFO: ProcessCDR(1,14531492,1,1,2) [2025-02-22 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531492', 'tblTempUsageDetail_20' ) start [2025-02-22 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531492', 'tblTempUsageDetail_20' ) end [2025-02-22 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:27:22] Production.INFO: ==9457== Releasing lock... [2025-02-22 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:27:22] Production.INFO: 31 MB #Memory Used# [2025-02-22 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:28:05 [end_date_ymd] => 2025-02-22 09:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:28:05' and `end` < '2025-02-22 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-02-22 09:28:17] Production.INFO: count ==390 [2025-02-22 09:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:28:05 - End Time 2025-02-22 09:28:05 [2025-02-22 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531497', 'tblTempUsageDetail_20' ) start [2025-02-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531497', 'tblTempUsageDetail_20' ) end [2025-02-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531497', 'tblTempVendorCDR_20' ) start [2025-02-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531497', 'tblTempVendorCDR_20' ) end [2025-02-22 09:28:17] Production.INFO: ProcessCDR(1,14531497,1,1,2) [2025-02-22 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531497', 'tblTempUsageDetail_20' ) start [2025-02-22 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531497', 'tblTempUsageDetail_20' ) end [2025-02-22 09:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:28:20] Production.INFO: ==9532== Releasing lock... [2025-02-22 09:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:28:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:29:05 [end_date_ymd] => 2025-02-22 09:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:29:05' and `end` < '2025-02-22 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-02-22 09:29:17] Production.INFO: count ==399 [2025-02-22 09:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:29:05 - End Time 2025-02-22 09:29:05 [2025-02-22 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531502', 'tblTempUsageDetail_20' ) start [2025-02-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531502', 'tblTempUsageDetail_20' ) end [2025-02-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531502', 'tblTempVendorCDR_20' ) start [2025-02-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531502', 'tblTempVendorCDR_20' ) end [2025-02-22 09:29:17] Production.INFO: ProcessCDR(1,14531502,1,1,2) [2025-02-22 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531502', 'tblTempUsageDetail_20' ) start [2025-02-22 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531502', 'tblTempUsageDetail_20' ) end [2025-02-22 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:29:21] Production.INFO: ==9604== Releasing lock... [2025-02-22 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-22 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:30:06 [end_date_ymd] => 2025-02-22 09:30:06 [RateCDR] => 1 ) [2025-02-22 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:30:06' and `end` < '2025-02-22 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:30:17] Production.INFO: count ==415 [2025-02-22 09:30:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:30:06 - End Time 2025-02-22 09:30:06 [2025-02-22 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531508', 'tblTempUsageDetail_20' ) start [2025-02-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531508', 'tblTempUsageDetail_20' ) end [2025-02-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531508', 'tblTempVendorCDR_20' ) start [2025-02-22 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531508', 'tblTempVendorCDR_20' ) end [2025-02-22 09:30:18] Production.INFO: ProcessCDR(1,14531508,1,1,2) [2025-02-22 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531508', 'tblTempUsageDetail_20' ) start [2025-02-22 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531508', 'tblTempUsageDetail_20' ) end [2025-02-22 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:30:22] Production.INFO: ==9683== Releasing lock... [2025-02-22 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:31:06 [end_date_ymd] => 2025-02-22 09:31:06 [RateCDR] => 1 ) [2025-02-22 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:31:06' and `end` < '2025-02-22 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:31:17] Production.INFO: count ==426 [2025-02-22 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:31:06 - End Time 2025-02-22 09:31:06 [2025-02-22 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531513', 'tblTempUsageDetail_20' ) start [2025-02-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531513', 'tblTempUsageDetail_20' ) end [2025-02-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531513', 'tblTempVendorCDR_20' ) start [2025-02-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531513', 'tblTempVendorCDR_20' ) end [2025-02-22 09:31:18] Production.INFO: ProcessCDR(1,14531513,1,1,2) [2025-02-22 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531513', 'tblTempUsageDetail_20' ) start [2025-02-22 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531513', 'tblTempUsageDetail_20' ) end [2025-02-22 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:31:21] Production.INFO: ==9757== Releasing lock... [2025-02-22 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:32:05 [end_date_ymd] => 2025-02-22 09:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:32:05' and `end` < '2025-02-22 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-02-22 09:32:16] Production.INFO: count ==428 [2025-02-22 09:32:16] Production.ERROR: pbx CDR StartTime 2025-02-22 06:32:05 - End Time 2025-02-22 09:32:05 [2025-02-22 09:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531518', 'tblTempUsageDetail_20' ) start [2025-02-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531518', 'tblTempUsageDetail_20' ) end [2025-02-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531518', 'tblTempVendorCDR_20' ) start [2025-02-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531518', 'tblTempVendorCDR_20' ) end [2025-02-22 09:32:16] Production.INFO: ProcessCDR(1,14531518,1,1,2) [2025-02-22 09:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531518', 'tblTempUsageDetail_20' ) start [2025-02-22 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531518', 'tblTempUsageDetail_20' ) end [2025-02-22 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:32:21] Production.INFO: ==9827== Releasing lock... [2025-02-22 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-22 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:33:06 [end_date_ymd] => 2025-02-22 09:33:06 [RateCDR] => 1 ) [2025-02-22 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:33:06' and `end` < '2025-02-22 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:33:17] Production.INFO: count ==437 [2025-02-22 09:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:33:06 - End Time 2025-02-22 09:33:06 [2025-02-22 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531523', 'tblTempUsageDetail_20' ) start [2025-02-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531523', 'tblTempUsageDetail_20' ) end [2025-02-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531523', 'tblTempVendorCDR_20' ) start [2025-02-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531523', 'tblTempVendorCDR_20' ) end [2025-02-22 09:33:17] Production.INFO: ProcessCDR(1,14531523,1,1,2) [2025-02-22 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531523', 'tblTempUsageDetail_20' ) start [2025-02-22 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531523', 'tblTempUsageDetail_20' ) end [2025-02-22 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:33:21] Production.INFO: ==9898== Releasing lock... [2025-02-22 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:33:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:34:06 [end_date_ymd] => 2025-02-22 09:34:06 [RateCDR] => 1 ) [2025-02-22 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:34:06' and `end` < '2025-02-22 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:34:18] Production.INFO: count ==437 [2025-02-22 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:34:06 - End Time 2025-02-22 09:34:06 [2025-02-22 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531528', 'tblTempUsageDetail_20' ) start [2025-02-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531528', 'tblTempUsageDetail_20' ) end [2025-02-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531528', 'tblTempVendorCDR_20' ) start [2025-02-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531528', 'tblTempVendorCDR_20' ) end [2025-02-22 09:34:18] Production.INFO: ProcessCDR(1,14531528,1,1,2) [2025-02-22 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531528', 'tblTempUsageDetail_20' ) start [2025-02-22 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531528', 'tblTempUsageDetail_20' ) end [2025-02-22 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:34:21] Production.INFO: ==9972== Releasing lock... [2025-02-22 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:34:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:35:05 [end_date_ymd] => 2025-02-22 09:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:35:05' and `end` < '2025-02-22 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-02-22 09:35:17] Production.INFO: count ==441 [2025-02-22 09:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:35:05 - End Time 2025-02-22 09:35:05 [2025-02-22 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531533', 'tblTempUsageDetail_20' ) start [2025-02-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531533', 'tblTempUsageDetail_20' ) end [2025-02-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531533', 'tblTempVendorCDR_20' ) start [2025-02-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531533', 'tblTempVendorCDR_20' ) end [2025-02-22 09:35:17] Production.INFO: ProcessCDR(1,14531533,1,1,2) [2025-02-22 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531533', 'tblTempUsageDetail_20' ) start [2025-02-22 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531533', 'tblTempUsageDetail_20' ) end [2025-02-22 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:35:21] Production.INFO: ==10049== Releasing lock... [2025-02-22 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:35:21] Production.INFO: 32 MB #Memory Used# [2025-02-22 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:36:05 [end_date_ymd] => 2025-02-22 09:36:05 [RateCDR] => 1 ) [2025-02-22 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:36:05' and `end` < '2025-02-22 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:36:17] Production.INFO: count ==442 [2025-02-22 09:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:36:05 - End Time 2025-02-22 09:36:05 [2025-02-22 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531538', 'tblTempUsageDetail_20' ) start [2025-02-22 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531538', 'tblTempUsageDetail_20' ) end [2025-02-22 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531538', 'tblTempVendorCDR_20' ) start [2025-02-22 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531538', 'tblTempVendorCDR_20' ) end [2025-02-22 09:36:17] Production.INFO: ProcessCDR(1,14531538,1,1,2) [2025-02-22 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531538', 'tblTempUsageDetail_20' ) start [2025-02-22 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531538', 'tblTempUsageDetail_20' ) end [2025-02-22 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:36:22] Production.INFO: ==10128== Releasing lock... [2025-02-22 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-22 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:37:05 [end_date_ymd] => 2025-02-22 09:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:37:05' and `end` < '2025-02-22 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-02-22 09:37:17] Production.INFO: count ==451 [2025-02-22 09:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:37:05 - End Time 2025-02-22 09:37:05 [2025-02-22 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531543', 'tblTempUsageDetail_20' ) start [2025-02-22 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531543', 'tblTempUsageDetail_20' ) end [2025-02-22 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531543', 'tblTempVendorCDR_20' ) start [2025-02-22 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531543', 'tblTempVendorCDR_20' ) end [2025-02-22 09:37:17] Production.INFO: ProcessCDR(1,14531543,1,1,2) [2025-02-22 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531543', 'tblTempUsageDetail_20' ) start [2025-02-22 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531543', 'tblTempUsageDetail_20' ) end [2025-02-22 09:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:37:20] Production.INFO: ==10218== Releasing lock... [2025-02-22 09:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:37:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:38:05 [end_date_ymd] => 2025-02-22 09:38:05 [RateCDR] => 1 ) [2025-02-22 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:38:05' and `end` < '2025-02-22 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:38:17] Production.INFO: count ==451 [2025-02-22 09:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:38:05 - End Time 2025-02-22 09:38:05 [2025-02-22 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531548', 'tblTempUsageDetail_20' ) start [2025-02-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531548', 'tblTempUsageDetail_20' ) end [2025-02-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531548', 'tblTempVendorCDR_20' ) start [2025-02-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531548', 'tblTempVendorCDR_20' ) end [2025-02-22 09:38:17] Production.INFO: ProcessCDR(1,14531548,1,1,2) [2025-02-22 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531548', 'tblTempUsageDetail_20' ) start [2025-02-22 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531548', 'tblTempUsageDetail_20' ) end [2025-02-22 09:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:38:20] Production.INFO: ==10350== Releasing lock... [2025-02-22 09:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:39:05 [end_date_ymd] => 2025-02-22 09:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:39:05' and `end` < '2025-02-22 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-02-22 09:39:17] Production.INFO: count ==452 [2025-02-22 09:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:39:05 - End Time 2025-02-22 09:39:05 [2025-02-22 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531553', 'tblTempUsageDetail_20' ) start [2025-02-22 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531553', 'tblTempUsageDetail_20' ) end [2025-02-22 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531553', 'tblTempVendorCDR_20' ) start [2025-02-22 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531553', 'tblTempVendorCDR_20' ) end [2025-02-22 09:39:17] Production.INFO: ProcessCDR(1,14531553,1,1,2) [2025-02-22 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531553', 'tblTempUsageDetail_20' ) start [2025-02-22 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531553', 'tblTempUsageDetail_20' ) end [2025-02-22 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:39:21] Production.INFO: ==10442== Releasing lock... [2025-02-22 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:40:06 [end_date_ymd] => 2025-02-22 09:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:40:06' and `end` < '2025-02-22 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-02-22 09:40:18] Production.INFO: count ==470 [2025-02-22 09:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:40:06 - End Time 2025-02-22 09:40:06 [2025-02-22 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531558', 'tblTempUsageDetail_20' ) start [2025-02-22 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531558', 'tblTempUsageDetail_20' ) end [2025-02-22 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531558', 'tblTempVendorCDR_20' ) start [2025-02-22 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531558', 'tblTempVendorCDR_20' ) end [2025-02-22 09:40:18] Production.INFO: ProcessCDR(1,14531558,1,1,2) [2025-02-22 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531558', 'tblTempUsageDetail_20' ) start [2025-02-22 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531558', 'tblTempUsageDetail_20' ) end [2025-02-22 09:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:40:21] Production.INFO: ==10549== Releasing lock... [2025-02-22 09:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:40:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:41:05 [end_date_ymd] => 2025-02-22 09:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:41:05' and `end` < '2025-02-22 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-02-22 09:41:17] Production.INFO: count ==485 [2025-02-22 09:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:41:05 - End Time 2025-02-22 09:41:05 [2025-02-22 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531564', 'tblTempUsageDetail_20' ) start [2025-02-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531564', 'tblTempUsageDetail_20' ) end [2025-02-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531564', 'tblTempVendorCDR_20' ) start [2025-02-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531564', 'tblTempVendorCDR_20' ) end [2025-02-22 09:41:17] Production.INFO: ProcessCDR(1,14531564,1,1,2) [2025-02-22 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531564', 'tblTempUsageDetail_20' ) start [2025-02-22 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531564', 'tblTempUsageDetail_20' ) end [2025-02-22 09:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:41:20] Production.INFO: ==10645== Releasing lock... [2025-02-22 09:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:41:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:42:05 [end_date_ymd] => 2025-02-22 09:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:42:05' and `end` < '2025-02-22 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-02-22 09:42:17] Production.INFO: count ==487 [2025-02-22 09:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:42:05 - End Time 2025-02-22 09:42:05 [2025-02-22 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531569', 'tblTempUsageDetail_20' ) start [2025-02-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531569', 'tblTempUsageDetail_20' ) end [2025-02-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531569', 'tblTempVendorCDR_20' ) start [2025-02-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531569', 'tblTempVendorCDR_20' ) end [2025-02-22 09:42:17] Production.INFO: ProcessCDR(1,14531569,1,1,2) [2025-02-22 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531569', 'tblTempUsageDetail_20' ) start [2025-02-22 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531569', 'tblTempUsageDetail_20' ) end [2025-02-22 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:42:22] Production.INFO: ==10735== Releasing lock... [2025-02-22 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:43:05 [end_date_ymd] => 2025-02-22 09:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:43:05' and `end` < '2025-02-22 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-02-22 09:43:16] Production.INFO: count ==492 [2025-02-22 09:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:43:05 - End Time 2025-02-22 09:43:05 [2025-02-22 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531574', 'tblTempUsageDetail_20' ) start [2025-02-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531574', 'tblTempUsageDetail_20' ) end [2025-02-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531574', 'tblTempVendorCDR_20' ) start [2025-02-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531574', 'tblTempVendorCDR_20' ) end [2025-02-22 09:43:17] Production.INFO: ProcessCDR(1,14531574,1,1,2) [2025-02-22 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531574', 'tblTempUsageDetail_20' ) start [2025-02-22 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531574', 'tblTempUsageDetail_20' ) end [2025-02-22 09:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:43:20] Production.INFO: ==10828== Releasing lock... [2025-02-22 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:43:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:44:05 [end_date_ymd] => 2025-02-22 09:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:44:05' and `end` < '2025-02-22 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-02-22 09:44:17] Production.INFO: count ==503 [2025-02-22 09:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:44:05 - End Time 2025-02-22 09:44:05 [2025-02-22 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531579', 'tblTempUsageDetail_20' ) start [2025-02-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531579', 'tblTempUsageDetail_20' ) end [2025-02-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531579', 'tblTempVendorCDR_20' ) start [2025-02-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531579', 'tblTempVendorCDR_20' ) end [2025-02-22 09:44:17] Production.INFO: ProcessCDR(1,14531579,1,1,2) [2025-02-22 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531579', 'tblTempUsageDetail_20' ) start [2025-02-22 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531579', 'tblTempUsageDetail_20' ) end [2025-02-22 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:44:22] Production.INFO: ==10920== Releasing lock... [2025-02-22 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:45:05 [end_date_ymd] => 2025-02-22 09:45:05 [RateCDR] => 1 ) [2025-02-22 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:45:05' and `end` < '2025-02-22 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:45:17] Production.INFO: count ==514 [2025-02-22 09:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:45:05 - End Time 2025-02-22 09:45:05 [2025-02-22 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531584', 'tblTempUsageDetail_20' ) start [2025-02-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531584', 'tblTempUsageDetail_20' ) end [2025-02-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531584', 'tblTempVendorCDR_20' ) start [2025-02-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531584', 'tblTempVendorCDR_20' ) end [2025-02-22 09:45:17] Production.INFO: ProcessCDR(1,14531584,1,1,2) [2025-02-22 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531584', 'tblTempUsageDetail_20' ) start [2025-02-22 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531584', 'tblTempUsageDetail_20' ) end [2025-02-22 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:45:21] Production.INFO: ==11018== Releasing lock... [2025-02-22 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:46:05 [end_date_ymd] => 2025-02-22 09:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:46:05' and `end` < '2025-02-22 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-02-22 09:46:17] Production.INFO: count ==520 [2025-02-22 09:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:46:05 - End Time 2025-02-22 09:46:05 [2025-02-22 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531589', 'tblTempUsageDetail_20' ) start [2025-02-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531589', 'tblTempUsageDetail_20' ) end [2025-02-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531589', 'tblTempVendorCDR_20' ) start [2025-02-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531589', 'tblTempVendorCDR_20' ) end [2025-02-22 09:46:17] Production.INFO: ProcessCDR(1,14531589,1,1,2) [2025-02-22 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531589', 'tblTempUsageDetail_20' ) start [2025-02-22 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531589', 'tblTempUsageDetail_20' ) end [2025-02-22 09:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:46:20] Production.INFO: ==11109== Releasing lock... [2025-02-22 09:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:46:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:47:05 [end_date_ymd] => 2025-02-22 09:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:47:05' and `end` < '2025-02-22 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-02-22 09:47:17] Production.INFO: count ==527 [2025-02-22 09:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:47:05 - End Time 2025-02-22 09:47:05 [2025-02-22 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531594', 'tblTempUsageDetail_20' ) start [2025-02-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531594', 'tblTempUsageDetail_20' ) end [2025-02-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531594', 'tblTempVendorCDR_20' ) start [2025-02-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531594', 'tblTempVendorCDR_20' ) end [2025-02-22 09:47:17] Production.INFO: ProcessCDR(1,14531594,1,1,2) [2025-02-22 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531594', 'tblTempUsageDetail_20' ) start [2025-02-22 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531594', 'tblTempUsageDetail_20' ) end [2025-02-22 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:47:22] Production.INFO: ==11204== Releasing lock... [2025-02-22 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:47:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:48:05 [end_date_ymd] => 2025-02-22 09:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:48:05' and `end` < '2025-02-22 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-02-22 09:48:17] Production.INFO: count ==527 [2025-02-22 09:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:48:05 - End Time 2025-02-22 09:48:05 [2025-02-22 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531599', 'tblTempUsageDetail_20' ) start [2025-02-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531599', 'tblTempUsageDetail_20' ) end [2025-02-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531599', 'tblTempVendorCDR_20' ) start [2025-02-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531599', 'tblTempVendorCDR_20' ) end [2025-02-22 09:48:17] Production.INFO: ProcessCDR(1,14531599,1,1,2) [2025-02-22 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531599', 'tblTempUsageDetail_20' ) start [2025-02-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531599', 'tblTempUsageDetail_20' ) end [2025-02-22 09:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:48:20] Production.INFO: ==11288== Releasing lock... [2025-02-22 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:49:06 [end_date_ymd] => 2025-02-22 09:49:06 [RateCDR] => 1 ) [2025-02-22 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:49:06' and `end` < '2025-02-22 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:49:17] Production.INFO: count ==527 [2025-02-22 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:49:06 - End Time 2025-02-22 09:49:06 [2025-02-22 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531604', 'tblTempUsageDetail_20' ) start [2025-02-22 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531604', 'tblTempUsageDetail_20' ) end [2025-02-22 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531604', 'tblTempVendorCDR_20' ) start [2025-02-22 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531604', 'tblTempVendorCDR_20' ) end [2025-02-22 09:49:18] Production.INFO: ProcessCDR(1,14531604,1,1,2) [2025-02-22 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531604', 'tblTempUsageDetail_20' ) start [2025-02-22 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531604', 'tblTempUsageDetail_20' ) end [2025-02-22 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:49:21] Production.INFO: ==11376== Releasing lock... [2025-02-22 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:50:06 [end_date_ymd] => 2025-02-22 09:50:06 [RateCDR] => 1 ) [2025-02-22 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 06:50:06' and `end` < '2025-02-22 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 09:50:18] Production.INFO: count ==535 [2025-02-22 09:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:50:06 - End Time 2025-02-22 09:50:06 [2025-02-22 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531610', 'tblTempUsageDetail_20' ) start [2025-02-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531610', 'tblTempUsageDetail_20' ) end [2025-02-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531610', 'tblTempVendorCDR_20' ) start [2025-02-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531610', 'tblTempVendorCDR_20' ) end [2025-02-22 09:50:18] Production.INFO: ProcessCDR(1,14531610,1,1,2) [2025-02-22 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531610', 'tblTempUsageDetail_20' ) start [2025-02-22 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531610', 'tblTempUsageDetail_20' ) end [2025-02-22 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:50:22] Production.INFO: ==11469== Releasing lock... [2025-02-22 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-22 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:51:05 [end_date_ymd] => 2025-02-22 09:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:51:05' and `end` < '2025-02-22 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-02-22 09:51:17] Production.INFO: count ==550 [2025-02-22 09:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:51:05 - End Time 2025-02-22 09:51:05 [2025-02-22 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531615', 'tblTempUsageDetail_20' ) start [2025-02-22 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531615', 'tblTempUsageDetail_20' ) end [2025-02-22 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531615', 'tblTempVendorCDR_20' ) start [2025-02-22 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531615', 'tblTempVendorCDR_20' ) end [2025-02-22 09:51:17] Production.INFO: ProcessCDR(1,14531615,1,1,2) [2025-02-22 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531615', 'tblTempUsageDetail_20' ) start [2025-02-22 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531615', 'tblTempUsageDetail_20' ) end [2025-02-22 09:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:51:20] Production.INFO: ==11557== Releasing lock... [2025-02-22 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:51:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:52:05 [end_date_ymd] => 2025-02-22 09:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:52:05' and `end` < '2025-02-22 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-02-22 09:52:17] Production.INFO: count ==544 [2025-02-22 09:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:52:05 - End Time 2025-02-22 09:52:05 [2025-02-22 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531620', 'tblTempUsageDetail_20' ) start [2025-02-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531620', 'tblTempUsageDetail_20' ) end [2025-02-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531620', 'tblTempVendorCDR_20' ) start [2025-02-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531620', 'tblTempVendorCDR_20' ) end [2025-02-22 09:52:17] Production.INFO: ProcessCDR(1,14531620,1,1,2) [2025-02-22 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531620', 'tblTempUsageDetail_20' ) start [2025-02-22 09:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531620', 'tblTempUsageDetail_20' ) end [2025-02-22 09:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:52:20] Production.INFO: ==11641== Releasing lock... [2025-02-22 09:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:52:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:53:05 [end_date_ymd] => 2025-02-22 09:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:53:05' and `end` < '2025-02-22 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-02-22 09:53:17] Production.INFO: count ==547 [2025-02-22 09:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:53:05 - End Time 2025-02-22 09:53:05 [2025-02-22 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531625', 'tblTempUsageDetail_20' ) start [2025-02-22 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531625', 'tblTempUsageDetail_20' ) end [2025-02-22 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531625', 'tblTempVendorCDR_20' ) start [2025-02-22 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531625', 'tblTempVendorCDR_20' ) end [2025-02-22 09:53:17] Production.INFO: ProcessCDR(1,14531625,1,1,2) [2025-02-22 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531625', 'tblTempUsageDetail_20' ) start [2025-02-22 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531625', 'tblTempUsageDetail_20' ) end [2025-02-22 09:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:53:20] Production.INFO: ==11762== Releasing lock... [2025-02-22 09:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:53:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:54:06 [end_date_ymd] => 2025-02-22 09:54:06 [RateCDR] => 1 ) [2025-02-22 09: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-02-22 06:54:06' and `end` < '2025-02-22 09: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-02-22 09:54:18] Production.INFO: count ==547 [2025-02-22 09:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 06:54:06 - End Time 2025-02-22 09:54:06 [2025-02-22 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531630', 'tblTempUsageDetail_20' ) start [2025-02-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531630', 'tblTempUsageDetail_20' ) end [2025-02-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531630', 'tblTempVendorCDR_20' ) start [2025-02-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531630', 'tblTempVendorCDR_20' ) end [2025-02-22 09:54:18] Production.INFO: ProcessCDR(1,14531630,1,1,2) [2025-02-22 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531630', 'tblTempUsageDetail_20' ) start [2025-02-22 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531630', 'tblTempUsageDetail_20' ) end [2025-02-22 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:54:21] Production.INFO: ==11850== Releasing lock... [2025-02-22 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:54:21] Production.INFO: 33 MB #Memory Used# [2025-02-22 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:55:05 [end_date_ymd] => 2025-02-22 09:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:55:05' and `end` < '2025-02-22 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-02-22 09:55:17] Production.INFO: count ==563 [2025-02-22 09:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:55:05 - End Time 2025-02-22 09:55:05 [2025-02-22 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531635', 'tblTempUsageDetail_20' ) start [2025-02-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531635', 'tblTempUsageDetail_20' ) end [2025-02-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531635', 'tblTempVendorCDR_20' ) start [2025-02-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531635', 'tblTempVendorCDR_20' ) end [2025-02-22 09:55:17] Production.INFO: ProcessCDR(1,14531635,1,1,2) [2025-02-22 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531635', 'tblTempUsageDetail_20' ) start [2025-02-22 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531635', 'tblTempUsageDetail_20' ) end [2025-02-22 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:55:22] Production.INFO: ==11934== Releasing lock... [2025-02-22 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:56:05 [end_date_ymd] => 2025-02-22 09:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:56:05' and `end` < '2025-02-22 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-02-22 09:56:17] Production.INFO: count ==567 [2025-02-22 09:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:56:05 - End Time 2025-02-22 09:56:05 [2025-02-22 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531640', 'tblTempUsageDetail_20' ) start [2025-02-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531640', 'tblTempUsageDetail_20' ) end [2025-02-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531640', 'tblTempVendorCDR_20' ) start [2025-02-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531640', 'tblTempVendorCDR_20' ) end [2025-02-22 09:56:17] Production.INFO: ProcessCDR(1,14531640,1,1,2) [2025-02-22 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531640', 'tblTempUsageDetail_20' ) start [2025-02-22 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531640', 'tblTempUsageDetail_20' ) end [2025-02-22 09:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:56:20] Production.INFO: ==12018== Releasing lock... [2025-02-22 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:56:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:57:05 [end_date_ymd] => 2025-02-22 09:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:57:05' and `end` < '2025-02-22 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-02-22 09:57:17] Production.INFO: count ==567 [2025-02-22 09:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:57:05 - End Time 2025-02-22 09:57:05 [2025-02-22 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531645', 'tblTempUsageDetail_20' ) start [2025-02-22 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531645', 'tblTempUsageDetail_20' ) end [2025-02-22 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531645', 'tblTempVendorCDR_20' ) start [2025-02-22 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531645', 'tblTempVendorCDR_20' ) end [2025-02-22 09:57:17] Production.INFO: ProcessCDR(1,14531645,1,1,2) [2025-02-22 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531645', 'tblTempUsageDetail_20' ) start [2025-02-22 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531645', 'tblTempUsageDetail_20' ) end [2025-02-22 09:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:57:20] Production.INFO: ==12097== Releasing lock... [2025-02-22 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:57:20] Production.INFO: 33 MB #Memory Used# [2025-02-22 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:58:05 [end_date_ymd] => 2025-02-22 09:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:58:05' and `end` < '2025-02-22 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-02-22 09:58:17] Production.INFO: count ==572 [2025-02-22 09:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:58:05 - End Time 2025-02-22 09:58:05 [2025-02-22 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531650', 'tblTempUsageDetail_20' ) start [2025-02-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531650', 'tblTempUsageDetail_20' ) end [2025-02-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531650', 'tblTempVendorCDR_20' ) start [2025-02-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531650', 'tblTempVendorCDR_20' ) end [2025-02-22 09:58:17] Production.INFO: ProcessCDR(1,14531650,1,1,2) [2025-02-22 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531650', 'tblTempUsageDetail_20' ) start [2025-02-22 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531650', 'tblTempUsageDetail_20' ) end [2025-02-22 09:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:58:20] Production.INFO: ==12181== Releasing lock... [2025-02-22 09:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:58:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 06:59:05 [end_date_ymd] => 2025-02-22 09:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 06:59:05' and `end` < '2025-02-22 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-02-22 09:59:16] Production.INFO: count ==572 [2025-02-22 09:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 06:59:05 - End Time 2025-02-22 09:59:05 [2025-02-22 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531655', 'tblTempUsageDetail_20' ) start [2025-02-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531655', 'tblTempUsageDetail_20' ) end [2025-02-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531655', 'tblTempVendorCDR_20' ) start [2025-02-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531655', 'tblTempVendorCDR_20' ) end [2025-02-22 09:59:17] Production.INFO: ProcessCDR(1,14531655,1,1,2) [2025-02-22 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531655', 'tblTempUsageDetail_20' ) start [2025-02-22 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531655', 'tblTempUsageDetail_20' ) end [2025-02-22 09:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 09:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 09:59:20] Production.INFO: ==12264== Releasing lock... [2025-02-22 09:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 09:59:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-22 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:00:07 [end_date_ymd] => 2025-02-22 10:00:07 [RateCDR] => 1 ) [2025-02-22 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:00:07' and `end` < '2025-02-22 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:00:19] Production.INFO: count ==580 [2025-02-22 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 07:00:07 - End Time 2025-02-22 10:00:07 [2025-02-22 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531661', 'tblTempUsageDetail_20' ) start [2025-02-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531661', 'tblTempUsageDetail_20' ) end [2025-02-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531661', 'tblTempVendorCDR_20' ) start [2025-02-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531661', 'tblTempVendorCDR_20' ) end [2025-02-22 10:00:19] Production.INFO: ProcessCDR(1,14531661,1,1,2) [2025-02-22 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531661', 'tblTempUsageDetail_20' ) start [2025-02-22 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531661', 'tblTempUsageDetail_20' ) end [2025-02-22 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:00:22] Production.INFO: ==12351== Releasing lock... [2025-02-22 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-22 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:01:04 [end_date_ymd] => 2025-02-22 10:01:04 [RateCDR] => 1 ) [2025-02-22 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:01:04' and `end` < '2025-02-22 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:01:16] Production.INFO: count ==601 [2025-02-22 10:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:01:04 - End Time 2025-02-22 10:01:04 [2025-02-22 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531666', 'tblTempUsageDetail_20' ) start [2025-02-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531666', 'tblTempUsageDetail_20' ) end [2025-02-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531666', 'tblTempVendorCDR_20' ) start [2025-02-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531666', 'tblTempVendorCDR_20' ) end [2025-02-22 10:01:17] Production.INFO: ProcessCDR(1,14531666,1,1,2) [2025-02-22 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531666', 'tblTempUsageDetail_20' ) start [2025-02-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531666', 'tblTempUsageDetail_20' ) end [2025-02-22 10:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:01:20] Production.INFO: ==12444== Releasing lock... [2025-02-22 10:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:01:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:02:06 [end_date_ymd] => 2025-02-22 10:02:06 [RateCDR] => 1 ) [2025-02-22 10: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-02-22 07:02:06' and `end` < '2025-02-22 10: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-02-22 10:02:18] Production.INFO: count ==614 [2025-02-22 10:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:02:06 - End Time 2025-02-22 10:02:06 [2025-02-22 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531671', 'tblTempUsageDetail_20' ) start [2025-02-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531671', 'tblTempUsageDetail_20' ) end [2025-02-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531671', 'tblTempVendorCDR_20' ) start [2025-02-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531671', 'tblTempVendorCDR_20' ) end [2025-02-22 10:02:18] Production.INFO: ProcessCDR(1,14531671,1,1,2) [2025-02-22 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531671', 'tblTempUsageDetail_20' ) start [2025-02-22 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531671', 'tblTempUsageDetail_20' ) end [2025-02-22 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:02:23] Production.INFO: ==12558== Releasing lock... [2025-02-22 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:03:05 [end_date_ymd] => 2025-02-22 10:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:03:05' and `end` < '2025-02-22 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-02-22 10:03:17] Production.INFO: count ==639 [2025-02-22 10:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:03:05 - End Time 2025-02-22 10:03:05 [2025-02-22 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531676', 'tblTempUsageDetail_20' ) start [2025-02-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531676', 'tblTempUsageDetail_20' ) end [2025-02-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531676', 'tblTempVendorCDR_20' ) start [2025-02-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531676', 'tblTempVendorCDR_20' ) end [2025-02-22 10:03:17] Production.INFO: ProcessCDR(1,14531676,1,1,2) [2025-02-22 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531676', 'tblTempUsageDetail_20' ) start [2025-02-22 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531676', 'tblTempUsageDetail_20' ) end [2025-02-22 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:03:21] Production.INFO: ==12683== Releasing lock... [2025-02-22 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:04:05 [end_date_ymd] => 2025-02-22 10:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:04:05' and `end` < '2025-02-22 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-02-22 10:04:17] Production.INFO: count ==639 [2025-02-22 10:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:04:05 - End Time 2025-02-22 10:04:05 [2025-02-22 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531681', 'tblTempUsageDetail_20' ) start [2025-02-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531681', 'tblTempUsageDetail_20' ) end [2025-02-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531681', 'tblTempVendorCDR_20' ) start [2025-02-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531681', 'tblTempVendorCDR_20' ) end [2025-02-22 10:04:17] Production.INFO: ProcessCDR(1,14531681,1,1,2) [2025-02-22 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531681', 'tblTempUsageDetail_20' ) start [2025-02-22 10:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531681', 'tblTempUsageDetail_20' ) end [2025-02-22 10:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:04:20] Production.INFO: ==12814== Releasing lock... [2025-02-22 10:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:04:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:05:05 [end_date_ymd] => 2025-02-22 10:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:05:05' and `end` < '2025-02-22 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-02-22 10:05:17] Production.INFO: count ==642 [2025-02-22 10:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:05:05 - End Time 2025-02-22 10:05:05 [2025-02-22 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531686', 'tblTempUsageDetail_20' ) start [2025-02-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531686', 'tblTempUsageDetail_20' ) end [2025-02-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531686', 'tblTempVendorCDR_20' ) start [2025-02-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531686', 'tblTempVendorCDR_20' ) end [2025-02-22 10:05:17] Production.INFO: ProcessCDR(1,14531686,1,1,2) [2025-02-22 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531686', 'tblTempUsageDetail_20' ) start [2025-02-22 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531686', 'tblTempUsageDetail_20' ) end [2025-02-22 10:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:05:20] Production.INFO: ==12915== Releasing lock... [2025-02-22 10:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:05:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-22 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:06:05 [end_date_ymd] => 2025-02-22 10:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:06:05' and `end` < '2025-02-22 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-02-22 10:06:17] Production.INFO: count ==655 [2025-02-22 10:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:06:05 - End Time 2025-02-22 10:06:05 [2025-02-22 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531691', 'tblTempUsageDetail_20' ) start [2025-02-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531691', 'tblTempUsageDetail_20' ) end [2025-02-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531691', 'tblTempVendorCDR_20' ) start [2025-02-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531691', 'tblTempVendorCDR_20' ) end [2025-02-22 10:06:17] Production.INFO: ProcessCDR(1,14531691,1,1,2) [2025-02-22 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531691', 'tblTempUsageDetail_20' ) start [2025-02-22 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531691', 'tblTempUsageDetail_20' ) end [2025-02-22 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:06:22] Production.INFO: ==12998== Releasing lock... [2025-02-22 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:07:05 [end_date_ymd] => 2025-02-22 10:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:07:05' and `end` < '2025-02-22 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-02-22 10:07:16] Production.INFO: count ==663 [2025-02-22 10:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:07:05 - End Time 2025-02-22 10:07:05 [2025-02-22 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531696', 'tblTempUsageDetail_20' ) start [2025-02-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531696', 'tblTempUsageDetail_20' ) end [2025-02-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531696', 'tblTempVendorCDR_20' ) start [2025-02-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531696', 'tblTempVendorCDR_20' ) end [2025-02-22 10:07:17] Production.INFO: ProcessCDR(1,14531696,1,1,2) [2025-02-22 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531696', 'tblTempUsageDetail_20' ) start [2025-02-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531696', 'tblTempUsageDetail_20' ) end [2025-02-22 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:07:21] Production.INFO: ==13082== Releasing lock... [2025-02-22 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:08:05 [end_date_ymd] => 2025-02-22 10:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:08:05' and `end` < '2025-02-22 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-02-22 10:08:17] Production.INFO: count ==676 [2025-02-22 10:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:08:05 - End Time 2025-02-22 10:08:05 [2025-02-22 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531701', 'tblTempUsageDetail_20' ) start [2025-02-22 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531701', 'tblTempUsageDetail_20' ) end [2025-02-22 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531701', 'tblTempVendorCDR_20' ) start [2025-02-22 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531701', 'tblTempVendorCDR_20' ) end [2025-02-22 10:08:17] Production.INFO: ProcessCDR(1,14531701,1,1,2) [2025-02-22 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531701', 'tblTempUsageDetail_20' ) start [2025-02-22 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531701', 'tblTempUsageDetail_20' ) end [2025-02-22 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:08:21] Production.INFO: ==13174== Releasing lock... [2025-02-22 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:09:06 [end_date_ymd] => 2025-02-22 10:09:06 [RateCDR] => 1 ) [2025-02-22 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:09:06' and `end` < '2025-02-22 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:09:17] Production.INFO: count ==685 [2025-02-22 10:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:09:06 - End Time 2025-02-22 10:09:06 [2025-02-22 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531706', 'tblTempUsageDetail_20' ) start [2025-02-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531706', 'tblTempUsageDetail_20' ) end [2025-02-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531706', 'tblTempVendorCDR_20' ) start [2025-02-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531706', 'tblTempVendorCDR_20' ) end [2025-02-22 10:09:18] Production.INFO: ProcessCDR(1,14531706,1,1,2) [2025-02-22 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531706', 'tblTempUsageDetail_20' ) start [2025-02-22 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531706', 'tblTempUsageDetail_20' ) end [2025-02-22 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:09:22] Production.INFO: ==13302== Releasing lock... [2025-02-22 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:10:05 [end_date_ymd] => 2025-02-22 10:10:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:10:05' and `end` < '2025-02-22 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-02-22 10:10:17] Production.INFO: count ==692 [2025-02-22 10:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:10:05 - End Time 2025-02-22 10:10:05 [2025-02-22 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531712', 'tblTempUsageDetail_20' ) start [2025-02-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531712', 'tblTempUsageDetail_20' ) end [2025-02-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531712', 'tblTempVendorCDR_20' ) start [2025-02-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531712', 'tblTempVendorCDR_20' ) end [2025-02-22 10:10:18] Production.INFO: ProcessCDR(1,14531712,1,1,2) [2025-02-22 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531712', 'tblTempUsageDetail_20' ) start [2025-02-22 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531712', 'tblTempUsageDetail_20' ) end [2025-02-22 10:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:10:22] Production.INFO: ==13396== Releasing lock... [2025-02-22 10:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:11:06 [end_date_ymd] => 2025-02-22 10:11:06 [RateCDR] => 1 ) [2025-02-22 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:11:06' and `end` < '2025-02-22 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:11:18] Production.INFO: count ==720 [2025-02-22 10:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:11:06 - End Time 2025-02-22 10:11:06 [2025-02-22 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531717', 'tblTempUsageDetail_20' ) start [2025-02-22 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531717', 'tblTempUsageDetail_20' ) end [2025-02-22 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531717', 'tblTempVendorCDR_20' ) start [2025-02-22 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531717', 'tblTempVendorCDR_20' ) end [2025-02-22 10:11:18] Production.INFO: ProcessCDR(1,14531717,1,1,2) [2025-02-22 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531717', 'tblTempUsageDetail_20' ) start [2025-02-22 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531717', 'tblTempUsageDetail_20' ) end [2025-02-22 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:11:21] Production.INFO: ==13486== Releasing lock... [2025-02-22 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:12:05 [end_date_ymd] => 2025-02-22 10:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:12:05' and `end` < '2025-02-22 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-02-22 10:12:17] Production.INFO: count ==741 [2025-02-22 10:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:12:05 - End Time 2025-02-22 10:12:05 [2025-02-22 10:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531722', 'tblTempUsageDetail_20' ) start [2025-02-22 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531722', 'tblTempUsageDetail_20' ) end [2025-02-22 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531722', 'tblTempVendorCDR_20' ) start [2025-02-22 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531722', 'tblTempVendorCDR_20' ) end [2025-02-22 10:12:17] Production.INFO: ProcessCDR(1,14531722,1,1,2) [2025-02-22 10:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531722', 'tblTempUsageDetail_20' ) start [2025-02-22 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531722', 'tblTempUsageDetail_20' ) end [2025-02-22 10:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:12:21] Production.INFO: ==13570== Releasing lock... [2025-02-22 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:13:06 [end_date_ymd] => 2025-02-22 10:13:06 [RateCDR] => 1 ) [2025-02-22 10: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-02-22 07:13:06' and `end` < '2025-02-22 10: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-02-22 10:13:18] Production.INFO: count ==747 [2025-02-22 10:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:13:06 - End Time 2025-02-22 10:13:06 [2025-02-22 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531727', 'tblTempUsageDetail_20' ) start [2025-02-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531727', 'tblTempUsageDetail_20' ) end [2025-02-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531727', 'tblTempVendorCDR_20' ) start [2025-02-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531727', 'tblTempVendorCDR_20' ) end [2025-02-22 10:13:18] Production.INFO: ProcessCDR(1,14531727,1,1,2) [2025-02-22 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531727', 'tblTempUsageDetail_20' ) start [2025-02-22 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531727', 'tblTempUsageDetail_20' ) end [2025-02-22 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:13:21] Production.INFO: ==13651== Releasing lock... [2025-02-22 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:13:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:14:05 [end_date_ymd] => 2025-02-22 10:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:14:05' and `end` < '2025-02-22 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-02-22 10:14:17] Production.INFO: count ==748 [2025-02-22 10:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:14:05 - End Time 2025-02-22 10:14:05 [2025-02-22 10:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531732', 'tblTempUsageDetail_20' ) start [2025-02-22 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531732', 'tblTempUsageDetail_20' ) end [2025-02-22 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531732', 'tblTempVendorCDR_20' ) start [2025-02-22 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531732', 'tblTempVendorCDR_20' ) end [2025-02-22 10:14:17] Production.INFO: ProcessCDR(1,14531732,1,1,2) [2025-02-22 10:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531732', 'tblTempUsageDetail_20' ) start [2025-02-22 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531732', 'tblTempUsageDetail_20' ) end [2025-02-22 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:14:22] Production.INFO: ==13735== Releasing lock... [2025-02-22 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:14:22] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:15:05 [end_date_ymd] => 2025-02-22 10:15:05 [RateCDR] => 1 ) [2025-02-22 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:15:05' and `end` < '2025-02-22 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:15:17] Production.INFO: count ==749 [2025-02-22 10:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:15:05 - End Time 2025-02-22 10:15:05 [2025-02-22 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531737', 'tblTempUsageDetail_20' ) start [2025-02-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531737', 'tblTempUsageDetail_20' ) end [2025-02-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531737', 'tblTempVendorCDR_20' ) start [2025-02-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531737', 'tblTempVendorCDR_20' ) end [2025-02-22 10:15:17] Production.INFO: ProcessCDR(1,14531737,1,1,2) [2025-02-22 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531737', 'tblTempUsageDetail_20' ) start [2025-02-22 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531737', 'tblTempUsageDetail_20' ) end [2025-02-22 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:15:22] Production.INFO: ==13823== Releasing lock... [2025-02-22 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:16:05 [end_date_ymd] => 2025-02-22 10:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:16:05' and `end` < '2025-02-22 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-02-22 10:16:17] Production.INFO: count ==755 [2025-02-22 10:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:16:05 - End Time 2025-02-22 10:16:05 [2025-02-22 10:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531742', 'tblTempUsageDetail_20' ) start [2025-02-22 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531742', 'tblTempUsageDetail_20' ) end [2025-02-22 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531742', 'tblTempVendorCDR_20' ) start [2025-02-22 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531742', 'tblTempVendorCDR_20' ) end [2025-02-22 10:16:17] Production.INFO: ProcessCDR(1,14531742,1,1,2) [2025-02-22 10:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531742', 'tblTempUsageDetail_20' ) start [2025-02-22 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531742', 'tblTempUsageDetail_20' ) end [2025-02-22 10:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:16:20] Production.INFO: ==13904== Releasing lock... [2025-02-22 10:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:16:20] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:17:05 [end_date_ymd] => 2025-02-22 10:17:05 [RateCDR] => 1 ) [2025-02-22 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:17:05' and `end` < '2025-02-22 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:17:17] Production.INFO: count ==755 [2025-02-22 10:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:17:05 - End Time 2025-02-22 10:17:05 [2025-02-22 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531747', 'tblTempUsageDetail_20' ) start [2025-02-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531747', 'tblTempUsageDetail_20' ) end [2025-02-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531747', 'tblTempVendorCDR_20' ) start [2025-02-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531747', 'tblTempVendorCDR_20' ) end [2025-02-22 10:17:18] Production.INFO: ProcessCDR(1,14531747,1,1,2) [2025-02-22 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531747', 'tblTempUsageDetail_20' ) start [2025-02-22 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531747', 'tblTempUsageDetail_20' ) end [2025-02-22 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:17:21] Production.INFO: ==13986== Releasing lock... [2025-02-22 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:18:05 [end_date_ymd] => 2025-02-22 10:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:18:05' and `end` < '2025-02-22 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-02-22 10:18:17] Production.INFO: count ==756 [2025-02-22 10:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:18:05 - End Time 2025-02-22 10:18:05 [2025-02-22 10:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531752', 'tblTempUsageDetail_20' ) start [2025-02-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531752', 'tblTempUsageDetail_20' ) end [2025-02-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531752', 'tblTempVendorCDR_20' ) start [2025-02-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531752', 'tblTempVendorCDR_20' ) end [2025-02-22 10:18:17] Production.INFO: ProcessCDR(1,14531752,1,1,2) [2025-02-22 10:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531752', 'tblTempUsageDetail_20' ) start [2025-02-22 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531752', 'tblTempUsageDetail_20' ) end [2025-02-22 10:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:18:22] Production.INFO: ==14068== Releasing lock... [2025-02-22 10:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-22 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:19:05 [end_date_ymd] => 2025-02-22 10:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:19:05' and `end` < '2025-02-22 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-02-22 10:19:17] Production.INFO: count ==762 [2025-02-22 10:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:19:05 - End Time 2025-02-22 10:19:05 [2025-02-22 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531757', 'tblTempUsageDetail_20' ) start [2025-02-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531757', 'tblTempUsageDetail_20' ) end [2025-02-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531757', 'tblTempVendorCDR_20' ) start [2025-02-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531757', 'tblTempVendorCDR_20' ) end [2025-02-22 10:19:17] Production.INFO: ProcessCDR(1,14531757,1,1,2) [2025-02-22 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531757', 'tblTempUsageDetail_20' ) start [2025-02-22 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531757', 'tblTempUsageDetail_20' ) end [2025-02-22 10:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:19:20] Production.INFO: ==14150== Releasing lock... [2025-02-22 10:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:19:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:20:07 [end_date_ymd] => 2025-02-22 10:20:07 [RateCDR] => 1 ) [2025-02-22 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:20:07' and `end` < '2025-02-22 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:20:18] Production.INFO: count ==767 [2025-02-22 10:20:19] Production.ERROR: pbx CDR StartTime 2025-02-22 07:20:07 - End Time 2025-02-22 10:20:07 [2025-02-22 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531762', 'tblTempUsageDetail_20' ) start [2025-02-22 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531762', 'tblTempUsageDetail_20' ) end [2025-02-22 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531762', 'tblTempVendorCDR_20' ) start [2025-02-22 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531762', 'tblTempVendorCDR_20' ) end [2025-02-22 10:20:19] Production.INFO: ProcessCDR(1,14531762,1,1,2) [2025-02-22 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531762', 'tblTempUsageDetail_20' ) start [2025-02-22 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531762', 'tblTempUsageDetail_20' ) end [2025-02-22 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:20:23] Production.INFO: ==14233== Releasing lock... [2025-02-22 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:20:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-22 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:21:05 [end_date_ymd] => 2025-02-22 10:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:21:05' and `end` < '2025-02-22 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-02-22 10:21:17] Production.INFO: count ==779 [2025-02-22 10:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:21:05 - End Time 2025-02-22 10:21:05 [2025-02-22 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531768', 'tblTempUsageDetail_20' ) start [2025-02-22 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531768', 'tblTempUsageDetail_20' ) end [2025-02-22 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531768', 'tblTempVendorCDR_20' ) start [2025-02-22 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531768', 'tblTempVendorCDR_20' ) end [2025-02-22 10:21:17] Production.INFO: ProcessCDR(1,14531768,1,1,2) [2025-02-22 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531768', 'tblTempUsageDetail_20' ) start [2025-02-22 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531768', 'tblTempUsageDetail_20' ) end [2025-02-22 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:21:22] Production.INFO: ==14316== Releasing lock... [2025-02-22 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:22:05 [end_date_ymd] => 2025-02-22 10:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:22:05' and `end` < '2025-02-22 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-02-22 10:22:17] Production.INFO: count ==780 [2025-02-22 10:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:22:05 - End Time 2025-02-22 10:22:05 [2025-02-22 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531773', 'tblTempUsageDetail_20' ) start [2025-02-22 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531773', 'tblTempUsageDetail_20' ) end [2025-02-22 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531773', 'tblTempVendorCDR_20' ) start [2025-02-22 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531773', 'tblTempVendorCDR_20' ) end [2025-02-22 10:22:18] Production.INFO: ProcessCDR(1,14531773,1,1,2) [2025-02-22 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531773', 'tblTempUsageDetail_20' ) start [2025-02-22 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531773', 'tblTempUsageDetail_20' ) end [2025-02-22 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:22:22] Production.INFO: ==14397== Releasing lock... [2025-02-22 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:22:22] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:23:05 [end_date_ymd] => 2025-02-22 10:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:23:05' and `end` < '2025-02-22 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-02-22 10:23:17] Production.INFO: count ==780 [2025-02-22 10:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:23:05 - End Time 2025-02-22 10:23:05 [2025-02-22 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531778', 'tblTempUsageDetail_20' ) start [2025-02-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531778', 'tblTempUsageDetail_20' ) end [2025-02-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531778', 'tblTempVendorCDR_20' ) start [2025-02-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531778', 'tblTempVendorCDR_20' ) end [2025-02-22 10:23:17] Production.INFO: ProcessCDR(1,14531778,1,1,2) [2025-02-22 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531778', 'tblTempUsageDetail_20' ) start [2025-02-22 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531778', 'tblTempUsageDetail_20' ) end [2025-02-22 10:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:23:20] Production.INFO: ==14477== Releasing lock... [2025-02-22 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:23:20] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:24:06 [end_date_ymd] => 2025-02-22 10:24:06 [RateCDR] => 1 ) [2025-02-22 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:24:06' and `end` < '2025-02-22 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:24:17] Production.INFO: count ==781 [2025-02-22 10:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:24:06 - End Time 2025-02-22 10:24:06 [2025-02-22 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531783', 'tblTempUsageDetail_20' ) start [2025-02-22 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531783', 'tblTempUsageDetail_20' ) end [2025-02-22 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531783', 'tblTempVendorCDR_20' ) start [2025-02-22 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531783', 'tblTempVendorCDR_20' ) end [2025-02-22 10:24:18] Production.INFO: ProcessCDR(1,14531783,1,1,2) [2025-02-22 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531783', 'tblTempUsageDetail_20' ) start [2025-02-22 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531783', 'tblTempUsageDetail_20' ) end [2025-02-22 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:24:22] Production.INFO: ==14593== Releasing lock... [2025-02-22 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:25:05 [end_date_ymd] => 2025-02-22 10:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:25:05' and `end` < '2025-02-22 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-02-22 10:25:17] Production.INFO: count ==781 [2025-02-22 10:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:25:05 - End Time 2025-02-22 10:25:05 [2025-02-22 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531788', 'tblTempUsageDetail_20' ) start [2025-02-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531788', 'tblTempUsageDetail_20' ) end [2025-02-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531788', 'tblTempVendorCDR_20' ) start [2025-02-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531788', 'tblTempVendorCDR_20' ) end [2025-02-22 10:25:17] Production.INFO: ProcessCDR(1,14531788,1,1,2) [2025-02-22 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531788', 'tblTempUsageDetail_20' ) start [2025-02-22 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531788', 'tblTempUsageDetail_20' ) end [2025-02-22 10:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:25:20] Production.INFO: ==14675== Releasing lock... [2025-02-22 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:25:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:26:05 [end_date_ymd] => 2025-02-22 10:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:26:05' and `end` < '2025-02-22 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-02-22 10:26:17] Production.INFO: count ==780 [2025-02-22 10:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:26:05 - End Time 2025-02-22 10:26:05 [2025-02-22 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531793', 'tblTempUsageDetail_20' ) start [2025-02-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531793', 'tblTempUsageDetail_20' ) end [2025-02-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531793', 'tblTempVendorCDR_20' ) start [2025-02-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531793', 'tblTempVendorCDR_20' ) end [2025-02-22 10:26:17] Production.INFO: ProcessCDR(1,14531793,1,1,2) [2025-02-22 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531793', 'tblTempUsageDetail_20' ) start [2025-02-22 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531793', 'tblTempUsageDetail_20' ) end [2025-02-22 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:26:21] Production.INFO: ==14754== Releasing lock... [2025-02-22 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:26:21] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:27:05 [end_date_ymd] => 2025-02-22 10:27:05 [RateCDR] => 1 ) [2025-02-22 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:27:05' and `end` < '2025-02-22 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:27:17] Production.INFO: count ==780 [2025-02-22 10:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:27:05 - End Time 2025-02-22 10:27:05 [2025-02-22 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531798', 'tblTempUsageDetail_20' ) start [2025-02-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531798', 'tblTempUsageDetail_20' ) end [2025-02-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531798', 'tblTempVendorCDR_20' ) start [2025-02-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531798', 'tblTempVendorCDR_20' ) end [2025-02-22 10:27:17] Production.INFO: ProcessCDR(1,14531798,1,1,2) [2025-02-22 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531798', 'tblTempUsageDetail_20' ) start [2025-02-22 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531798', 'tblTempUsageDetail_20' ) end [2025-02-22 10:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:27:20] Production.INFO: ==14834== Releasing lock... [2025-02-22 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:27:20] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:28:05 [end_date_ymd] => 2025-02-22 10:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:28:05' and `end` < '2025-02-22 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-02-22 10:28:17] Production.INFO: count ==780 [2025-02-22 10:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:28:05 - End Time 2025-02-22 10:28:05 [2025-02-22 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531803', 'tblTempUsageDetail_20' ) start [2025-02-22 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531803', 'tblTempUsageDetail_20' ) end [2025-02-22 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531803', 'tblTempVendorCDR_20' ) start [2025-02-22 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531803', 'tblTempVendorCDR_20' ) end [2025-02-22 10:28:18] Production.INFO: ProcessCDR(1,14531803,1,1,2) [2025-02-22 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531803', 'tblTempUsageDetail_20' ) start [2025-02-22 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531803', 'tblTempUsageDetail_20' ) end [2025-02-22 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:28:21] Production.INFO: ==14923== Releasing lock... [2025-02-22 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:28:21] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:29:05 [end_date_ymd] => 2025-02-22 10:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:29:05' and `end` < '2025-02-22 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-02-22 10:29:17] Production.INFO: count ==782 [2025-02-22 10:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:29:05 - End Time 2025-02-22 10:29:05 [2025-02-22 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531808', 'tblTempUsageDetail_20' ) start [2025-02-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531808', 'tblTempUsageDetail_20' ) end [2025-02-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531808', 'tblTempVendorCDR_20' ) start [2025-02-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531808', 'tblTempVendorCDR_20' ) end [2025-02-22 10:29:17] Production.INFO: ProcessCDR(1,14531808,1,1,2) [2025-02-22 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531808', 'tblTempUsageDetail_20' ) start [2025-02-22 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531808', 'tblTempUsageDetail_20' ) end [2025-02-22 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:29:21] Production.INFO: ==15001== Releasing lock... [2025-02-22 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:29:21] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:30:06 [end_date_ymd] => 2025-02-22 10:30:06 [RateCDR] => 1 ) [2025-02-22 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:30:06' and `end` < '2025-02-22 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:30:18] Production.INFO: count ==788 [2025-02-22 10:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 07:30:06 - End Time 2025-02-22 10:30:06 [2025-02-22 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531813', 'tblTempUsageDetail_20' ) start [2025-02-22 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531813', 'tblTempUsageDetail_20' ) end [2025-02-22 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531813', 'tblTempVendorCDR_20' ) start [2025-02-22 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531813', 'tblTempVendorCDR_20' ) end [2025-02-22 10:30:19] Production.INFO: ProcessCDR(1,14531813,1,1,2) [2025-02-22 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531813', 'tblTempUsageDetail_20' ) start [2025-02-22 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531813', 'tblTempUsageDetail_20' ) end [2025-02-22 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:30:23] Production.INFO: ==15088== Releasing lock... [2025-02-22 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:30:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:31:05 [end_date_ymd] => 2025-02-22 10:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:31:05' and `end` < '2025-02-22 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-02-22 10:31:16] Production.INFO: count ==822 [2025-02-22 10:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:31:05 - End Time 2025-02-22 10:31:05 [2025-02-22 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531819', 'tblTempUsageDetail_20' ) start [2025-02-22 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531819', 'tblTempUsageDetail_20' ) end [2025-02-22 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531819', 'tblTempVendorCDR_20' ) start [2025-02-22 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531819', 'tblTempVendorCDR_20' ) end [2025-02-22 10:31:17] Production.INFO: ProcessCDR(1,14531819,1,1,2) [2025-02-22 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531819', 'tblTempUsageDetail_20' ) start [2025-02-22 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531819', 'tblTempUsageDetail_20' ) end [2025-02-22 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:31:22] Production.INFO: ==15164== Releasing lock... [2025-02-22 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:32:05 [end_date_ymd] => 2025-02-22 10:32:05 [RateCDR] => 1 ) [2025-02-22 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:32:05' and `end` < '2025-02-22 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:32:17] Production.INFO: count ==828 [2025-02-22 10:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:32:05 - End Time 2025-02-22 10:32:05 [2025-02-22 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531824', 'tblTempUsageDetail_20' ) start [2025-02-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531824', 'tblTempUsageDetail_20' ) end [2025-02-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531824', 'tblTempVendorCDR_20' ) start [2025-02-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531824', 'tblTempVendorCDR_20' ) end [2025-02-22 10:32:17] Production.INFO: ProcessCDR(1,14531824,1,1,2) [2025-02-22 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531824', 'tblTempUsageDetail_20' ) start [2025-02-22 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531824', 'tblTempUsageDetail_20' ) end [2025-02-22 10:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:32:20] Production.INFO: ==15248== Releasing lock... [2025-02-22 10:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:32:20] Production.INFO: 34 MB #Memory Used# [2025-02-22 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:33:05 [end_date_ymd] => 2025-02-22 10:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:33:05' and `end` < '2025-02-22 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-02-22 10:33:17] Production.INFO: count ==837 [2025-02-22 10:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:33:05 - End Time 2025-02-22 10:33:05 [2025-02-22 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531829', 'tblTempUsageDetail_20' ) start [2025-02-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531829', 'tblTempUsageDetail_20' ) end [2025-02-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531829', 'tblTempVendorCDR_20' ) start [2025-02-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531829', 'tblTempVendorCDR_20' ) end [2025-02-22 10:33:17] Production.INFO: ProcessCDR(1,14531829,1,1,2) [2025-02-22 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531829', 'tblTempUsageDetail_20' ) start [2025-02-22 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531829', 'tblTempUsageDetail_20' ) end [2025-02-22 10:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:33:20] Production.INFO: ==15327== Releasing lock... [2025-02-22 10:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:33:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:34:05 [end_date_ymd] => 2025-02-22 10:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:34:05' and `end` < '2025-02-22 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-02-22 10:34:17] Production.INFO: count ==838 [2025-02-22 10:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:34:05 - End Time 2025-02-22 10:34:05 [2025-02-22 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531834', 'tblTempUsageDetail_20' ) start [2025-02-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531834', 'tblTempUsageDetail_20' ) end [2025-02-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531834', 'tblTempVendorCDR_20' ) start [2025-02-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531834', 'tblTempVendorCDR_20' ) end [2025-02-22 10:34:18] Production.INFO: ProcessCDR(1,14531834,1,1,2) [2025-02-22 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531834', 'tblTempUsageDetail_20' ) start [2025-02-22 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531834', 'tblTempUsageDetail_20' ) end [2025-02-22 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:34:21] Production.INFO: ==15408== Releasing lock... [2025-02-22 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:34:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-22 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:35:05 [end_date_ymd] => 2025-02-22 10:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:35:05' and `end` < '2025-02-22 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-02-22 10:35:17] Production.INFO: count ==848 [2025-02-22 10:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:35:05 - End Time 2025-02-22 10:35:05 [2025-02-22 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531839', 'tblTempUsageDetail_20' ) start [2025-02-22 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531839', 'tblTempUsageDetail_20' ) end [2025-02-22 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531839', 'tblTempVendorCDR_20' ) start [2025-02-22 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531839', 'tblTempVendorCDR_20' ) end [2025-02-22 10:35:17] Production.INFO: ProcessCDR(1,14531839,1,1,2) [2025-02-22 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531839', 'tblTempUsageDetail_20' ) start [2025-02-22 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531839', 'tblTempUsageDetail_20' ) end [2025-02-22 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:35:22] Production.INFO: ==15484== Releasing lock... [2025-02-22 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:36:05 [end_date_ymd] => 2025-02-22 10:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:36:05' and `end` < '2025-02-22 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-02-22 10:36:17] Production.INFO: count ==860 [2025-02-22 10:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:36:05 - End Time 2025-02-22 10:36:05 [2025-02-22 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531844', 'tblTempUsageDetail_20' ) start [2025-02-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531844', 'tblTempUsageDetail_20' ) end [2025-02-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531844', 'tblTempVendorCDR_20' ) start [2025-02-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531844', 'tblTempVendorCDR_20' ) end [2025-02-22 10:36:18] Production.INFO: ProcessCDR(1,14531844,1,1,2) [2025-02-22 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531844', 'tblTempUsageDetail_20' ) start [2025-02-22 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531844', 'tblTempUsageDetail_20' ) end [2025-02-22 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:36:21] Production.INFO: ==15572== Releasing lock... [2025-02-22 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:36:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:37:05 [end_date_ymd] => 2025-02-22 10:37:05 [RateCDR] => 1 ) [2025-02-22 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:37:05' and `end` < '2025-02-22 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:37:17] Production.INFO: count ==864 [2025-02-22 10:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:37:05 - End Time 2025-02-22 10:37:05 [2025-02-22 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531849', 'tblTempUsageDetail_20' ) start [2025-02-22 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531849', 'tblTempUsageDetail_20' ) end [2025-02-22 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531849', 'tblTempVendorCDR_20' ) start [2025-02-22 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531849', 'tblTempVendorCDR_20' ) end [2025-02-22 10:37:17] Production.INFO: ProcessCDR(1,14531849,1,1,2) [2025-02-22 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531849', 'tblTempUsageDetail_20' ) start [2025-02-22 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531849', 'tblTempUsageDetail_20' ) end [2025-02-22 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:37:22] Production.INFO: ==15648== Releasing lock... [2025-02-22 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:37:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:38:06 [end_date_ymd] => 2025-02-22 10:38:06 [RateCDR] => 1 ) [2025-02-22 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:38:06' and `end` < '2025-02-22 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:38:18] Production.INFO: count ==879 [2025-02-22 10:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:38:06 - End Time 2025-02-22 10:38:06 [2025-02-22 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531854', 'tblTempUsageDetail_20' ) start [2025-02-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531854', 'tblTempUsageDetail_20' ) end [2025-02-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531854', 'tblTempVendorCDR_20' ) start [2025-02-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531854', 'tblTempVendorCDR_20' ) end [2025-02-22 10:38:18] Production.INFO: ProcessCDR(1,14531854,1,1,2) [2025-02-22 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531854', 'tblTempUsageDetail_20' ) start [2025-02-22 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531854', 'tblTempUsageDetail_20' ) end [2025-02-22 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:38:21] Production.INFO: ==15730== Releasing lock... [2025-02-22 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-22 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:39:05 [end_date_ymd] => 2025-02-22 10:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:39:05' and `end` < '2025-02-22 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-02-22 10:39:17] Production.INFO: count ==886 [2025-02-22 10:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:39:05 - End Time 2025-02-22 10:39:05 [2025-02-22 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531859', 'tblTempUsageDetail_20' ) start [2025-02-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531859', 'tblTempUsageDetail_20' ) end [2025-02-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531859', 'tblTempVendorCDR_20' ) start [2025-02-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531859', 'tblTempVendorCDR_20' ) end [2025-02-22 10:39:17] Production.INFO: ProcessCDR(1,14531859,1,1,2) [2025-02-22 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531859', 'tblTempUsageDetail_20' ) start [2025-02-22 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531859', 'tblTempUsageDetail_20' ) end [2025-02-22 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:39:22] Production.INFO: ==15812== Releasing lock... [2025-02-22 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-22 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:40:06 [end_date_ymd] => 2025-02-22 10:40:06 [RateCDR] => 1 ) [2025-02-22 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:40:06' and `end` < '2025-02-22 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:40:18] Production.INFO: count ==889 [2025-02-22 10:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:40:06 - End Time 2025-02-22 10:40:06 [2025-02-22 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531865', 'tblTempUsageDetail_20' ) start [2025-02-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531865', 'tblTempUsageDetail_20' ) end [2025-02-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531865', 'tblTempVendorCDR_20' ) start [2025-02-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531865', 'tblTempVendorCDR_20' ) end [2025-02-22 10:40:18] Production.INFO: ProcessCDR(1,14531865,1,1,2) [2025-02-22 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531865', 'tblTempUsageDetail_20' ) start [2025-02-22 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531865', 'tblTempUsageDetail_20' ) end [2025-02-22 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:40:23] Production.INFO: ==15932== Releasing lock... [2025-02-22 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-22 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:41:05 [end_date_ymd] => 2025-02-22 10:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:41:05' and `end` < '2025-02-22 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-02-22 10:41:17] Production.INFO: count ==946 [2025-02-22 10:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:41:05 - End Time 2025-02-22 10:41:05 [2025-02-22 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531870', 'tblTempUsageDetail_20' ) start [2025-02-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531870', 'tblTempUsageDetail_20' ) end [2025-02-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531870', 'tblTempVendorCDR_20' ) start [2025-02-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531870', 'tblTempVendorCDR_20' ) end [2025-02-22 10:41:17] Production.INFO: ProcessCDR(1,14531870,1,1,2) [2025-02-22 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531870', 'tblTempUsageDetail_20' ) start [2025-02-22 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531870', 'tblTempUsageDetail_20' ) end [2025-02-22 10:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:41:20] Production.INFO: ==16013== Releasing lock... [2025-02-22 10:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:41:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:42:05 [end_date_ymd] => 2025-02-22 10:42:05 [RateCDR] => 1 ) [2025-02-22 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:42:05' and `end` < '2025-02-22 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:42:17] Production.INFO: count ==955 [2025-02-22 10:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:42:05 - End Time 2025-02-22 10:42:05 [2025-02-22 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531875', 'tblTempUsageDetail_20' ) start [2025-02-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531875', 'tblTempUsageDetail_20' ) end [2025-02-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531875', 'tblTempVendorCDR_20' ) start [2025-02-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531875', 'tblTempVendorCDR_20' ) end [2025-02-22 10:42:17] Production.INFO: ProcessCDR(1,14531875,1,1,2) [2025-02-22 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531875', 'tblTempUsageDetail_20' ) start [2025-02-22 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531875', 'tblTempUsageDetail_20' ) end [2025-02-22 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:42:22] Production.INFO: ==16097== Releasing lock... [2025-02-22 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:42:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:43:06 [end_date_ymd] => 2025-02-22 10:43:06 [RateCDR] => 1 ) [2025-02-22 10: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-02-22 07:43:06' and `end` < '2025-02-22 10: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-02-22 10:43:18] Production.INFO: count ==975 [2025-02-22 10:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:43:06 - End Time 2025-02-22 10:43:06 [2025-02-22 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531880', 'tblTempUsageDetail_20' ) start [2025-02-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531880', 'tblTempUsageDetail_20' ) end [2025-02-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531880', 'tblTempVendorCDR_20' ) start [2025-02-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531880', 'tblTempVendorCDR_20' ) end [2025-02-22 10:43:18] Production.INFO: ProcessCDR(1,14531880,1,1,2) [2025-02-22 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531880', 'tblTempUsageDetail_20' ) start [2025-02-22 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531880', 'tblTempUsageDetail_20' ) end [2025-02-22 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:43:23] Production.INFO: ==16179== Releasing lock... [2025-02-22 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:43:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:44:05 [end_date_ymd] => 2025-02-22 10:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:44:05' and `end` < '2025-02-22 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-02-22 10:44:17] Production.INFO: count ==978 [2025-02-22 10:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:44:05 - End Time 2025-02-22 10:44:05 [2025-02-22 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531885', 'tblTempUsageDetail_20' ) start [2025-02-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531885', 'tblTempUsageDetail_20' ) end [2025-02-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531885', 'tblTempVendorCDR_20' ) start [2025-02-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531885', 'tblTempVendorCDR_20' ) end [2025-02-22 10:44:17] Production.INFO: ProcessCDR(1,14531885,1,1,2) [2025-02-22 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531885', 'tblTempUsageDetail_20' ) start [2025-02-22 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531885', 'tblTempUsageDetail_20' ) end [2025-02-22 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:44:21] Production.INFO: ==16252== Releasing lock... [2025-02-22 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:44:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:45:05 [end_date_ymd] => 2025-02-22 10:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:45:05' and `end` < '2025-02-22 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-02-22 10:45:17] Production.INFO: count ==1001 [2025-02-22 10:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:45:05 - End Time 2025-02-22 10:45:05 [2025-02-22 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531890', 'tblTempUsageDetail_20' ) start [2025-02-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531890', 'tblTempUsageDetail_20' ) end [2025-02-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531890', 'tblTempVendorCDR_20' ) start [2025-02-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531890', 'tblTempVendorCDR_20' ) end [2025-02-22 10:45:17] Production.INFO: ProcessCDR(1,14531890,1,1,2) [2025-02-22 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531890', 'tblTempUsageDetail_20' ) start [2025-02-22 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531890', 'tblTempUsageDetail_20' ) end [2025-02-22 10:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:45:20] Production.INFO: ==16330== Releasing lock... [2025-02-22 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:45:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:46:05 [end_date_ymd] => 2025-02-22 10:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:46:05' and `end` < '2025-02-22 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-02-22 10:46:17] Production.INFO: count ==1006 [2025-02-22 10:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:46:05 - End Time 2025-02-22 10:46:05 [2025-02-22 10:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531895', 'tblTempUsageDetail_20' ) start [2025-02-22 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531895', 'tblTempUsageDetail_20' ) end [2025-02-22 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531895', 'tblTempVendorCDR_20' ) start [2025-02-22 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531895', 'tblTempVendorCDR_20' ) end [2025-02-22 10:46:17] Production.INFO: ProcessCDR(1,14531895,1,1,2) [2025-02-22 10:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531895', 'tblTempUsageDetail_20' ) start [2025-02-22 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531895', 'tblTempUsageDetail_20' ) end [2025-02-22 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:46:21] Production.INFO: ==16409== Releasing lock... [2025-02-22 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:46:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:47:05 [end_date_ymd] => 2025-02-22 10:47:05 [RateCDR] => 1 ) [2025-02-22 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:47:05' and `end` < '2025-02-22 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:47:17] Production.INFO: count ==1022 [2025-02-22 10:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:47:05 - End Time 2025-02-22 10:47:05 [2025-02-22 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531900', 'tblTempUsageDetail_20' ) start [2025-02-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531900', 'tblTempUsageDetail_20' ) end [2025-02-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531900', 'tblTempVendorCDR_20' ) start [2025-02-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531900', 'tblTempVendorCDR_20' ) end [2025-02-22 10:47:17] Production.INFO: ProcessCDR(1,14531900,1,1,2) [2025-02-22 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531900', 'tblTempUsageDetail_20' ) start [2025-02-22 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531900', 'tblTempUsageDetail_20' ) end [2025-02-22 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:47:21] Production.INFO: ==16493== Releasing lock... [2025-02-22 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:47:21] Production.INFO: 36 MB #Memory Used# [2025-02-22 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:48:05 [end_date_ymd] => 2025-02-22 10:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:48:05' and `end` < '2025-02-22 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-02-22 10:48:17] Production.INFO: count ==1037 [2025-02-22 10:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:48:05 - End Time 2025-02-22 10:48:05 [2025-02-22 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531905', 'tblTempUsageDetail_20' ) start [2025-02-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531905', 'tblTempUsageDetail_20' ) end [2025-02-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531905', 'tblTempVendorCDR_20' ) start [2025-02-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531905', 'tblTempVendorCDR_20' ) end [2025-02-22 10:48:18] Production.INFO: ProcessCDR(1,14531905,1,1,2) [2025-02-22 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531905', 'tblTempUsageDetail_20' ) start [2025-02-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531905', 'tblTempUsageDetail_20' ) end [2025-02-22 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:48:21] Production.INFO: ==16573== Releasing lock... [2025-02-22 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:48:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:49:05 [end_date_ymd] => 2025-02-22 10:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:49:05' and `end` < '2025-02-22 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-02-22 10:49:17] Production.INFO: count ==1053 [2025-02-22 10:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:49:05 - End Time 2025-02-22 10:49:05 [2025-02-22 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531910', 'tblTempUsageDetail_20' ) start [2025-02-22 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531910', 'tblTempUsageDetail_20' ) end [2025-02-22 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531910', 'tblTempVendorCDR_20' ) start [2025-02-22 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531910', 'tblTempVendorCDR_20' ) end [2025-02-22 10:49:18] Production.INFO: ProcessCDR(1,14531910,1,1,2) [2025-02-22 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531910', 'tblTempUsageDetail_20' ) start [2025-02-22 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531910', 'tblTempUsageDetail_20' ) end [2025-02-22 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:49:21] Production.INFO: ==16652== Releasing lock... [2025-02-22 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:50:05 [end_date_ymd] => 2025-02-22 10:50:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:50:05' and `end` < '2025-02-22 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-02-22 10:50:17] Production.INFO: count ==1052 [2025-02-22 10:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:50:05 - End Time 2025-02-22 10:50:05 [2025-02-22 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531915', 'tblTempUsageDetail_20' ) start [2025-02-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531915', 'tblTempUsageDetail_20' ) end [2025-02-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531915', 'tblTempVendorCDR_20' ) start [2025-02-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531915', 'tblTempVendorCDR_20' ) end [2025-02-22 10:50:18] Production.INFO: ProcessCDR(1,14531915,1,1,2) [2025-02-22 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531915', 'tblTempUsageDetail_20' ) start [2025-02-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531915', 'tblTempUsageDetail_20' ) end [2025-02-22 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:50:22] Production.INFO: ==16733== Releasing lock... [2025-02-22 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-22 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:51:05 [end_date_ymd] => 2025-02-22 10:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:51:05' and `end` < '2025-02-22 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-02-22 10:51:17] Production.INFO: count ==1092 [2025-02-22 10:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:51:05 - End Time 2025-02-22 10:51:05 [2025-02-22 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531921', 'tblTempUsageDetail_20' ) start [2025-02-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531921', 'tblTempUsageDetail_20' ) end [2025-02-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531921', 'tblTempVendorCDR_20' ) start [2025-02-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531921', 'tblTempVendorCDR_20' ) end [2025-02-22 10:51:17] Production.INFO: ProcessCDR(1,14531921,1,1,2) [2025-02-22 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531921', 'tblTempUsageDetail_20' ) start [2025-02-22 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531921', 'tblTempUsageDetail_20' ) end [2025-02-22 10:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:51:22] Production.INFO: ==16808== Releasing lock... [2025-02-22 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:52:05 [end_date_ymd] => 2025-02-22 10:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:52:05' and `end` < '2025-02-22 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-02-22 10:52:17] Production.INFO: count ==1093 [2025-02-22 10:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:52:05 - End Time 2025-02-22 10:52:05 [2025-02-22 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531926', 'tblTempUsageDetail_20' ) start [2025-02-22 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531926', 'tblTempUsageDetail_20' ) end [2025-02-22 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531926', 'tblTempVendorCDR_20' ) start [2025-02-22 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531926', 'tblTempVendorCDR_20' ) end [2025-02-22 10:52:17] Production.INFO: ProcessCDR(1,14531926,1,1,2) [2025-02-22 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531926', 'tblTempUsageDetail_20' ) start [2025-02-22 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531926', 'tblTempUsageDetail_20' ) end [2025-02-22 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:52:22] Production.INFO: ==16882== Releasing lock... [2025-02-22 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:53:05 [end_date_ymd] => 2025-02-22 10:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:53:05' and `end` < '2025-02-22 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-02-22 10:53:17] Production.INFO: count ==1093 [2025-02-22 10:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:53:05 - End Time 2025-02-22 10:53:05 [2025-02-22 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531931', 'tblTempUsageDetail_20' ) start [2025-02-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531931', 'tblTempUsageDetail_20' ) end [2025-02-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531931', 'tblTempVendorCDR_20' ) start [2025-02-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531931', 'tblTempVendorCDR_20' ) end [2025-02-22 10:53:17] Production.INFO: ProcessCDR(1,14531931,1,1,2) [2025-02-22 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531931', 'tblTempUsageDetail_20' ) start [2025-02-22 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531931', 'tblTempUsageDetail_20' ) end [2025-02-22 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:53:21] Production.INFO: ==16958== Releasing lock... [2025-02-22 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:54:06 [end_date_ymd] => 2025-02-22 10:54:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:54:06' and `end` < '2025-02-22 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-02-22 10:54:18] Production.INFO: count ==1095 [2025-02-22 10:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:54:06 - End Time 2025-02-22 10:54:06 [2025-02-22 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531936', 'tblTempUsageDetail_20' ) start [2025-02-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531936', 'tblTempUsageDetail_20' ) end [2025-02-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531936', 'tblTempVendorCDR_20' ) start [2025-02-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531936', 'tblTempVendorCDR_20' ) end [2025-02-22 10:54:18] Production.INFO: ProcessCDR(1,14531936,1,1,2) [2025-02-22 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531936', 'tblTempUsageDetail_20' ) start [2025-02-22 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531936', 'tblTempUsageDetail_20' ) end [2025-02-22 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:54:23] Production.INFO: ==17028== Releasing lock... [2025-02-22 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-22 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:55:05 [end_date_ymd] => 2025-02-22 10:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:55:05' and `end` < '2025-02-22 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-02-22 10:55:17] Production.INFO: count ==1096 [2025-02-22 10:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:55:05 - End Time 2025-02-22 10:55:05 [2025-02-22 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531941', 'tblTempUsageDetail_20' ) start [2025-02-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531941', 'tblTempUsageDetail_20' ) end [2025-02-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531941', 'tblTempVendorCDR_20' ) start [2025-02-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531941', 'tblTempVendorCDR_20' ) end [2025-02-22 10:55:18] Production.INFO: ProcessCDR(1,14531941,1,1,2) [2025-02-22 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531941', 'tblTempUsageDetail_20' ) start [2025-02-22 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531941', 'tblTempUsageDetail_20' ) end [2025-02-22 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:55:23] Production.INFO: ==17145== Releasing lock... [2025-02-22 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:55:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-22 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:56:06 [end_date_ymd] => 2025-02-22 10:56:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:56:06' and `end` < '2025-02-22 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-02-22 10:56:18] Production.INFO: count ==1108 [2025-02-22 10:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:56:06 - End Time 2025-02-22 10:56:06 [2025-02-22 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531946', 'tblTempUsageDetail_20' ) start [2025-02-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531946', 'tblTempUsageDetail_20' ) end [2025-02-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531946', 'tblTempVendorCDR_20' ) start [2025-02-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531946', 'tblTempVendorCDR_20' ) end [2025-02-22 10:56:18] Production.INFO: ProcessCDR(1,14531946,1,1,2) [2025-02-22 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531946', 'tblTempUsageDetail_20' ) start [2025-02-22 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531946', 'tblTempUsageDetail_20' ) end [2025-02-22 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:56:23] Production.INFO: ==17220== Releasing lock... [2025-02-22 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:56:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:57:05 [end_date_ymd] => 2025-02-22 10:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 07:57:05' and `end` < '2025-02-22 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-02-22 10:57:17] Production.INFO: count ==1109 [2025-02-22 10:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 07:57:05 - End Time 2025-02-22 10:57:05 [2025-02-22 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531951', 'tblTempUsageDetail_20' ) start [2025-02-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531951', 'tblTempUsageDetail_20' ) end [2025-02-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531951', 'tblTempVendorCDR_20' ) start [2025-02-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531951', 'tblTempVendorCDR_20' ) end [2025-02-22 10:57:17] Production.INFO: ProcessCDR(1,14531951,1,1,2) [2025-02-22 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531951', 'tblTempUsageDetail_20' ) start [2025-02-22 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531951', 'tblTempUsageDetail_20' ) end [2025-02-22 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:57:22] Production.INFO: ==17291== Releasing lock... [2025-02-22 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-22 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:58:06 [end_date_ymd] => 2025-02-22 10:58:06 [RateCDR] => 1 ) [2025-02-22 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:58:06' and `end` < '2025-02-22 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:58:18] Production.INFO: count ==1115 [2025-02-22 10:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:58:06 - End Time 2025-02-22 10:58:06 [2025-02-22 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531956', 'tblTempUsageDetail_20' ) start [2025-02-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531956', 'tblTempUsageDetail_20' ) end [2025-02-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531956', 'tblTempVendorCDR_20' ) start [2025-02-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531956', 'tblTempVendorCDR_20' ) end [2025-02-22 10:58:18] Production.INFO: ProcessCDR(1,14531956,1,1,2) [2025-02-22 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531956', 'tblTempUsageDetail_20' ) start [2025-02-22 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531956', 'tblTempUsageDetail_20' ) end [2025-02-22 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:58:23] Production.INFO: ==17360== Releasing lock... [2025-02-22 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:58:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-22 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 07:59:05 [end_date_ymd] => 2025-02-22 10:59:05 [RateCDR] => 1 ) [2025-02-22 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 07:59:05' and `end` < '2025-02-22 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 10:59:17] Production.INFO: count ==1125 [2025-02-22 10:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 07:59:05 - End Time 2025-02-22 10:59:05 [2025-02-22 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531961', 'tblTempUsageDetail_20' ) start [2025-02-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531961', 'tblTempUsageDetail_20' ) end [2025-02-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531961', 'tblTempVendorCDR_20' ) start [2025-02-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531961', 'tblTempVendorCDR_20' ) end [2025-02-22 10:59:18] Production.INFO: ProcessCDR(1,14531961,1,1,2) [2025-02-22 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531961', 'tblTempUsageDetail_20' ) start [2025-02-22 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531961', 'tblTempUsageDetail_20' ) end [2025-02-22 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 10:59:22] Production.INFO: ==17435== Releasing lock... [2025-02-22 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 10:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-22 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:00:06 [end_date_ymd] => 2025-02-22 11:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:00:06' and `end` < '2025-02-22 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-02-22 11:00:18] Production.INFO: count ==1138 [2025-02-22 11:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:00:06 - End Time 2025-02-22 11:00:06 [2025-02-22 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531967', 'tblTempUsageDetail_20' ) start [2025-02-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531967', 'tblTempUsageDetail_20' ) end [2025-02-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531967', 'tblTempVendorCDR_20' ) start [2025-02-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531967', 'tblTempVendorCDR_20' ) end [2025-02-22 11:00:18] Production.INFO: ProcessCDR(1,14531967,1,1,2) [2025-02-22 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531967', 'tblTempUsageDetail_20' ) start [2025-02-22 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531967', 'tblTempUsageDetail_20' ) end [2025-02-22 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:00:23] Production.INFO: ==17509== Releasing lock... [2025-02-22 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-22 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:01:05 [end_date_ymd] => 2025-02-22 11:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:01:05' and `end` < '2025-02-22 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-02-22 11:01:17] Production.INFO: count ==1182 [2025-02-22 11:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:01:05 - End Time 2025-02-22 11:01:05 [2025-02-22 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531972', 'tblTempUsageDetail_20' ) start [2025-02-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531972', 'tblTempUsageDetail_20' ) end [2025-02-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531972', 'tblTempVendorCDR_20' ) start [2025-02-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531972', 'tblTempVendorCDR_20' ) end [2025-02-22 11:01:18] Production.INFO: ProcessCDR(1,14531972,1,1,2) [2025-02-22 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531972', 'tblTempUsageDetail_20' ) start [2025-02-22 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531972', 'tblTempUsageDetail_20' ) end [2025-02-22 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:01:23] Production.INFO: ==17635== Releasing lock... [2025-02-22 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:01:23] Production.INFO: 37 MB #Memory Used# [2025-02-22 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:02:06 [end_date_ymd] => 2025-02-22 11:02:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:02:06' and `end` < '2025-02-22 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-02-22 11:02:18] Production.INFO: count ==1183 [2025-02-22 11:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:02:06 - End Time 2025-02-22 11:02:06 [2025-02-22 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531977', 'tblTempUsageDetail_20' ) start [2025-02-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531977', 'tblTempUsageDetail_20' ) end [2025-02-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531977', 'tblTempVendorCDR_20' ) start [2025-02-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531977', 'tblTempVendorCDR_20' ) end [2025-02-22 11:02:18] Production.INFO: ProcessCDR(1,14531977,1,1,2) [2025-02-22 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531977', 'tblTempUsageDetail_20' ) start [2025-02-22 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531977', 'tblTempUsageDetail_20' ) end [2025-02-22 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:02:22] Production.INFO: ==17745== Releasing lock... [2025-02-22 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:02:22] Production.INFO: 37 MB #Memory Used# [2025-02-22 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:03:05 [end_date_ymd] => 2025-02-22 11:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:03:05' and `end` < '2025-02-22 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-02-22 11:03:17] Production.INFO: count ==1190 [2025-02-22 11:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:03:05 - End Time 2025-02-22 11:03:05 [2025-02-22 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531982', 'tblTempUsageDetail_20' ) start [2025-02-22 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531982', 'tblTempUsageDetail_20' ) end [2025-02-22 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531982', 'tblTempVendorCDR_20' ) start [2025-02-22 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531982', 'tblTempVendorCDR_20' ) end [2025-02-22 11:03:17] Production.INFO: ProcessCDR(1,14531982,1,1,2) [2025-02-22 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531982', 'tblTempUsageDetail_20' ) start [2025-02-22 11:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531982', 'tblTempUsageDetail_20' ) end [2025-02-22 11:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:03:22] Production.INFO: ==17815== Releasing lock... [2025-02-22 11:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:03:22] Production.INFO: 37 MB #Memory Used# [2025-02-22 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:04:06 [end_date_ymd] => 2025-02-22 11:04:06 [RateCDR] => 1 ) [2025-02-22 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:04:06' and `end` < '2025-02-22 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:04:18] Production.INFO: count ==1189 [2025-02-22 11:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:04:06 - End Time 2025-02-22 11:04:06 [2025-02-22 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531987', 'tblTempUsageDetail_20' ) start [2025-02-22 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531987', 'tblTempUsageDetail_20' ) end [2025-02-22 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531987', 'tblTempVendorCDR_20' ) start [2025-02-22 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531987', 'tblTempVendorCDR_20' ) end [2025-02-22 11:04:18] Production.INFO: ProcessCDR(1,14531987,1,1,2) [2025-02-22 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531987', 'tblTempUsageDetail_20' ) start [2025-02-22 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531987', 'tblTempUsageDetail_20' ) end [2025-02-22 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:04:23] Production.INFO: ==17895== Releasing lock... [2025-02-22 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:04:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:05:05 [end_date_ymd] => 2025-02-22 11:05:05 [RateCDR] => 1 ) [2025-02-22 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:05:05' and `end` < '2025-02-22 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:05:17] Production.INFO: count ==1181 [2025-02-22 11:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:05:05 - End Time 2025-02-22 11:05:05 [2025-02-22 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531992', 'tblTempUsageDetail_20' ) start [2025-02-22 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531992', 'tblTempUsageDetail_20' ) end [2025-02-22 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531992', 'tblTempVendorCDR_20' ) start [2025-02-22 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531992', 'tblTempVendorCDR_20' ) end [2025-02-22 11:05:18] Production.INFO: ProcessCDR(1,14531992,1,1,2) [2025-02-22 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531992', 'tblTempUsageDetail_20' ) start [2025-02-22 11:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531992', 'tblTempUsageDetail_20' ) end [2025-02-22 11:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:05:23] Production.INFO: ==18045== Releasing lock... [2025-02-22 11:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:05:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:06:06 [end_date_ymd] => 2025-02-22 11:06:06 [RateCDR] => 1 ) [2025-02-22 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:06:06' and `end` < '2025-02-22 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:06:18] Production.INFO: count ==1183 [2025-02-22 11:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:06:06 - End Time 2025-02-22 11:06:06 [2025-02-22 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531997', 'tblTempUsageDetail_20' ) start [2025-02-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14531997', 'tblTempUsageDetail_20' ) end [2025-02-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531997', 'tblTempVendorCDR_20' ) start [2025-02-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14531997', 'tblTempVendorCDR_20' ) end [2025-02-22 11:06:18] Production.INFO: ProcessCDR(1,14531997,1,1,2) [2025-02-22 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14531997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14531997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14531997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14531997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531997', 'tblTempUsageDetail_20' ) start [2025-02-22 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14531997', 'tblTempUsageDetail_20' ) end [2025-02-22 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:06:22] Production.INFO: ==18119== Releasing lock... [2025-02-22 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:07:05 [end_date_ymd] => 2025-02-22 11:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:07:05' and `end` < '2025-02-22 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-02-22 11:07:17] Production.INFO: count ==1182 [2025-02-22 11:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:07:05 - End Time 2025-02-22 11:07:05 [2025-02-22 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532002', 'tblTempUsageDetail_20' ) start [2025-02-22 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532002', 'tblTempUsageDetail_20' ) end [2025-02-22 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532002', 'tblTempVendorCDR_20' ) start [2025-02-22 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532002', 'tblTempVendorCDR_20' ) end [2025-02-22 11:07:18] Production.INFO: ProcessCDR(1,14532002,1,1,2) [2025-02-22 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532002', 'tblTempUsageDetail_20' ) start [2025-02-22 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532002', 'tblTempUsageDetail_20' ) end [2025-02-22 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:07:23] Production.INFO: ==18193== Releasing lock... [2025-02-22 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:07:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:08:06 [end_date_ymd] => 2025-02-22 11:08:06 [RateCDR] => 1 ) [2025-02-22 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:08:06' and `end` < '2025-02-22 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:08:18] Production.INFO: count ==1182 [2025-02-22 11:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:08:06 - End Time 2025-02-22 11:08:06 [2025-02-22 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532007', 'tblTempUsageDetail_20' ) start [2025-02-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532007', 'tblTempUsageDetail_20' ) end [2025-02-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532007', 'tblTempVendorCDR_20' ) start [2025-02-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532007', 'tblTempVendorCDR_20' ) end [2025-02-22 11:08:18] Production.INFO: ProcessCDR(1,14532007,1,1,2) [2025-02-22 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532007', 'tblTempUsageDetail_20' ) start [2025-02-22 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532007', 'tblTempUsageDetail_20' ) end [2025-02-22 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:08:23] Production.INFO: ==18345== Releasing lock... [2025-02-22 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:08:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-22 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:09:05 [end_date_ymd] => 2025-02-22 11:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:09:05' and `end` < '2025-02-22 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-02-22 11:09:17] Production.INFO: count ==1187 [2025-02-22 11:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:09:05 - End Time 2025-02-22 11:09:05 [2025-02-22 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532012', 'tblTempUsageDetail_20' ) start [2025-02-22 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532012', 'tblTempUsageDetail_20' ) end [2025-02-22 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532012', 'tblTempVendorCDR_20' ) start [2025-02-22 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532012', 'tblTempVendorCDR_20' ) end [2025-02-22 11:09:18] Production.INFO: ProcessCDR(1,14532012,1,1,2) [2025-02-22 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532012', 'tblTempUsageDetail_20' ) start [2025-02-22 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532012', 'tblTempUsageDetail_20' ) end [2025-02-22 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:09:23] Production.INFO: ==18418== Releasing lock... [2025-02-22 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-22 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:10:07 [end_date_ymd] => 2025-02-22 11:10:07 [RateCDR] => 1 ) [2025-02-22 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:10:07' and `end` < '2025-02-22 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:10:19] Production.INFO: count ==1184 [2025-02-22 11:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:10:07 - End Time 2025-02-22 11:10:07 [2025-02-22 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532018', 'tblTempUsageDetail_20' ) start [2025-02-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532018', 'tblTempUsageDetail_20' ) end [2025-02-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532018', 'tblTempVendorCDR_20' ) start [2025-02-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532018', 'tblTempVendorCDR_20' ) end [2025-02-22 11:10:19] Production.INFO: ProcessCDR(1,14532018,1,1,2) [2025-02-22 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532018', 'tblTempUsageDetail_20' ) start [2025-02-22 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532018', 'tblTempUsageDetail_20' ) end [2025-02-22 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:10:24] Production.INFO: ==18491== Releasing lock... [2025-02-22 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:10:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-22 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:11:06 [end_date_ymd] => 2025-02-22 11:11:06 [RateCDR] => 1 ) [2025-02-22 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:11:06' and `end` < '2025-02-22 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:11:18] Production.INFO: count ==1235 [2025-02-22 11:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:11:06 - End Time 2025-02-22 11:11:06 [2025-02-22 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532023', 'tblTempUsageDetail_20' ) start [2025-02-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532023', 'tblTempUsageDetail_20' ) end [2025-02-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532023', 'tblTempVendorCDR_20' ) start [2025-02-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532023', 'tblTempVendorCDR_20' ) end [2025-02-22 11:11:18] Production.INFO: ProcessCDR(1,14532023,1,1,2) [2025-02-22 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532023', 'tblTempUsageDetail_20' ) start [2025-02-22 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532023', 'tblTempUsageDetail_20' ) end [2025-02-22 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:11:23] Production.INFO: ==18607== Releasing lock... [2025-02-22 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:11:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:12:05 [end_date_ymd] => 2025-02-22 11:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:12:05' and `end` < '2025-02-22 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-02-22 11:12:17] Production.INFO: count ==1234 [2025-02-22 11:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:12:05 - End Time 2025-02-22 11:12:05 [2025-02-22 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532028', 'tblTempUsageDetail_20' ) start [2025-02-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532028', 'tblTempUsageDetail_20' ) end [2025-02-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532028', 'tblTempVendorCDR_20' ) start [2025-02-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532028', 'tblTempVendorCDR_20' ) end [2025-02-22 11:12:17] Production.INFO: ProcessCDR(1,14532028,1,1,2) [2025-02-22 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532028', 'tblTempUsageDetail_20' ) start [2025-02-22 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532028', 'tblTempUsageDetail_20' ) end [2025-02-22 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:12:22] Production.INFO: ==18756== Releasing lock... [2025-02-22 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-22 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:13:05 [end_date_ymd] => 2025-02-22 11:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:13:05' and `end` < '2025-02-22 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-02-22 11:13:17] Production.INFO: count ==1241 [2025-02-22 11:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:13:05 - End Time 2025-02-22 11:13:05 [2025-02-22 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532033', 'tblTempUsageDetail_20' ) start [2025-02-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532033', 'tblTempUsageDetail_20' ) end [2025-02-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532033', 'tblTempVendorCDR_20' ) start [2025-02-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532033', 'tblTempVendorCDR_20' ) end [2025-02-22 11:13:18] Production.INFO: ProcessCDR(1,14532033,1,1,2) [2025-02-22 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532033', 'tblTempUsageDetail_20' ) start [2025-02-22 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532033', 'tblTempUsageDetail_20' ) end [2025-02-22 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:13:23] Production.INFO: ==18831== Releasing lock... [2025-02-22 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:13:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:14:05 [end_date_ymd] => 2025-02-22 11:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:14:05' and `end` < '2025-02-22 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-02-22 11:14:17] Production.INFO: count ==1241 [2025-02-22 11:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:14:05 - End Time 2025-02-22 11:14:05 [2025-02-22 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532038', 'tblTempUsageDetail_20' ) start [2025-02-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532038', 'tblTempUsageDetail_20' ) end [2025-02-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532038', 'tblTempVendorCDR_20' ) start [2025-02-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532038', 'tblTempVendorCDR_20' ) end [2025-02-22 11:14:17] Production.INFO: ProcessCDR(1,14532038,1,1,2) [2025-02-22 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532038', 'tblTempUsageDetail_20' ) start [2025-02-22 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532038', 'tblTempUsageDetail_20' ) end [2025-02-22 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:14:21] Production.INFO: ==18904== Releasing lock... [2025-02-22 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:14:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:15:05 [end_date_ymd] => 2025-02-22 11:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:15:05' and `end` < '2025-02-22 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-02-22 11:15:17] Production.INFO: count ==1241 [2025-02-22 11:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:15:05 - End Time 2025-02-22 11:15:05 [2025-02-22 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532043', 'tblTempUsageDetail_20' ) start [2025-02-22 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532043', 'tblTempUsageDetail_20' ) end [2025-02-22 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532043', 'tblTempVendorCDR_20' ) start [2025-02-22 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532043', 'tblTempVendorCDR_20' ) end [2025-02-22 11:15:18] Production.INFO: ProcessCDR(1,14532043,1,1,2) [2025-02-22 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532043', 'tblTempUsageDetail_20' ) start [2025-02-22 11:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532043', 'tblTempUsageDetail_20' ) end [2025-02-22 11:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:15:21] Production.INFO: ==19057== Releasing lock... [2025-02-22 11:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:16:05 [end_date_ymd] => 2025-02-22 11:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:16:05' and `end` < '2025-02-22 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-02-22 11:16:17] Production.INFO: count ==1249 [2025-02-22 11:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:16:05 - End Time 2025-02-22 11:16:05 [2025-02-22 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532048', 'tblTempUsageDetail_20' ) start [2025-02-22 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532048', 'tblTempUsageDetail_20' ) end [2025-02-22 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532048', 'tblTempVendorCDR_20' ) start [2025-02-22 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532048', 'tblTempVendorCDR_20' ) end [2025-02-22 11:16:18] Production.INFO: ProcessCDR(1,14532048,1,1,2) [2025-02-22 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532048', 'tblTempUsageDetail_20' ) start [2025-02-22 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532048', 'tblTempUsageDetail_20' ) end [2025-02-22 11:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:16:21] Production.INFO: ==19147== Releasing lock... [2025-02-22 11:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:17:06 [end_date_ymd] => 2025-02-22 11:17:06 [RateCDR] => 1 ) [2025-02-22 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:17:06' and `end` < '2025-02-22 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:17:18] Production.INFO: count ==1252 [2025-02-22 11:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:17:06 - End Time 2025-02-22 11:17:06 [2025-02-22 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532053', 'tblTempUsageDetail_20' ) start [2025-02-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532053', 'tblTempUsageDetail_20' ) end [2025-02-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532053', 'tblTempVendorCDR_20' ) start [2025-02-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532053', 'tblTempVendorCDR_20' ) end [2025-02-22 11:17:18] Production.INFO: ProcessCDR(1,14532053,1,1,2) [2025-02-22 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532053', 'tblTempUsageDetail_20' ) start [2025-02-22 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532053', 'tblTempUsageDetail_20' ) end [2025-02-22 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:17:23] Production.INFO: ==19265== Releasing lock... [2025-02-22 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:17:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:18:05 [end_date_ymd] => 2025-02-22 11:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:18:05' and `end` < '2025-02-22 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-02-22 11:18:17] Production.INFO: count ==1243 [2025-02-22 11:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:18:05 - End Time 2025-02-22 11:18:05 [2025-02-22 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532058', 'tblTempUsageDetail_20' ) start [2025-02-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532058', 'tblTempUsageDetail_20' ) end [2025-02-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532058', 'tblTempVendorCDR_20' ) start [2025-02-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532058', 'tblTempVendorCDR_20' ) end [2025-02-22 11:18:18] Production.INFO: ProcessCDR(1,14532058,1,1,2) [2025-02-22 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532058', 'tblTempUsageDetail_20' ) start [2025-02-22 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532058', 'tblTempUsageDetail_20' ) end [2025-02-22 11:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:18:21] Production.INFO: ==19390== Releasing lock... [2025-02-22 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:18:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:19:06 [end_date_ymd] => 2025-02-22 11:19:06 [RateCDR] => 1 ) [2025-02-22 11: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-02-22 08:19:06' and `end` < '2025-02-22 11: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-02-22 11:19:18] Production.INFO: count ==1245 [2025-02-22 11:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:19:06 - End Time 2025-02-22 11:19:06 [2025-02-22 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532063', 'tblTempUsageDetail_20' ) start [2025-02-22 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532063', 'tblTempUsageDetail_20' ) end [2025-02-22 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532063', 'tblTempVendorCDR_20' ) start [2025-02-22 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532063', 'tblTempVendorCDR_20' ) end [2025-02-22 11:19:18] Production.INFO: ProcessCDR(1,14532063,1,1,2) [2025-02-22 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532063', 'tblTempUsageDetail_20' ) start [2025-02-22 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532063', 'tblTempUsageDetail_20' ) end [2025-02-22 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:19:22] Production.INFO: ==19531== Releasing lock... [2025-02-22 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:20:06 [end_date_ymd] => 2025-02-22 11:20:06 [RateCDR] => 1 ) [2025-02-22 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:20:06' and `end` < '2025-02-22 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:20:18] Production.INFO: count ==1233 [2025-02-22 11:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:20:06 - End Time 2025-02-22 11:20:06 [2025-02-22 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532069', 'tblTempUsageDetail_20' ) start [2025-02-22 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532069', 'tblTempUsageDetail_20' ) end [2025-02-22 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532069', 'tblTempVendorCDR_20' ) start [2025-02-22 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532069', 'tblTempVendorCDR_20' ) end [2025-02-22 11:20:19] Production.INFO: ProcessCDR(1,14532069,1,1,2) [2025-02-22 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532069', 'tblTempUsageDetail_20' ) start [2025-02-22 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532069', 'tblTempUsageDetail_20' ) end [2025-02-22 11:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:20:22] Production.INFO: ==19659== Releasing lock... [2025-02-22 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:20:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:21:05 [end_date_ymd] => 2025-02-22 11:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:21:05' and `end` < '2025-02-22 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-02-22 11:21:17] Production.INFO: count ==1255 [2025-02-22 11:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:21:05 - End Time 2025-02-22 11:21:05 [2025-02-22 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532074', 'tblTempUsageDetail_20' ) start [2025-02-22 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532074', 'tblTempUsageDetail_20' ) end [2025-02-22 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532074', 'tblTempVendorCDR_20' ) start [2025-02-22 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532074', 'tblTempVendorCDR_20' ) end [2025-02-22 11:21:18] Production.INFO: ProcessCDR(1,14532074,1,1,2) [2025-02-22 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532074', 'tblTempUsageDetail_20' ) start [2025-02-22 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532074', 'tblTempUsageDetail_20' ) end [2025-02-22 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:21:21] Production.INFO: ==19779== Releasing lock... [2025-02-22 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:22:06 [end_date_ymd] => 2025-02-22 11:22:06 [RateCDR] => 1 ) [2025-02-22 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:22:06' and `end` < '2025-02-22 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:22:18] Production.INFO: count ==1274 [2025-02-22 11:22:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:22:06 - End Time 2025-02-22 11:22:06 [2025-02-22 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532079', 'tblTempUsageDetail_20' ) start [2025-02-22 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532079', 'tblTempUsageDetail_20' ) end [2025-02-22 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532079', 'tblTempVendorCDR_20' ) start [2025-02-22 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532079', 'tblTempVendorCDR_20' ) end [2025-02-22 11:22:19] Production.INFO: ProcessCDR(1,14532079,1,1,2) [2025-02-22 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532079', 'tblTempUsageDetail_20' ) start [2025-02-22 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532079', 'tblTempUsageDetail_20' ) end [2025-02-22 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:22:24] Production.INFO: ==19898== Releasing lock... [2025-02-22 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:22:24] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:23:05 [end_date_ymd] => 2025-02-22 11:23:05 [RateCDR] => 1 ) [2025-02-22 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:23:05' and `end` < '2025-02-22 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:23:17] Production.INFO: count ==1274 [2025-02-22 11:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:23:05 - End Time 2025-02-22 11:23:05 [2025-02-22 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532084', 'tblTempUsageDetail_20' ) start [2025-02-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532084', 'tblTempUsageDetail_20' ) end [2025-02-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532084', 'tblTempVendorCDR_20' ) start [2025-02-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532084', 'tblTempVendorCDR_20' ) end [2025-02-22 11:23:18] Production.INFO: ProcessCDR(1,14532084,1,1,2) [2025-02-22 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532084', 'tblTempUsageDetail_20' ) start [2025-02-22 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532084', 'tblTempUsageDetail_20' ) end [2025-02-22 11:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:23:21] Production.INFO: ==20014== Releasing lock... [2025-02-22 11:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:23:21] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:24:06 [end_date_ymd] => 2025-02-22 11:24:06 [RateCDR] => 1 ) [2025-02-22 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:24:06' and `end` < '2025-02-22 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:24:18] Production.INFO: count ==1281 [2025-02-22 11:24:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:24:06 - End Time 2025-02-22 11:24:06 [2025-02-22 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532089', 'tblTempUsageDetail_20' ) start [2025-02-22 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532089', 'tblTempUsageDetail_20' ) end [2025-02-22 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532089', 'tblTempVendorCDR_20' ) start [2025-02-22 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532089', 'tblTempVendorCDR_20' ) end [2025-02-22 11:24:19] Production.INFO: ProcessCDR(1,14532089,1,1,2) [2025-02-22 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532089', 'tblTempUsageDetail_20' ) start [2025-02-22 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532089', 'tblTempUsageDetail_20' ) end [2025-02-22 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:24:23] Production.INFO: ==20131== Releasing lock... [2025-02-22 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:25:05 [end_date_ymd] => 2025-02-22 11:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:25:05' and `end` < '2025-02-22 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-02-22 11:25:17] Production.INFO: count ==1283 [2025-02-22 11:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:25:05 - End Time 2025-02-22 11:25:05 [2025-02-22 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532094', 'tblTempUsageDetail_20' ) start [2025-02-22 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532094', 'tblTempUsageDetail_20' ) end [2025-02-22 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532094', 'tblTempVendorCDR_20' ) start [2025-02-22 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532094', 'tblTempVendorCDR_20' ) end [2025-02-22 11:25:18] Production.INFO: ProcessCDR(1,14532094,1,1,2) [2025-02-22 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532094', 'tblTempUsageDetail_20' ) start [2025-02-22 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532094', 'tblTempUsageDetail_20' ) end [2025-02-22 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:25:23] Production.INFO: ==20254== Releasing lock... [2025-02-22 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:26:06 [end_date_ymd] => 2025-02-22 11:26:06 [RateCDR] => 1 ) [2025-02-22 11: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-02-22 08:26:06' and `end` < '2025-02-22 11: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-02-22 11:26:18] Production.INFO: count ==1283 [2025-02-22 11:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:26:06 - End Time 2025-02-22 11:26:06 [2025-02-22 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532099', 'tblTempUsageDetail_20' ) start [2025-02-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532099', 'tblTempUsageDetail_20' ) end [2025-02-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532099', 'tblTempVendorCDR_20' ) start [2025-02-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532099', 'tblTempVendorCDR_20' ) end [2025-02-22 11:26:18] Production.INFO: ProcessCDR(1,14532099,1,1,2) [2025-02-22 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532099', 'tblTempUsageDetail_20' ) start [2025-02-22 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532099', 'tblTempUsageDetail_20' ) end [2025-02-22 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:26:24] Production.INFO: ==20419== Releasing lock... [2025-02-22 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:27:05 [end_date_ymd] => 2025-02-22 11:27:05 [RateCDR] => 1 ) [2025-02-22 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:27:05' and `end` < '2025-02-22 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:27:17] Production.INFO: count ==1277 [2025-02-22 11:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:27:05 - End Time 2025-02-22 11:27:05 [2025-02-22 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532104', 'tblTempUsageDetail_20' ) start [2025-02-22 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532104', 'tblTempUsageDetail_20' ) end [2025-02-22 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532104', 'tblTempVendorCDR_20' ) start [2025-02-22 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532104', 'tblTempVendorCDR_20' ) end [2025-02-22 11:27:18] Production.INFO: ProcessCDR(1,14532104,1,1,2) [2025-02-22 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532104', 'tblTempUsageDetail_20' ) start [2025-02-22 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532104', 'tblTempUsageDetail_20' ) end [2025-02-22 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:27:23] Production.INFO: ==20527== Releasing lock... [2025-02-22 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:27:23] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:28:06 [end_date_ymd] => 2025-02-22 11:28:06 [RateCDR] => 1 ) [2025-02-22 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:28:06' and `end` < '2025-02-22 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:28:18] Production.INFO: count ==1287 [2025-02-22 11:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:28:06 - End Time 2025-02-22 11:28:06 [2025-02-22 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532109', 'tblTempUsageDetail_20' ) start [2025-02-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532109', 'tblTempUsageDetail_20' ) end [2025-02-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532109', 'tblTempVendorCDR_20' ) start [2025-02-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532109', 'tblTempVendorCDR_20' ) end [2025-02-22 11:28:18] Production.INFO: ProcessCDR(1,14532109,1,1,2) [2025-02-22 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532109', 'tblTempUsageDetail_20' ) start [2025-02-22 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532109', 'tblTempUsageDetail_20' ) end [2025-02-22 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:28:23] Production.INFO: ==20599== Releasing lock... [2025-02-22 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:28:23] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:29:05 [end_date_ymd] => 2025-02-22 11:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:29:05' and `end` < '2025-02-22 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-02-22 11:29:17] Production.INFO: count ==1299 [2025-02-22 11:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:29:05 - End Time 2025-02-22 11:29:05 [2025-02-22 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532114', 'tblTempUsageDetail_20' ) start [2025-02-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532114', 'tblTempUsageDetail_20' ) end [2025-02-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532114', 'tblTempVendorCDR_20' ) start [2025-02-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532114', 'tblTempVendorCDR_20' ) end [2025-02-22 11:29:18] Production.INFO: ProcessCDR(1,14532114,1,1,2) [2025-02-22 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532114', 'tblTempUsageDetail_20' ) start [2025-02-22 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532114', 'tblTempUsageDetail_20' ) end [2025-02-22 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:29:23] Production.INFO: ==20700== Releasing lock... [2025-02-22 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:29:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:30:07 [end_date_ymd] => 2025-02-22 11:30:07 [RateCDR] => 1 ) [2025-02-22 11:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:30:07' and `end` < '2025-02-22 11:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:30:19] Production.INFO: count ==1294 [2025-02-22 11:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:30:07 - End Time 2025-02-22 11:30:07 [2025-02-22 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532120', 'tblTempUsageDetail_20' ) start [2025-02-22 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532120', 'tblTempUsageDetail_20' ) end [2025-02-22 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532120', 'tblTempVendorCDR_20' ) start [2025-02-22 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532120', 'tblTempVendorCDR_20' ) end [2025-02-22 11:30:19] Production.INFO: ProcessCDR(1,14532120,1,1,2) [2025-02-22 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532120', 'tblTempUsageDetail_20' ) start [2025-02-22 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532120', 'tblTempUsageDetail_20' ) end [2025-02-22 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:30:25] Production.INFO: ==20805== Releasing lock... [2025-02-22 11:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:30:25] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:31:05 [end_date_ymd] => 2025-02-22 11:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:31:05' and `end` < '2025-02-22 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:31:17] Production.INFO: count ==1333 [2025-02-22 11:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:31:05 - End Time 2025-02-22 11:31:05 [2025-02-22 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532125', 'tblTempUsageDetail_20' ) start [2025-02-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532125', 'tblTempUsageDetail_20' ) end [2025-02-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532125', 'tblTempVendorCDR_20' ) start [2025-02-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532125', 'tblTempVendorCDR_20' ) end [2025-02-22 11:31:18] Production.INFO: ProcessCDR(1,14532125,1,1,2) [2025-02-22 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532125', 'tblTempUsageDetail_20' ) start [2025-02-22 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532125', 'tblTempUsageDetail_20' ) end [2025-02-22 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:31:23] Production.INFO: ==20910== Releasing lock... [2025-02-22 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:32:05 [end_date_ymd] => 2025-02-22 11:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:32:05' and `end` < '2025-02-22 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-02-22 11:32:17] Production.INFO: count ==1336 [2025-02-22 11:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:32:05 - End Time 2025-02-22 11:32:05 [2025-02-22 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532126', 'tblTempUsageDetail_20' ) start [2025-02-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532126', 'tblTempUsageDetail_20' ) end [2025-02-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532126', 'tblTempVendorCDR_20' ) start [2025-02-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532126', 'tblTempVendorCDR_20' ) end [2025-02-22 11:32:18] Production.INFO: ProcessCDR(1,14532126,1,1,2) [2025-02-22 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532126', 'tblTempUsageDetail_20' ) start [2025-02-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532126', 'tblTempUsageDetail_20' ) end [2025-02-22 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:32:21] Production.INFO: ==21042== Releasing lock... [2025-02-22 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:32:21] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:33:05 [end_date_ymd] => 2025-02-22 11:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:33:05' and `end` < '2025-02-22 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-02-22 11:33:17] Production.INFO: count ==1337 [2025-02-22 11:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:33:05 - End Time 2025-02-22 11:33:05 [2025-02-22 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532135', 'tblTempUsageDetail_20' ) start [2025-02-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532135', 'tblTempUsageDetail_20' ) end [2025-02-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532135', 'tblTempVendorCDR_20' ) start [2025-02-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532135', 'tblTempVendorCDR_20' ) end [2025-02-22 11:33:17] Production.INFO: ProcessCDR(1,14532135,1,1,2) [2025-02-22 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532135', 'tblTempUsageDetail_20' ) start [2025-02-22 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532135', 'tblTempUsageDetail_20' ) end [2025-02-22 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:33:23] Production.INFO: ==21149== Releasing lock... [2025-02-22 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:33:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:34:06 [end_date_ymd] => 2025-02-22 11:34:06 [RateCDR] => 1 ) [2025-02-22 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:34:06' and `end` < '2025-02-22 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:34:18] Production.INFO: count ==1343 [2025-02-22 11:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:34:06 - End Time 2025-02-22 11:34:06 [2025-02-22 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532139', 'tblTempUsageDetail_20' ) start [2025-02-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532139', 'tblTempUsageDetail_20' ) end [2025-02-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532139', 'tblTempVendorCDR_20' ) start [2025-02-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532139', 'tblTempVendorCDR_20' ) end [2025-02-22 11:34:18] Production.INFO: ProcessCDR(1,14532139,1,1,2) [2025-02-22 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532139', 'tblTempUsageDetail_20' ) start [2025-02-22 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532139', 'tblTempUsageDetail_20' ) end [2025-02-22 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:34:23] Production.INFO: ==21270== Releasing lock... [2025-02-22 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:34:23] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:35:05 [end_date_ymd] => 2025-02-22 11:35:05 [RateCDR] => 1 ) [2025-02-22 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:35:05' and `end` < '2025-02-22 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:35:17] Production.INFO: count ==1336 [2025-02-22 11:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:35:05 - End Time 2025-02-22 11:35:05 [2025-02-22 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532145', 'tblTempUsageDetail_20' ) start [2025-02-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532145', 'tblTempUsageDetail_20' ) end [2025-02-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532145', 'tblTempVendorCDR_20' ) start [2025-02-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532145', 'tblTempVendorCDR_20' ) end [2025-02-22 11:35:18] Production.INFO: ProcessCDR(1,14532145,1,1,2) [2025-02-22 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532145', 'tblTempUsageDetail_20' ) start [2025-02-22 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532145', 'tblTempUsageDetail_20' ) end [2025-02-22 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:35:23] Production.INFO: ==21372== Releasing lock... [2025-02-22 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:36:05 [end_date_ymd] => 2025-02-22 11:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:36:05' and `end` < '2025-02-22 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-02-22 11:36:17] Production.INFO: count ==1336 [2025-02-22 11:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:36:05 - End Time 2025-02-22 11:36:05 [2025-02-22 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532150', 'tblTempUsageDetail_20' ) start [2025-02-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532150', 'tblTempUsageDetail_20' ) end [2025-02-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532150', 'tblTempVendorCDR_20' ) start [2025-02-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532150', 'tblTempVendorCDR_20' ) end [2025-02-22 11:36:18] Production.INFO: ProcessCDR(1,14532150,1,1,2) [2025-02-22 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532150', 'tblTempUsageDetail_20' ) start [2025-02-22 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532150', 'tblTempUsageDetail_20' ) end [2025-02-22 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:36:23] Production.INFO: ==21483== Releasing lock... [2025-02-22 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:36:23] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:37:04 [end_date_ymd] => 2025-02-22 11:37:04 [RateCDR] => 1 ) [2025-02-22 11:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:37:04' and `end` < '2025-02-22 11:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:37:16] Production.INFO: count ==1341 [2025-02-22 11:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:37:04 - End Time 2025-02-22 11:37:04 [2025-02-22 11:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532155', 'tblTempUsageDetail_20' ) start [2025-02-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532155', 'tblTempUsageDetail_20' ) end [2025-02-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532155', 'tblTempVendorCDR_20' ) start [2025-02-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532155', 'tblTempVendorCDR_20' ) end [2025-02-22 11:37:17] Production.INFO: ProcessCDR(1,14532155,1,1,2) [2025-02-22 11:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532155', 'tblTempUsageDetail_20' ) start [2025-02-22 11:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532155', 'tblTempUsageDetail_20' ) end [2025-02-22 11:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:37:20] Production.INFO: ==21590== Releasing lock... [2025-02-22 11:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:37:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:38:05 [end_date_ymd] => 2025-02-22 11:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:38:05' and `end` < '2025-02-22 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-02-22 11:38:17] Production.INFO: count ==1348 [2025-02-22 11:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:38:05 - End Time 2025-02-22 11:38:05 [2025-02-22 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532160', 'tblTempUsageDetail_20' ) start [2025-02-22 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532160', 'tblTempUsageDetail_20' ) end [2025-02-22 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532160', 'tblTempVendorCDR_20' ) start [2025-02-22 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532160', 'tblTempVendorCDR_20' ) end [2025-02-22 11:38:18] Production.INFO: ProcessCDR(1,14532160,1,1,2) [2025-02-22 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532160', 'tblTempUsageDetail_20' ) start [2025-02-22 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532160', 'tblTempUsageDetail_20' ) end [2025-02-22 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:38:23] Production.INFO: ==21701== Releasing lock... [2025-02-22 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:39:05 [end_date_ymd] => 2025-02-22 11:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:39:05' and `end` < '2025-02-22 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-02-22 11:39:17] Production.INFO: count ==1347 [2025-02-22 11:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:39:05 - End Time 2025-02-22 11:39:05 [2025-02-22 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532165', 'tblTempUsageDetail_20' ) start [2025-02-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532165', 'tblTempUsageDetail_20' ) end [2025-02-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532165', 'tblTempVendorCDR_20' ) start [2025-02-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532165', 'tblTempVendorCDR_20' ) end [2025-02-22 11:39:17] Production.INFO: ProcessCDR(1,14532165,1,1,2) [2025-02-22 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532165', 'tblTempUsageDetail_20' ) start [2025-02-22 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532165', 'tblTempUsageDetail_20' ) end [2025-02-22 11:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:39:21] Production.INFO: ==21806== Releasing lock... [2025-02-22 11:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:40:06 [end_date_ymd] => 2025-02-22 11:40:06 [RateCDR] => 1 ) [2025-02-22 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:40:06' and `end` < '2025-02-22 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:40:18] Production.INFO: count ==1342 [2025-02-22 11:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:40:06 - End Time 2025-02-22 11:40:06 [2025-02-22 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532170', 'tblTempUsageDetail_20' ) start [2025-02-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532170', 'tblTempUsageDetail_20' ) end [2025-02-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532170', 'tblTempVendorCDR_20' ) start [2025-02-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532170', 'tblTempVendorCDR_20' ) end [2025-02-22 11:40:18] Production.INFO: ProcessCDR(1,14532170,1,1,2) [2025-02-22 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532170', 'tblTempUsageDetail_20' ) start [2025-02-22 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532170', 'tblTempUsageDetail_20' ) end [2025-02-22 11:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:40:21] Production.INFO: ==21921== Releasing lock... [2025-02-22 11:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:40:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:41:05 [end_date_ymd] => 2025-02-22 11:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:41:05' and `end` < '2025-02-22 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-02-22 11:41:17] Production.INFO: count ==1348 [2025-02-22 11:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:41:05 - End Time 2025-02-22 11:41:05 [2025-02-22 11:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532176', 'tblTempUsageDetail_20' ) start [2025-02-22 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532176', 'tblTempUsageDetail_20' ) end [2025-02-22 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532176', 'tblTempVendorCDR_20' ) start [2025-02-22 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532176', 'tblTempVendorCDR_20' ) end [2025-02-22 11:41:17] Production.INFO: ProcessCDR(1,14532176,1,1,2) [2025-02-22 11:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532176', 'tblTempUsageDetail_20' ) start [2025-02-22 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532176', 'tblTempUsageDetail_20' ) end [2025-02-22 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:41:22] Production.INFO: ==22031== Releasing lock... [2025-02-22 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:41:22] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:42:05 [end_date_ymd] => 2025-02-22 11:42:05 [RateCDR] => 1 ) [2025-02-22 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:42:05' and `end` < '2025-02-22 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:42:17] Production.INFO: count ==1350 [2025-02-22 11:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:42:05 - End Time 2025-02-22 11:42:05 [2025-02-22 11:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532181', 'tblTempUsageDetail_20' ) start [2025-02-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532181', 'tblTempUsageDetail_20' ) end [2025-02-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532181', 'tblTempVendorCDR_20' ) start [2025-02-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532181', 'tblTempVendorCDR_20' ) end [2025-02-22 11:42:18] Production.INFO: ProcessCDR(1,14532181,1,1,2) [2025-02-22 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532181', 'tblTempUsageDetail_20' ) start [2025-02-22 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532181', 'tblTempUsageDetail_20' ) end [2025-02-22 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:42:22] Production.INFO: ==22180== Releasing lock... [2025-02-22 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:43:05 [end_date_ymd] => 2025-02-22 11:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:43:05' and `end` < '2025-02-22 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-02-22 11:43:17] Production.INFO: count ==1352 [2025-02-22 11:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:43:05 - End Time 2025-02-22 11:43:05 [2025-02-22 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532186', 'tblTempUsageDetail_20' ) start [2025-02-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532186', 'tblTempUsageDetail_20' ) end [2025-02-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532186', 'tblTempVendorCDR_20' ) start [2025-02-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532186', 'tblTempVendorCDR_20' ) end [2025-02-22 11:43:17] Production.INFO: ProcessCDR(1,14532186,1,1,2) [2025-02-22 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532186', 'tblTempUsageDetail_20' ) start [2025-02-22 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532186', 'tblTempUsageDetail_20' ) end [2025-02-22 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:43:22] Production.INFO: ==22290== Releasing lock... [2025-02-22 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:43:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:44:05 [end_date_ymd] => 2025-02-22 11:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:44:05' and `end` < '2025-02-22 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-02-22 11:44:17] Production.INFO: count ==1353 [2025-02-22 11:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:44:05 - End Time 2025-02-22 11:44:05 [2025-02-22 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532191', 'tblTempUsageDetail_20' ) start [2025-02-22 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532191', 'tblTempUsageDetail_20' ) end [2025-02-22 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532191', 'tblTempVendorCDR_20' ) start [2025-02-22 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532191', 'tblTempVendorCDR_20' ) end [2025-02-22 11:44:18] Production.INFO: ProcessCDR(1,14532191,1,1,2) [2025-02-22 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532191', 'tblTempUsageDetail_20' ) start [2025-02-22 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532191', 'tblTempUsageDetail_20' ) end [2025-02-22 11:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:44:22] Production.INFO: ==22397== Releasing lock... [2025-02-22 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:44:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:45:05 [end_date_ymd] => 2025-02-22 11:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:45:05' and `end` < '2025-02-22 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-02-22 11:45:17] Production.INFO: count ==1355 [2025-02-22 11:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:45:05 - End Time 2025-02-22 11:45:05 [2025-02-22 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532196', 'tblTempUsageDetail_20' ) start [2025-02-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532196', 'tblTempUsageDetail_20' ) end [2025-02-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532196', 'tblTempVendorCDR_20' ) start [2025-02-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532196', 'tblTempVendorCDR_20' ) end [2025-02-22 11:45:18] Production.INFO: ProcessCDR(1,14532196,1,1,2) [2025-02-22 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532196', 'tblTempUsageDetail_20' ) start [2025-02-22 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532196', 'tblTempUsageDetail_20' ) end [2025-02-22 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:45:23] Production.INFO: ==22509== Releasing lock... [2025-02-22 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:45:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:46:05 [end_date_ymd] => 2025-02-22 11:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:46:05' and `end` < '2025-02-22 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-02-22 11:46:17] Production.INFO: count ==1360 [2025-02-22 11:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:46:05 - End Time 2025-02-22 11:46:05 [2025-02-22 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532201', 'tblTempUsageDetail_20' ) start [2025-02-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532201', 'tblTempUsageDetail_20' ) end [2025-02-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532201', 'tblTempVendorCDR_20' ) start [2025-02-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532201', 'tblTempVendorCDR_20' ) end [2025-02-22 11:46:18] Production.INFO: ProcessCDR(1,14532201,1,1,2) [2025-02-22 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532201', 'tblTempUsageDetail_20' ) start [2025-02-22 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532201', 'tblTempUsageDetail_20' ) end [2025-02-22 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:46:22] Production.INFO: ==22608== Releasing lock... [2025-02-22 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:47:06 [end_date_ymd] => 2025-02-22 11:47:06 [RateCDR] => 1 ) [2025-02-22 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:47:06' and `end` < '2025-02-22 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:47:18] Production.INFO: count ==1369 [2025-02-22 11:47:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:47:06 - End Time 2025-02-22 11:47:06 [2025-02-22 11:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532206', 'tblTempUsageDetail_20' ) start [2025-02-22 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532206', 'tblTempUsageDetail_20' ) end [2025-02-22 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532206', 'tblTempVendorCDR_20' ) start [2025-02-22 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532206', 'tblTempVendorCDR_20' ) end [2025-02-22 11:47:19] Production.INFO: ProcessCDR(1,14532206,1,1,2) [2025-02-22 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532206', 'tblTempUsageDetail_20' ) start [2025-02-22 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532206', 'tblTempUsageDetail_20' ) end [2025-02-22 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:47:24] Production.INFO: ==22719== Releasing lock... [2025-02-22 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:47:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:48:05 [end_date_ymd] => 2025-02-22 11:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:48:05' and `end` < '2025-02-22 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-02-22 11:48:17] Production.INFO: count ==1373 [2025-02-22 11:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:48:05 - End Time 2025-02-22 11:48:05 [2025-02-22 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532211', 'tblTempUsageDetail_20' ) start [2025-02-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532211', 'tblTempUsageDetail_20' ) end [2025-02-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532211', 'tblTempVendorCDR_20' ) start [2025-02-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532211', 'tblTempVendorCDR_20' ) end [2025-02-22 11:48:18] Production.INFO: ProcessCDR(1,14532211,1,1,2) [2025-02-22 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532211', 'tblTempUsageDetail_20' ) start [2025-02-22 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532211', 'tblTempUsageDetail_20' ) end [2025-02-22 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:48:23] Production.INFO: ==22797== Releasing lock... [2025-02-22 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:48:23] Production.INFO: 38 MB #Memory Used# [2025-02-22 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:49:06 [end_date_ymd] => 2025-02-22 11:49:06 [RateCDR] => 1 ) [2025-02-22 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:49:06' and `end` < '2025-02-22 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:49:18] Production.INFO: count ==1369 [2025-02-22 11:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:49:06 - End Time 2025-02-22 11:49:06 [2025-02-22 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532216', 'tblTempUsageDetail_20' ) start [2025-02-22 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532216', 'tblTempUsageDetail_20' ) end [2025-02-22 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532216', 'tblTempVendorCDR_20' ) start [2025-02-22 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532216', 'tblTempVendorCDR_20' ) end [2025-02-22 11:49:19] Production.INFO: ProcessCDR(1,14532216,1,1,2) [2025-02-22 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532216', 'tblTempUsageDetail_20' ) start [2025-02-22 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532216', 'tblTempUsageDetail_20' ) end [2025-02-22 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:49:23] Production.INFO: ==22878== Releasing lock... [2025-02-22 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:49:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:50:06 [end_date_ymd] => 2025-02-22 11:50:06 [RateCDR] => 1 ) [2025-02-22 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:50:06' and `end` < '2025-02-22 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:50:18] Production.INFO: count ==1376 [2025-02-22 11:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 08:50:06 - End Time 2025-02-22 11:50:06 [2025-02-22 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532221', 'tblTempUsageDetail_20' ) start [2025-02-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532221', 'tblTempUsageDetail_20' ) end [2025-02-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532221', 'tblTempVendorCDR_20' ) start [2025-02-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532221', 'tblTempVendorCDR_20' ) end [2025-02-22 11:50:19] Production.INFO: ProcessCDR(1,14532221,1,1,2) [2025-02-22 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532221', 'tblTempUsageDetail_20' ) start [2025-02-22 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532221', 'tblTempUsageDetail_20' ) end [2025-02-22 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:50:23] Production.INFO: ==22959== Releasing lock... [2025-02-22 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:50:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:51:05 [end_date_ymd] => 2025-02-22 11:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:51:05' and `end` < '2025-02-22 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-02-22 11:51:17] Production.INFO: count ==1409 [2025-02-22 11:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:51:05 - End Time 2025-02-22 11:51:05 [2025-02-22 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532227', 'tblTempUsageDetail_20' ) start [2025-02-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532227', 'tblTempUsageDetail_20' ) end [2025-02-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532227', 'tblTempVendorCDR_20' ) start [2025-02-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532227', 'tblTempVendorCDR_20' ) end [2025-02-22 11:51:17] Production.INFO: ProcessCDR(1,14532227,1,1,2) [2025-02-22 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532227', 'tblTempUsageDetail_20' ) start [2025-02-22 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532227', 'tblTempUsageDetail_20' ) end [2025-02-22 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:51:22] Production.INFO: ==23043== Releasing lock... [2025-02-22 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:52:06 [end_date_ymd] => 2025-02-22 11:52:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:52:06' and `end` < '2025-02-22 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-02-22 11:52:18] Production.INFO: count ==1411 [2025-02-22 11:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:52:06 - End Time 2025-02-22 11:52:06 [2025-02-22 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532232', 'tblTempUsageDetail_20' ) start [2025-02-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532232', 'tblTempUsageDetail_20' ) end [2025-02-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532232', 'tblTempVendorCDR_20' ) start [2025-02-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532232', 'tblTempVendorCDR_20' ) end [2025-02-22 11:52:18] Production.INFO: ProcessCDR(1,14532232,1,1,2) [2025-02-22 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532232', 'tblTempUsageDetail_20' ) start [2025-02-22 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532232', 'tblTempUsageDetail_20' ) end [2025-02-22 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:52:23] Production.INFO: ==23120== Releasing lock... [2025-02-22 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:53:05 [end_date_ymd] => 2025-02-22 11:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:53:05' and `end` < '2025-02-22 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-02-22 11:53:17] Production.INFO: count ==1428 [2025-02-22 11:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:53:05 - End Time 2025-02-22 11:53:05 [2025-02-22 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532237', 'tblTempUsageDetail_20' ) start [2025-02-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532237', 'tblTempUsageDetail_20' ) end [2025-02-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532237', 'tblTempVendorCDR_20' ) start [2025-02-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532237', 'tblTempVendorCDR_20' ) end [2025-02-22 11:53:17] Production.INFO: ProcessCDR(1,14532237,1,1,2) [2025-02-22 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532237', 'tblTempUsageDetail_20' ) start [2025-02-22 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532237', 'tblTempUsageDetail_20' ) end [2025-02-22 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:53:22] Production.INFO: ==23203== Releasing lock... [2025-02-22 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:53:22] Production.INFO: 39 MB #Memory Used# [2025-02-22 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:54:06 [end_date_ymd] => 2025-02-22 11:54:06 [RateCDR] => 1 ) [2025-02-22 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:54:06' and `end` < '2025-02-22 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:54:18] Production.INFO: count ==1429 [2025-02-22 11:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:54:06 - End Time 2025-02-22 11:54:06 [2025-02-22 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532242', 'tblTempUsageDetail_20' ) start [2025-02-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532242', 'tblTempUsageDetail_20' ) end [2025-02-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532242', 'tblTempVendorCDR_20' ) start [2025-02-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532242', 'tblTempVendorCDR_20' ) end [2025-02-22 11:54:18] Production.INFO: ProcessCDR(1,14532242,1,1,2) [2025-02-22 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532242', 'tblTempUsageDetail_20' ) start [2025-02-22 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532242', 'tblTempUsageDetail_20' ) end [2025-02-22 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:54:23] Production.INFO: ==23279== Releasing lock... [2025-02-22 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:54:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:55:05 [end_date_ymd] => 2025-02-22 11:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:55:05' and `end` < '2025-02-22 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-02-22 11:55:17] Production.INFO: count ==1442 [2025-02-22 11:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:55:05 - End Time 2025-02-22 11:55:05 [2025-02-22 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532247', 'tblTempUsageDetail_20' ) start [2025-02-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532247', 'tblTempUsageDetail_20' ) end [2025-02-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532247', 'tblTempVendorCDR_20' ) start [2025-02-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532247', 'tblTempVendorCDR_20' ) end [2025-02-22 11:55:17] Production.INFO: ProcessCDR(1,14532247,1,1,2) [2025-02-22 11:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532247', 'tblTempUsageDetail_20' ) start [2025-02-22 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532247', 'tblTempUsageDetail_20' ) end [2025-02-22 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:55:21] Production.INFO: ==23362== Releasing lock... [2025-02-22 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:55:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:56:05 [end_date_ymd] => 2025-02-22 11:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 08:56:05' and `end` < '2025-02-22 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-02-22 11:56:17] Production.INFO: count ==1456 [2025-02-22 11:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:56:05 - End Time 2025-02-22 11:56:05 [2025-02-22 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532252', 'tblTempUsageDetail_20' ) start [2025-02-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532252', 'tblTempUsageDetail_20' ) end [2025-02-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532252', 'tblTempVendorCDR_20' ) start [2025-02-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532252', 'tblTempVendorCDR_20' ) end [2025-02-22 11:56:18] Production.INFO: ProcessCDR(1,14532252,1,1,2) [2025-02-22 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532252', 'tblTempUsageDetail_20' ) start [2025-02-22 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532252', 'tblTempUsageDetail_20' ) end [2025-02-22 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:56:23] Production.INFO: ==23442== Releasing lock... [2025-02-22 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:56:23] Production.INFO: 39 MB #Memory Used# [2025-02-22 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:57:05 [end_date_ymd] => 2025-02-22 11:57:05 [RateCDR] => 1 ) [2025-02-22 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:57:05' and `end` < '2025-02-22 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:57:17] Production.INFO: count ==1458 [2025-02-22 11:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 08:57:05 - End Time 2025-02-22 11:57:05 [2025-02-22 11:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532257', 'tblTempUsageDetail_20' ) start [2025-02-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532257', 'tblTempUsageDetail_20' ) end [2025-02-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532257', 'tblTempVendorCDR_20' ) start [2025-02-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532257', 'tblTempVendorCDR_20' ) end [2025-02-22 11:57:18] Production.INFO: ProcessCDR(1,14532257,1,1,2) [2025-02-22 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532257', 'tblTempUsageDetail_20' ) start [2025-02-22 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532257', 'tblTempUsageDetail_20' ) end [2025-02-22 11:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:57:21] Production.INFO: ==23562== Releasing lock... [2025-02-22 11:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:57:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:58:06 [end_date_ymd] => 2025-02-22 11:58:06 [RateCDR] => 1 ) [2025-02-22 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:58:06' and `end` < '2025-02-22 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:58:18] Production.INFO: count ==1455 [2025-02-22 11:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:58:06 - End Time 2025-02-22 11:58:06 [2025-02-22 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532262', 'tblTempUsageDetail_20' ) start [2025-02-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532262', 'tblTempUsageDetail_20' ) end [2025-02-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532262', 'tblTempVendorCDR_20' ) start [2025-02-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532262', 'tblTempVendorCDR_20' ) end [2025-02-22 11:58:18] Production.INFO: ProcessCDR(1,14532262,1,1,2) [2025-02-22 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532262', 'tblTempUsageDetail_20' ) start [2025-02-22 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532262', 'tblTempUsageDetail_20' ) end [2025-02-22 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:58:23] Production.INFO: ==23641== Releasing lock... [2025-02-22 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:58:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 08:59:05 [end_date_ymd] => 2025-02-22 11:59:05 [RateCDR] => 1 ) [2025-02-22 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 08:59:05' and `end` < '2025-02-22 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 11:59:17] Production.INFO: count ==1458 [2025-02-22 11:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 08:59:05 - End Time 2025-02-22 11:59:05 [2025-02-22 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532267', 'tblTempUsageDetail_20' ) start [2025-02-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532267', 'tblTempUsageDetail_20' ) end [2025-02-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532267', 'tblTempVendorCDR_20' ) start [2025-02-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532267', 'tblTempVendorCDR_20' ) end [2025-02-22 11:59:18] Production.INFO: ProcessCDR(1,14532267,1,1,2) [2025-02-22 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532267', 'tblTempUsageDetail_20' ) start [2025-02-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532267', 'tblTempUsageDetail_20' ) end [2025-02-22 11:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 11:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 11:59:21] Production.INFO: ==23720== Releasing lock... [2025-02-22 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 11:59:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:00:06 [end_date_ymd] => 2025-02-22 12:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:00:06' and `end` < '2025-02-22 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-02-22 12:00:18] Production.INFO: count ==1468 [2025-02-22 12:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 09:00:06 - End Time 2025-02-22 12:00:06 [2025-02-22 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532273', 'tblTempUsageDetail_20' ) start [2025-02-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532273', 'tblTempUsageDetail_20' ) end [2025-02-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532273', 'tblTempVendorCDR_20' ) start [2025-02-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532273', 'tblTempVendorCDR_20' ) end [2025-02-22 12:00:19] Production.INFO: ProcessCDR(1,14532273,1,1,2) [2025-02-22 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532273', 'tblTempUsageDetail_20' ) start [2025-02-22 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532273', 'tblTempUsageDetail_20' ) end [2025-02-22 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:00:22] Production.INFO: ==23802== Releasing lock... [2025-02-22 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:01:05 [end_date_ymd] => 2025-02-22 12:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:01:05' and `end` < '2025-02-22 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-02-22 12:01:17] Production.INFO: count ==1485 [2025-02-22 12:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:01:05 - End Time 2025-02-22 12:01:05 [2025-02-22 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532278', 'tblTempUsageDetail_20' ) start [2025-02-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532278', 'tblTempUsageDetail_20' ) end [2025-02-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532278', 'tblTempVendorCDR_20' ) start [2025-02-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532278', 'tblTempVendorCDR_20' ) end [2025-02-22 12:01:18] Production.INFO: ProcessCDR(1,14532278,1,1,2) [2025-02-22 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532278', 'tblTempUsageDetail_20' ) start [2025-02-22 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532278', 'tblTempUsageDetail_20' ) end [2025-02-22 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:01:23] Production.INFO: ==23898== Releasing lock... [2025-02-22 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:01:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:02:05 [end_date_ymd] => 2025-02-22 12:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:02:05' and `end` < '2025-02-22 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-02-22 12:02:17] Production.INFO: count ==1487 [2025-02-22 12:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:02:05 - End Time 2025-02-22 12:02:05 [2025-02-22 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532283', 'tblTempUsageDetail_20' ) start [2025-02-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532283', 'tblTempUsageDetail_20' ) end [2025-02-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532283', 'tblTempVendorCDR_20' ) start [2025-02-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532283', 'tblTempVendorCDR_20' ) end [2025-02-22 12:02:18] Production.INFO: ProcessCDR(1,14532283,1,1,2) [2025-02-22 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532283', 'tblTempUsageDetail_20' ) start [2025-02-22 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532283', 'tblTempUsageDetail_20' ) end [2025-02-22 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:02:22] Production.INFO: ==23975== Releasing lock... [2025-02-22 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:03:05 [end_date_ymd] => 2025-02-22 12:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:03:05' and `end` < '2025-02-22 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-02-22 12:03:17] Production.INFO: count ==1492 [2025-02-22 12:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:03:05 - End Time 2025-02-22 12:03:05 [2025-02-22 12:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532288', 'tblTempUsageDetail_20' ) start [2025-02-22 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532288', 'tblTempUsageDetail_20' ) end [2025-02-22 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532288', 'tblTempVendorCDR_20' ) start [2025-02-22 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532288', 'tblTempVendorCDR_20' ) end [2025-02-22 12:03:17] Production.INFO: ProcessCDR(1,14532288,1,1,2) [2025-02-22 12:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532288', 'tblTempUsageDetail_20' ) start [2025-02-22 12:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532288', 'tblTempUsageDetail_20' ) end [2025-02-22 12:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:03:20] Production.INFO: ==24057== Releasing lock... [2025-02-22 12:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:03:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:04:06 [end_date_ymd] => 2025-02-22 12:04:06 [RateCDR] => 1 ) [2025-02-22 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:04:06' and `end` < '2025-02-22 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:04:18] Production.INFO: count ==1493 [2025-02-22 12:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:04:06 - End Time 2025-02-22 12:04:06 [2025-02-22 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532293', 'tblTempUsageDetail_20' ) start [2025-02-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532293', 'tblTempUsageDetail_20' ) end [2025-02-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532293', 'tblTempVendorCDR_20' ) start [2025-02-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532293', 'tblTempVendorCDR_20' ) end [2025-02-22 12:04:18] Production.INFO: ProcessCDR(1,14532293,1,1,2) [2025-02-22 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532293', 'tblTempUsageDetail_20' ) start [2025-02-22 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532293', 'tblTempUsageDetail_20' ) end [2025-02-22 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:04:23] Production.INFO: ==24131== Releasing lock... [2025-02-22 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:04:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:05:05 [end_date_ymd] => 2025-02-22 12:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:05:05' and `end` < '2025-02-22 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-02-22 12:05:17] Production.INFO: count ==1500 [2025-02-22 12:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:05:05 - End Time 2025-02-22 12:05:05 [2025-02-22 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532298', 'tblTempUsageDetail_20' ) start [2025-02-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532298', 'tblTempUsageDetail_20' ) end [2025-02-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532298', 'tblTempVendorCDR_20' ) start [2025-02-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532298', 'tblTempVendorCDR_20' ) end [2025-02-22 12:05:18] Production.INFO: ProcessCDR(1,14532298,1,1,2) [2025-02-22 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532298', 'tblTempUsageDetail_20' ) start [2025-02-22 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532298', 'tblTempUsageDetail_20' ) end [2025-02-22 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:05:23] Production.INFO: ==24212== Releasing lock... [2025-02-22 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:06:06 [end_date_ymd] => 2025-02-22 12:06:06 [RateCDR] => 1 ) [2025-02-22 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:06:06' and `end` < '2025-02-22 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:06:17] Production.INFO: count ==1495 [2025-02-22 12:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:06:06 - End Time 2025-02-22 12:06:06 [2025-02-22 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532303', 'tblTempUsageDetail_20' ) start [2025-02-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532303', 'tblTempUsageDetail_20' ) end [2025-02-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532303', 'tblTempVendorCDR_20' ) start [2025-02-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532303', 'tblTempVendorCDR_20' ) end [2025-02-22 12:06:18] Production.INFO: ProcessCDR(1,14532303,1,1,2) [2025-02-22 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532303', 'tblTempUsageDetail_20' ) start [2025-02-22 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532303', 'tblTempUsageDetail_20' ) end [2025-02-22 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:06:23] Production.INFO: ==24287== Releasing lock... [2025-02-22 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:07:05 [end_date_ymd] => 2025-02-22 12:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:07:05' and `end` < '2025-02-22 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-02-22 12:07:17] Production.INFO: count ==1504 [2025-02-22 12:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:07:05 - End Time 2025-02-22 12:07:05 [2025-02-22 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532308', 'tblTempUsageDetail_20' ) start [2025-02-22 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532308', 'tblTempUsageDetail_20' ) end [2025-02-22 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532308', 'tblTempVendorCDR_20' ) start [2025-02-22 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532308', 'tblTempVendorCDR_20' ) end [2025-02-22 12:07:17] Production.INFO: ProcessCDR(1,14532308,1,1,2) [2025-02-22 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532308', 'tblTempUsageDetail_20' ) start [2025-02-22 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532308', 'tblTempUsageDetail_20' ) end [2025-02-22 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:07:22] Production.INFO: ==24366== Releasing lock... [2025-02-22 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:07:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:08:05 [end_date_ymd] => 2025-02-22 12:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:08:05' and `end` < '2025-02-22 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-02-22 12:08:17] Production.INFO: count ==1507 [2025-02-22 12:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:08:05 - End Time 2025-02-22 12:08:05 [2025-02-22 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532313', 'tblTempUsageDetail_20' ) start [2025-02-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532313', 'tblTempUsageDetail_20' ) end [2025-02-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532313', 'tblTempVendorCDR_20' ) start [2025-02-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532313', 'tblTempVendorCDR_20' ) end [2025-02-22 12:08:18] Production.INFO: ProcessCDR(1,14532313,1,1,2) [2025-02-22 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532313', 'tblTempUsageDetail_20' ) start [2025-02-22 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532313', 'tblTempUsageDetail_20' ) end [2025-02-22 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:08:22] Production.INFO: ==24440== Releasing lock... [2025-02-22 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:09:04 [end_date_ymd] => 2025-02-22 12:09:04 [RateCDR] => 1 ) [2025-02-22 12: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-02-22 09:09:04' and `end` < '2025-02-22 12: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-02-22 12:09:16] Production.INFO: count ==1506 [2025-02-22 12:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:09:04 - End Time 2025-02-22 12:09:04 [2025-02-22 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532318', 'tblTempUsageDetail_20' ) start [2025-02-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532318', 'tblTempUsageDetail_20' ) end [2025-02-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532318', 'tblTempVendorCDR_20' ) start [2025-02-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532318', 'tblTempVendorCDR_20' ) end [2025-02-22 12:09:17] Production.INFO: ProcessCDR(1,14532318,1,1,2) [2025-02-22 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532318', 'tblTempUsageDetail_20' ) start [2025-02-22 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532318', 'tblTempUsageDetail_20' ) end [2025-02-22 12:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:09:20] Production.INFO: ==24519== Releasing lock... [2025-02-22 12:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:09:20] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:10:06 [end_date_ymd] => 2025-02-22 12:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:10:06' and `end` < '2025-02-22 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-02-22 12:10:18] Production.INFO: count ==1525 [2025-02-22 12:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:10:06 - End Time 2025-02-22 12:10:06 [2025-02-22 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532324', 'tblTempUsageDetail_20' ) start [2025-02-22 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532324', 'tblTempUsageDetail_20' ) end [2025-02-22 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532324', 'tblTempVendorCDR_20' ) start [2025-02-22 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532324', 'tblTempVendorCDR_20' ) end [2025-02-22 12:10:18] Production.INFO: ProcessCDR(1,14532324,1,1,2) [2025-02-22 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532324', 'tblTempUsageDetail_20' ) start [2025-02-22 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532324', 'tblTempUsageDetail_20' ) end [2025-02-22 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:10:22] Production.INFO: ==24597== Releasing lock... [2025-02-22 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:10:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:11:06 [end_date_ymd] => 2025-02-22 12:11:06 [RateCDR] => 1 ) [2025-02-22 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:11:06' and `end` < '2025-02-22 12:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:11:18] Production.INFO: count ==1546 [2025-02-22 12:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:11:06 - End Time 2025-02-22 12:11:06 [2025-02-22 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532329', 'tblTempUsageDetail_20' ) start [2025-02-22 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532329', 'tblTempUsageDetail_20' ) end [2025-02-22 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532329', 'tblTempVendorCDR_20' ) start [2025-02-22 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532329', 'tblTempVendorCDR_20' ) end [2025-02-22 12:11:19] Production.INFO: ProcessCDR(1,14532329,1,1,2) [2025-02-22 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532329', 'tblTempUsageDetail_20' ) start [2025-02-22 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532329', 'tblTempUsageDetail_20' ) end [2025-02-22 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:11:23] Production.INFO: ==24678== Releasing lock... [2025-02-22 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:11:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:12:05 [end_date_ymd] => 2025-02-22 12:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:12:05' and `end` < '2025-02-22 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-02-22 12:12:17] Production.INFO: count ==1552 [2025-02-22 12:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:12:05 - End Time 2025-02-22 12:12:05 [2025-02-22 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532334', 'tblTempUsageDetail_20' ) start [2025-02-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532334', 'tblTempUsageDetail_20' ) end [2025-02-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532334', 'tblTempVendorCDR_20' ) start [2025-02-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532334', 'tblTempVendorCDR_20' ) end [2025-02-22 12:12:18] Production.INFO: ProcessCDR(1,14532334,1,1,2) [2025-02-22 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532334', 'tblTempUsageDetail_20' ) start [2025-02-22 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532334', 'tblTempUsageDetail_20' ) end [2025-02-22 12:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:12:23] Production.INFO: ==24750== Releasing lock... [2025-02-22 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:12:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:13:05 [end_date_ymd] => 2025-02-22 12:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:13:05' and `end` < '2025-02-22 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-02-22 12:13:17] Production.INFO: count ==1561 [2025-02-22 12:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:13:05 - End Time 2025-02-22 12:13:05 [2025-02-22 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532339', 'tblTempUsageDetail_20' ) start [2025-02-22 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532339', 'tblTempUsageDetail_20' ) end [2025-02-22 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532339', 'tblTempVendorCDR_20' ) start [2025-02-22 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532339', 'tblTempVendorCDR_20' ) end [2025-02-22 12:13:18] Production.INFO: ProcessCDR(1,14532339,1,1,2) [2025-02-22 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532339', 'tblTempUsageDetail_20' ) start [2025-02-22 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532339', 'tblTempUsageDetail_20' ) end [2025-02-22 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:13:21] Production.INFO: ==24865== Releasing lock... [2025-02-22 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:14:05 [end_date_ymd] => 2025-02-22 12:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:14:05' and `end` < '2025-02-22 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-02-22 12:14:17] Production.INFO: count ==1570 [2025-02-22 12:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:14:05 - End Time 2025-02-22 12:14:05 [2025-02-22 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532344', 'tblTempUsageDetail_20' ) start [2025-02-22 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532344', 'tblTempUsageDetail_20' ) end [2025-02-22 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532344', 'tblTempVendorCDR_20' ) start [2025-02-22 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532344', 'tblTempVendorCDR_20' ) end [2025-02-22 12:14:18] Production.INFO: ProcessCDR(1,14532344,1,1,2) [2025-02-22 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532344', 'tblTempUsageDetail_20' ) start [2025-02-22 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532344', 'tblTempUsageDetail_20' ) end [2025-02-22 12:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:14:21] Production.INFO: ==24947== Releasing lock... [2025-02-22 12:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:14:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:15:05 [end_date_ymd] => 2025-02-22 12:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:15:05' and `end` < '2025-02-22 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-02-22 12:15:17] Production.INFO: count ==1573 [2025-02-22 12:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:15:05 - End Time 2025-02-22 12:15:05 [2025-02-22 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532349', 'tblTempUsageDetail_20' ) start [2025-02-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532349', 'tblTempUsageDetail_20' ) end [2025-02-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532349', 'tblTempVendorCDR_20' ) start [2025-02-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532349', 'tblTempVendorCDR_20' ) end [2025-02-22 12:15:18] Production.INFO: ProcessCDR(1,14532349,1,1,2) [2025-02-22 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532349', 'tblTempUsageDetail_20' ) start [2025-02-22 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532349', 'tblTempUsageDetail_20' ) end [2025-02-22 12:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:15:21] Production.INFO: ==25021== Releasing lock... [2025-02-22 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:15:21] Production.INFO: 40 MB #Memory Used# [2025-02-22 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:16:05 [end_date_ymd] => 2025-02-22 12:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:16:05' and `end` < '2025-02-22 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-02-22 12:16:17] Production.INFO: count ==1580 [2025-02-22 12:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:16:05 - End Time 2025-02-22 12:16:05 [2025-02-22 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532354', 'tblTempUsageDetail_20' ) start [2025-02-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532354', 'tblTempUsageDetail_20' ) end [2025-02-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532354', 'tblTempVendorCDR_20' ) start [2025-02-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532354', 'tblTempVendorCDR_20' ) end [2025-02-22 12:16:17] Production.INFO: ProcessCDR(1,14532354,1,1,2) [2025-02-22 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532354', 'tblTempUsageDetail_20' ) start [2025-02-22 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532354', 'tblTempUsageDetail_20' ) end [2025-02-22 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:16:22] Production.INFO: ==25094== Releasing lock... [2025-02-22 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:16:22] Production.INFO: 40 MB #Memory Used# [2025-02-22 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:17:05 [end_date_ymd] => 2025-02-22 12:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:17:05' and `end` < '2025-02-22 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-02-22 12:17:17] Production.INFO: count ==1585 [2025-02-22 12:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:17:05 - End Time 2025-02-22 12:17:05 [2025-02-22 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532359', 'tblTempUsageDetail_20' ) start [2025-02-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532359', 'tblTempUsageDetail_20' ) end [2025-02-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532359', 'tblTempVendorCDR_20' ) start [2025-02-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532359', 'tblTempVendorCDR_20' ) end [2025-02-22 12:17:18] Production.INFO: ProcessCDR(1,14532359,1,1,2) [2025-02-22 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532359', 'tblTempUsageDetail_20' ) start [2025-02-22 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532359', 'tblTempUsageDetail_20' ) end [2025-02-22 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:17:23] Production.INFO: ==25166== Releasing lock... [2025-02-22 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:17:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:18:04 [end_date_ymd] => 2025-02-22 12:18:04 [RateCDR] => 1 ) [2025-02-22 12:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:18:04' and `end` < '2025-02-22 12:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:18:16] Production.INFO: count ==1587 [2025-02-22 12:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:18:04 - End Time 2025-02-22 12:18:04 [2025-02-22 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532364', 'tblTempUsageDetail_20' ) start [2025-02-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532364', 'tblTempUsageDetail_20' ) end [2025-02-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532364', 'tblTempVendorCDR_20' ) start [2025-02-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532364', 'tblTempVendorCDR_20' ) end [2025-02-22 12:18:17] Production.INFO: ProcessCDR(1,14532364,1,1,2) [2025-02-22 12:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532364', 'tblTempUsageDetail_20' ) start [2025-02-22 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532364', 'tblTempUsageDetail_20' ) end [2025-02-22 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:18:22] Production.INFO: ==25249== Releasing lock... [2025-02-22 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:18:22] Production.INFO: 40 MB #Memory Used# [2025-02-22 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:19:05 [end_date_ymd] => 2025-02-22 12:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:19:05' and `end` < '2025-02-22 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-02-22 12:19:17] Production.INFO: count ==1601 [2025-02-22 12:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:19:05 - End Time 2025-02-22 12:19:05 [2025-02-22 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532369', 'tblTempUsageDetail_20' ) start [2025-02-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532369', 'tblTempUsageDetail_20' ) end [2025-02-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532369', 'tblTempVendorCDR_20' ) start [2025-02-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532369', 'tblTempVendorCDR_20' ) end [2025-02-22 12:19:18] Production.INFO: ProcessCDR(1,14532369,1,1,2) [2025-02-22 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532369', 'tblTempUsageDetail_20' ) start [2025-02-22 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532369', 'tblTempUsageDetail_20' ) end [2025-02-22 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:19:24] Production.INFO: ==25322== Releasing lock... [2025-02-22 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:19:24] Production.INFO: 40 MB #Memory Used# [2025-02-22 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:20:06 [end_date_ymd] => 2025-02-22 12:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:20:06' and `end` < '2025-02-22 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-02-22 12:20:18] Production.INFO: count ==1609 [2025-02-22 12:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:20:06 - End Time 2025-02-22 12:20:06 [2025-02-22 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532375', 'tblTempUsageDetail_20' ) start [2025-02-22 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532375', 'tblTempUsageDetail_20' ) end [2025-02-22 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532375', 'tblTempVendorCDR_20' ) start [2025-02-22 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532375', 'tblTempVendorCDR_20' ) end [2025-02-22 12:20:18] Production.INFO: ProcessCDR(1,14532375,1,1,2) [2025-02-22 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532375', 'tblTempUsageDetail_20' ) start [2025-02-22 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532375', 'tblTempUsageDetail_20' ) end [2025-02-22 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:20:24] Production.INFO: ==25400== Releasing lock... [2025-02-22 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:20:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:21:05 [end_date_ymd] => 2025-02-22 12:21:05 [RateCDR] => 1 ) [2025-02-22 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:21:05' and `end` < '2025-02-22 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:21:17] Production.INFO: count ==1647 [2025-02-22 12:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:21:05 - End Time 2025-02-22 12:21:05 [2025-02-22 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532380', 'tblTempUsageDetail_20' ) start [2025-02-22 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532380', 'tblTempUsageDetail_20' ) end [2025-02-22 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532380', 'tblTempVendorCDR_20' ) start [2025-02-22 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532380', 'tblTempVendorCDR_20' ) end [2025-02-22 12:21:18] Production.INFO: ProcessCDR(1,14532380,1,1,2) [2025-02-22 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532380', 'tblTempUsageDetail_20' ) start [2025-02-22 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532380', 'tblTempUsageDetail_20' ) end [2025-02-22 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:21:22] Production.INFO: ==25474== Releasing lock... [2025-02-22 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:22:06 [end_date_ymd] => 2025-02-22 12:22:06 [RateCDR] => 1 ) [2025-02-22 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:22:06' and `end` < '2025-02-22 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:22:17] Production.INFO: count ==1651 [2025-02-22 12:22:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:22:06 - End Time 2025-02-22 12:22:06 [2025-02-22 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532385', 'tblTempUsageDetail_20' ) start [2025-02-22 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532385', 'tblTempUsageDetail_20' ) end [2025-02-22 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532385', 'tblTempVendorCDR_20' ) start [2025-02-22 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532385', 'tblTempVendorCDR_20' ) end [2025-02-22 12:22:18] Production.INFO: ProcessCDR(1,14532385,1,1,2) [2025-02-22 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532385', 'tblTempUsageDetail_20' ) start [2025-02-22 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532385', 'tblTempUsageDetail_20' ) end [2025-02-22 12:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:22:21] Production.INFO: ==25546== Releasing lock... [2025-02-22 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:22:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:23:06 [end_date_ymd] => 2025-02-22 12:23:06 [RateCDR] => 1 ) [2025-02-22 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:23:06' and `end` < '2025-02-22 12:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:23:18] Production.INFO: count ==1660 [2025-02-22 12:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:23:06 - End Time 2025-02-22 12:23:06 [2025-02-22 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532390', 'tblTempUsageDetail_20' ) start [2025-02-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532390', 'tblTempUsageDetail_20' ) end [2025-02-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532390', 'tblTempVendorCDR_20' ) start [2025-02-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532390', 'tblTempVendorCDR_20' ) end [2025-02-22 12:23:18] Production.INFO: ProcessCDR(1,14532390,1,1,2) [2025-02-22 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532390', 'tblTempUsageDetail_20' ) start [2025-02-22 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532390', 'tblTempUsageDetail_20' ) end [2025-02-22 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:23:22] Production.INFO: ==25616== Releasing lock... [2025-02-22 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:24:05 [end_date_ymd] => 2025-02-22 12:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:24:05' and `end` < '2025-02-22 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-02-22 12:24:17] Production.INFO: count ==1666 [2025-02-22 12:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:24:05 - End Time 2025-02-22 12:24:05 [2025-02-22 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532395', 'tblTempUsageDetail_20' ) start [2025-02-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532395', 'tblTempUsageDetail_20' ) end [2025-02-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532395', 'tblTempVendorCDR_20' ) start [2025-02-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532395', 'tblTempVendorCDR_20' ) end [2025-02-22 12:24:18] Production.INFO: ProcessCDR(1,14532395,1,1,2) [2025-02-22 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532395', 'tblTempUsageDetail_20' ) start [2025-02-22 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532395', 'tblTempUsageDetail_20' ) end [2025-02-22 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:24:23] Production.INFO: ==25693== Releasing lock... [2025-02-22 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:24:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:25:06 [end_date_ymd] => 2025-02-22 12:25:06 [RateCDR] => 1 ) [2025-02-22 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:25:06' and `end` < '2025-02-22 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:25:18] Production.INFO: count ==1676 [2025-02-22 12:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:25:06 - End Time 2025-02-22 12:25:06 [2025-02-22 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532400', 'tblTempUsageDetail_20' ) start [2025-02-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532400', 'tblTempUsageDetail_20' ) end [2025-02-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532400', 'tblTempVendorCDR_20' ) start [2025-02-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532400', 'tblTempVendorCDR_20' ) end [2025-02-22 12:25:18] Production.INFO: ProcessCDR(1,14532400,1,1,2) [2025-02-22 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532400', 'tblTempUsageDetail_20' ) start [2025-02-22 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532400', 'tblTempUsageDetail_20' ) end [2025-02-22 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:25:24] Production.INFO: ==25765== Releasing lock... [2025-02-22 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:25:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-22 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:26:05 [end_date_ymd] => 2025-02-22 12:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:26:05' and `end` < '2025-02-22 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-02-22 12:26:17] Production.INFO: count ==1687 [2025-02-22 12:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:26:05 - End Time 2025-02-22 12:26:05 [2025-02-22 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532405', 'tblTempUsageDetail_20' ) start [2025-02-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532405', 'tblTempUsageDetail_20' ) end [2025-02-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532405', 'tblTempVendorCDR_20' ) start [2025-02-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532405', 'tblTempVendorCDR_20' ) end [2025-02-22 12:26:18] Production.INFO: ProcessCDR(1,14532405,1,1,2) [2025-02-22 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532405', 'tblTempUsageDetail_20' ) start [2025-02-22 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532405', 'tblTempUsageDetail_20' ) end [2025-02-22 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:26:23] Production.INFO: ==25842== Releasing lock... [2025-02-22 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:26:23] Production.INFO: 41 MB #Memory Used# [2025-02-22 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:27:05 [end_date_ymd] => 2025-02-22 12:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:27:05' and `end` < '2025-02-22 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-02-22 12:27:17] Production.INFO: count ==1775 [2025-02-22 12:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:27:05 - End Time 2025-02-22 12:27:05 [2025-02-22 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532410', 'tblTempUsageDetail_20' ) start [2025-02-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532410', 'tblTempUsageDetail_20' ) end [2025-02-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532410', 'tblTempVendorCDR_20' ) start [2025-02-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532410', 'tblTempVendorCDR_20' ) end [2025-02-22 12:27:18] Production.INFO: ProcessCDR(1,14532410,1,1,2) [2025-02-22 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532410', 'tblTempUsageDetail_20' ) start [2025-02-22 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532410', 'tblTempUsageDetail_20' ) end [2025-02-22 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:27:23] Production.INFO: ==25915== Releasing lock... [2025-02-22 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:27:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:28:05 [end_date_ymd] => 2025-02-22 12:28:05 [RateCDR] => 1 ) [2025-02-22 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:28:05' and `end` < '2025-02-22 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:28:17] Production.INFO: count ==1773 [2025-02-22 12:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:28:05 - End Time 2025-02-22 12:28:05 [2025-02-22 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532415', 'tblTempUsageDetail_20' ) start [2025-02-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532415', 'tblTempUsageDetail_20' ) end [2025-02-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532415', 'tblTempVendorCDR_20' ) start [2025-02-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532415', 'tblTempVendorCDR_20' ) end [2025-02-22 12:28:18] Production.INFO: ProcessCDR(1,14532415,1,1,2) [2025-02-22 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532415', 'tblTempUsageDetail_20' ) start [2025-02-22 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532415', 'tblTempUsageDetail_20' ) end [2025-02-22 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:28:21] Production.INFO: ==26025== Releasing lock... [2025-02-22 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:28:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:29:06 [end_date_ymd] => 2025-02-22 12:29:06 [RateCDR] => 1 ) [2025-02-22 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:29:06' and `end` < '2025-02-22 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:29:18] Production.INFO: count ==1777 [2025-02-22 12:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:29:06 - End Time 2025-02-22 12:29:06 [2025-02-22 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532420', 'tblTempUsageDetail_20' ) start [2025-02-22 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532420', 'tblTempUsageDetail_20' ) end [2025-02-22 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532420', 'tblTempVendorCDR_20' ) start [2025-02-22 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532420', 'tblTempVendorCDR_20' ) end [2025-02-22 12:29:18] Production.INFO: ProcessCDR(1,14532420,1,1,2) [2025-02-22 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532420', 'tblTempUsageDetail_20' ) start [2025-02-22 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532420', 'tblTempUsageDetail_20' ) end [2025-02-22 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:29:23] Production.INFO: ==26095== Releasing lock... [2025-02-22 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:29:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:30:07 [end_date_ymd] => 2025-02-22 12:30:07 [RateCDR] => 1 ) [2025-02-22 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:30:07' and `end` < '2025-02-22 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:30:19] Production.INFO: count ==1781 [2025-02-22 12:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 09:30:07 - End Time 2025-02-22 12:30:07 [2025-02-22 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532426', 'tblTempUsageDetail_20' ) start [2025-02-22 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532426', 'tblTempUsageDetail_20' ) end [2025-02-22 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532426', 'tblTempVendorCDR_20' ) start [2025-02-22 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532426', 'tblTempVendorCDR_20' ) end [2025-02-22 12:30:19] Production.INFO: ProcessCDR(1,14532426,1,1,2) [2025-02-22 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532426', 'tblTempUsageDetail_20' ) start [2025-02-22 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532426', 'tblTempUsageDetail_20' ) end [2025-02-22 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:30:24] Production.INFO: ==26171== Releasing lock... [2025-02-22 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:30:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:31:05 [end_date_ymd] => 2025-02-22 12:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:31:05' and `end` < '2025-02-22 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-02-22 12:31:17] Production.INFO: count ==1804 [2025-02-22 12:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:31:05 - End Time 2025-02-22 12:31:05 [2025-02-22 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532431', 'tblTempUsageDetail_20' ) start [2025-02-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532431', 'tblTempUsageDetail_20' ) end [2025-02-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532431', 'tblTempVendorCDR_20' ) start [2025-02-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532431', 'tblTempVendorCDR_20' ) end [2025-02-22 12:31:18] Production.INFO: ProcessCDR(1,14532431,1,1,2) [2025-02-22 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532431', 'tblTempUsageDetail_20' ) start [2025-02-22 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532431', 'tblTempUsageDetail_20' ) end [2025-02-22 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:31:23] Production.INFO: ==26246== Releasing lock... [2025-02-22 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:31:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:32:06 [end_date_ymd] => 2025-02-22 12:32:06 [RateCDR] => 1 ) [2025-02-22 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:32:06' and `end` < '2025-02-22 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:32:18] Production.INFO: count ==1800 [2025-02-22 12:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:32:06 - End Time 2025-02-22 12:32:06 [2025-02-22 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532436', 'tblTempUsageDetail_20' ) start [2025-02-22 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532436', 'tblTempUsageDetail_20' ) end [2025-02-22 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532436', 'tblTempVendorCDR_20' ) start [2025-02-22 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532436', 'tblTempVendorCDR_20' ) end [2025-02-22 12:32:18] Production.INFO: ProcessCDR(1,14532436,1,1,2) [2025-02-22 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532436', 'tblTempUsageDetail_20' ) start [2025-02-22 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532436', 'tblTempUsageDetail_20' ) end [2025-02-22 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:32:23] Production.INFO: ==26320== Releasing lock... [2025-02-22 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:33:05 [end_date_ymd] => 2025-02-22 12:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:33:05' and `end` < '2025-02-22 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-02-22 12:33:17] Production.INFO: count ==1794 [2025-02-22 12:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:33:05 - End Time 2025-02-22 12:33:05 [2025-02-22 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532441', 'tblTempUsageDetail_20' ) start [2025-02-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532441', 'tblTempUsageDetail_20' ) end [2025-02-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532441', 'tblTempVendorCDR_20' ) start [2025-02-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532441', 'tblTempVendorCDR_20' ) end [2025-02-22 12:33:18] Production.INFO: ProcessCDR(1,14532441,1,1,2) [2025-02-22 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532441', 'tblTempUsageDetail_20' ) start [2025-02-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532441', 'tblTempUsageDetail_20' ) end [2025-02-22 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:33:21] Production.INFO: ==26397== Releasing lock... [2025-02-22 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:33:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:34:05 [end_date_ymd] => 2025-02-22 12:34:05 [RateCDR] => 1 ) [2025-02-22 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:34:05' and `end` < '2025-02-22 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:34:18] Production.INFO: count ==1812 [2025-02-22 12:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:34:05 - End Time 2025-02-22 12:34:05 [2025-02-22 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532446', 'tblTempUsageDetail_20' ) start [2025-02-22 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532446', 'tblTempUsageDetail_20' ) end [2025-02-22 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532446', 'tblTempVendorCDR_20' ) start [2025-02-22 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532446', 'tblTempVendorCDR_20' ) end [2025-02-22 12:34:18] Production.INFO: ProcessCDR(1,14532446,1,1,2) [2025-02-22 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532446', 'tblTempUsageDetail_20' ) start [2025-02-22 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532446', 'tblTempUsageDetail_20' ) end [2025-02-22 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:34:23] Production.INFO: ==26470== Releasing lock... [2025-02-22 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:34:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:35:05 [end_date_ymd] => 2025-02-22 12:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:35:05' and `end` < '2025-02-22 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-02-22 12:35:17] Production.INFO: count ==1818 [2025-02-22 12:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:35:05 - End Time 2025-02-22 12:35:05 [2025-02-22 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532451', 'tblTempUsageDetail_20' ) start [2025-02-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532451', 'tblTempUsageDetail_20' ) end [2025-02-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532451', 'tblTempVendorCDR_20' ) start [2025-02-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532451', 'tblTempVendorCDR_20' ) end [2025-02-22 12:35:18] Production.INFO: ProcessCDR(1,14532451,1,1,2) [2025-02-22 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532451', 'tblTempUsageDetail_20' ) start [2025-02-22 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532451', 'tblTempUsageDetail_20' ) end [2025-02-22 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:35:23] Production.INFO: ==26544== Releasing lock... [2025-02-22 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:35:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:36:06 [end_date_ymd] => 2025-02-22 12:36:06 [RateCDR] => 1 ) [2025-02-22 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:36:06' and `end` < '2025-02-22 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:36:18] Production.INFO: count ==1819 [2025-02-22 12:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:36:06 - End Time 2025-02-22 12:36:06 [2025-02-22 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532456', 'tblTempUsageDetail_20' ) start [2025-02-22 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532456', 'tblTempUsageDetail_20' ) end [2025-02-22 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532456', 'tblTempVendorCDR_20' ) start [2025-02-22 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532456', 'tblTempVendorCDR_20' ) end [2025-02-22 12:36:18] Production.INFO: ProcessCDR(1,14532456,1,1,2) [2025-02-22 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532456', 'tblTempUsageDetail_20' ) start [2025-02-22 12:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532456', 'tblTempUsageDetail_20' ) end [2025-02-22 12:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:36:23] Production.INFO: ==26621== Releasing lock... [2025-02-22 12:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:36:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:37:05 [end_date_ymd] => 2025-02-22 12:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:37:05' and `end` < '2025-02-22 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-02-22 12:37:17] Production.INFO: count ==1826 [2025-02-22 12:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:37:05 - End Time 2025-02-22 12:37:05 [2025-02-22 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532461', 'tblTempUsageDetail_20' ) start [2025-02-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532461', 'tblTempUsageDetail_20' ) end [2025-02-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532461', 'tblTempVendorCDR_20' ) start [2025-02-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532461', 'tblTempVendorCDR_20' ) end [2025-02-22 12:37:18] Production.INFO: ProcessCDR(1,14532461,1,1,2) [2025-02-22 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532461', 'tblTempUsageDetail_20' ) start [2025-02-22 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532461', 'tblTempUsageDetail_20' ) end [2025-02-22 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:37:23] Production.INFO: ==26695== Releasing lock... [2025-02-22 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:37:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:38:06 [end_date_ymd] => 2025-02-22 12:38:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:38:06' and `end` < '2025-02-22 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-02-22 12:38:18] Production.INFO: count ==1837 [2025-02-22 12:38:19] Production.ERROR: pbx CDR StartTime 2025-02-22 09:38:06 - End Time 2025-02-22 12:38:06 [2025-02-22 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532466', 'tblTempUsageDetail_20' ) start [2025-02-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532466', 'tblTempUsageDetail_20' ) end [2025-02-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532466', 'tblTempVendorCDR_20' ) start [2025-02-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532466', 'tblTempVendorCDR_20' ) end [2025-02-22 12:38:19] Production.INFO: ProcessCDR(1,14532466,1,1,2) [2025-02-22 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532466', 'tblTempUsageDetail_20' ) start [2025-02-22 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532466', 'tblTempUsageDetail_20' ) end [2025-02-22 12:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:38:24] Production.INFO: ==26774== Releasing lock... [2025-02-22 12:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:38:24] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:39:06 [end_date_ymd] => 2025-02-22 12:39:06 [RateCDR] => 1 ) [2025-02-22 12: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-02-22 09:39:06' and `end` < '2025-02-22 12: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-02-22 12:39:18] Production.INFO: count ==1845 [2025-02-22 12:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:39:06 - End Time 2025-02-22 12:39:06 [2025-02-22 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532471', 'tblTempUsageDetail_20' ) start [2025-02-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532471', 'tblTempUsageDetail_20' ) end [2025-02-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532471', 'tblTempVendorCDR_20' ) start [2025-02-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532471', 'tblTempVendorCDR_20' ) end [2025-02-22 12:39:18] Production.INFO: ProcessCDR(1,14532471,1,1,2) [2025-02-22 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532471', 'tblTempUsageDetail_20' ) start [2025-02-22 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532471', 'tblTempUsageDetail_20' ) end [2025-02-22 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:39:23] Production.INFO: ==26848== Releasing lock... [2025-02-22 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:39:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:40:06 [end_date_ymd] => 2025-02-22 12:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:40:06' and `end` < '2025-02-22 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-02-22 12:40:18] Production.INFO: count ==1835 [2025-02-22 12:40:19] Production.ERROR: pbx CDR StartTime 2025-02-22 09:40:06 - End Time 2025-02-22 12:40:06 [2025-02-22 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532476', 'tblTempUsageDetail_20' ) start [2025-02-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532476', 'tblTempUsageDetail_20' ) end [2025-02-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532476', 'tblTempVendorCDR_20' ) start [2025-02-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532476', 'tblTempVendorCDR_20' ) end [2025-02-22 12:40:19] Production.INFO: ProcessCDR(1,14532476,1,1,2) [2025-02-22 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532476', 'tblTempUsageDetail_20' ) start [2025-02-22 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532476', 'tblTempUsageDetail_20' ) end [2025-02-22 12:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:40:24] Production.INFO: ==26923== Releasing lock... [2025-02-22 12:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:40:24] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:41:05 [end_date_ymd] => 2025-02-22 12:41:05 [RateCDR] => 1 ) [2025-02-22 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:41:05' and `end` < '2025-02-22 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:41:18] Production.INFO: count ==1855 [2025-02-22 12:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:41:05 - End Time 2025-02-22 12:41:05 [2025-02-22 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532482', 'tblTempUsageDetail_20' ) start [2025-02-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532482', 'tblTempUsageDetail_20' ) end [2025-02-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532482', 'tblTempVendorCDR_20' ) start [2025-02-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532482', 'tblTempVendorCDR_20' ) end [2025-02-22 12:41:18] Production.INFO: ProcessCDR(1,14532482,1,1,2) [2025-02-22 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532482', 'tblTempUsageDetail_20' ) start [2025-02-22 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532482', 'tblTempUsageDetail_20' ) end [2025-02-22 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:41:23] Production.INFO: ==27000== Releasing lock... [2025-02-22 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:41:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:42:06 [end_date_ymd] => 2025-02-22 12:42:06 [RateCDR] => 1 ) [2025-02-22 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:42:06' and `end` < '2025-02-22 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:42:18] Production.INFO: count ==1849 [2025-02-22 12:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:42:06 - End Time 2025-02-22 12:42:06 [2025-02-22 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532487', 'tblTempUsageDetail_20' ) start [2025-02-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532487', 'tblTempUsageDetail_20' ) end [2025-02-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532487', 'tblTempVendorCDR_20' ) start [2025-02-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532487', 'tblTempVendorCDR_20' ) end [2025-02-22 12:42:18] Production.INFO: ProcessCDR(1,14532487,1,1,2) [2025-02-22 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532487', 'tblTempUsageDetail_20' ) start [2025-02-22 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532487', 'tblTempUsageDetail_20' ) end [2025-02-22 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:42:23] Production.INFO: ==27074== Releasing lock... [2025-02-22 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:42:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:43:05 [end_date_ymd] => 2025-02-22 12:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:43:05' and `end` < '2025-02-22 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-02-22 12:43:17] Production.INFO: count ==1852 [2025-02-22 12:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:43:05 - End Time 2025-02-22 12:43:05 [2025-02-22 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532492', 'tblTempUsageDetail_20' ) start [2025-02-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532492', 'tblTempUsageDetail_20' ) end [2025-02-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532492', 'tblTempVendorCDR_20' ) start [2025-02-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532492', 'tblTempVendorCDR_20' ) end [2025-02-22 12:43:18] Production.INFO: ProcessCDR(1,14532492,1,1,2) [2025-02-22 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532492', 'tblTempUsageDetail_20' ) start [2025-02-22 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532492', 'tblTempUsageDetail_20' ) end [2025-02-22 12:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:43:22] Production.INFO: ==27148== Releasing lock... [2025-02-22 12:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:43:22] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:44:05 [end_date_ymd] => 2025-02-22 12:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:44:05' and `end` < '2025-02-22 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-02-22 12:44:17] Production.INFO: count ==1836 [2025-02-22 12:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:44:05 - End Time 2025-02-22 12:44:05 [2025-02-22 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532497', 'tblTempUsageDetail_20' ) start [2025-02-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532497', 'tblTempUsageDetail_20' ) end [2025-02-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532497', 'tblTempVendorCDR_20' ) start [2025-02-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532497', 'tblTempVendorCDR_20' ) end [2025-02-22 12:44:18] Production.INFO: ProcessCDR(1,14532497,1,1,2) [2025-02-22 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532497', 'tblTempUsageDetail_20' ) start [2025-02-22 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532497', 'tblTempUsageDetail_20' ) end [2025-02-22 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:44:23] Production.INFO: ==27267== Releasing lock... [2025-02-22 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:44:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:45:05 [end_date_ymd] => 2025-02-22 12:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:45:05' and `end` < '2025-02-22 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-02-22 12:45:17] Production.INFO: count ==1830 [2025-02-22 12:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:45:05 - End Time 2025-02-22 12:45:05 [2025-02-22 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532502', 'tblTempUsageDetail_20' ) start [2025-02-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532502', 'tblTempUsageDetail_20' ) end [2025-02-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532502', 'tblTempVendorCDR_20' ) start [2025-02-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532502', 'tblTempVendorCDR_20' ) end [2025-02-22 12:45:18] Production.INFO: ProcessCDR(1,14532502,1,1,2) [2025-02-22 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532502', 'tblTempUsageDetail_20' ) start [2025-02-22 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532502', 'tblTempUsageDetail_20' ) end [2025-02-22 12:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:45:21] Production.INFO: ==27345== Releasing lock... [2025-02-22 12:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:45:21] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:46:06 [end_date_ymd] => 2025-02-22 12:46:06 [RateCDR] => 1 ) [2025-02-22 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:46:06' and `end` < '2025-02-22 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:46:18] Production.INFO: count ==1832 [2025-02-22 12:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:46:06 - End Time 2025-02-22 12:46:06 [2025-02-22 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532507', 'tblTempUsageDetail_20' ) start [2025-02-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532507', 'tblTempUsageDetail_20' ) end [2025-02-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532507', 'tblTempVendorCDR_20' ) start [2025-02-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532507', 'tblTempVendorCDR_20' ) end [2025-02-22 12:46:18] Production.INFO: ProcessCDR(1,14532507,1,1,2) [2025-02-22 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532507', 'tblTempUsageDetail_20' ) start [2025-02-22 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532507', 'tblTempUsageDetail_20' ) end [2025-02-22 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:46:23] Production.INFO: ==27418== Releasing lock... [2025-02-22 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:46:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:47:05 [end_date_ymd] => 2025-02-22 12:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:47:05' and `end` < '2025-02-22 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-02-22 12:47:17] Production.INFO: count ==1837 [2025-02-22 12:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:47:05 - End Time 2025-02-22 12:47:05 [2025-02-22 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532512', 'tblTempUsageDetail_20' ) start [2025-02-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532512', 'tblTempUsageDetail_20' ) end [2025-02-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532512', 'tblTempVendorCDR_20' ) start [2025-02-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532512', 'tblTempVendorCDR_20' ) end [2025-02-22 12:47:18] Production.INFO: ProcessCDR(1,14532512,1,1,2) [2025-02-22 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532512', 'tblTempUsageDetail_20' ) start [2025-02-22 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532512', 'tblTempUsageDetail_20' ) end [2025-02-22 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:47:23] Production.INFO: ==27494== Releasing lock... [2025-02-22 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:47:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:48:05 [end_date_ymd] => 2025-02-22 12:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:48:05' and `end` < '2025-02-22 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-02-22 12:48:17] Production.INFO: count ==1842 [2025-02-22 12:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:48:05 - End Time 2025-02-22 12:48:05 [2025-02-22 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532517', 'tblTempUsageDetail_20' ) start [2025-02-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532517', 'tblTempUsageDetail_20' ) end [2025-02-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532517', 'tblTempVendorCDR_20' ) start [2025-02-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532517', 'tblTempVendorCDR_20' ) end [2025-02-22 12:48:18] Production.INFO: ProcessCDR(1,14532517,1,1,2) [2025-02-22 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532517', 'tblTempUsageDetail_20' ) start [2025-02-22 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532517', 'tblTempUsageDetail_20' ) end [2025-02-22 12:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:48:23] Production.INFO: ==27566== Releasing lock... [2025-02-22 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:48:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:49:05 [end_date_ymd] => 2025-02-22 12:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:49:05' and `end` < '2025-02-22 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-02-22 12:49:17] Production.INFO: count ==1842 [2025-02-22 12:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 09:49:05 - End Time 2025-02-22 12:49:05 [2025-02-22 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532522', 'tblTempUsageDetail_20' ) start [2025-02-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532522', 'tblTempUsageDetail_20' ) end [2025-02-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532522', 'tblTempVendorCDR_20' ) start [2025-02-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532522', 'tblTempVendorCDR_20' ) end [2025-02-22 12:49:17] Production.INFO: ProcessCDR(1,14532522,1,1,2) [2025-02-22 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532522', 'tblTempUsageDetail_20' ) start [2025-02-22 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532522', 'tblTempUsageDetail_20' ) end [2025-02-22 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:49:21] Production.INFO: ==27642== Releasing lock... [2025-02-22 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:49:21] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:50:07 [end_date_ymd] => 2025-02-22 12:50:07 [RateCDR] => 1 ) [2025-02-22 12: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-02-22 09:50:07' and `end` < '2025-02-22 12: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-02-22 12:50:19] Production.INFO: count ==1846 [2025-02-22 12:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 09:50:07 - End Time 2025-02-22 12:50:07 [2025-02-22 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532528', 'tblTempUsageDetail_20' ) start [2025-02-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532528', 'tblTempUsageDetail_20' ) end [2025-02-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532528', 'tblTempVendorCDR_20' ) start [2025-02-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532528', 'tblTempVendorCDR_20' ) end [2025-02-22 12:50:19] Production.INFO: ProcessCDR(1,14532528,1,1,2) [2025-02-22 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532528', 'tblTempUsageDetail_20' ) start [2025-02-22 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532528', 'tblTempUsageDetail_20' ) end [2025-02-22 12:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:50:25] Production.INFO: ==27718== Releasing lock... [2025-02-22 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:50:25] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:51:05 [end_date_ymd] => 2025-02-22 12:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:51:05' and `end` < '2025-02-22 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-02-22 12:51:17] Production.INFO: count ==1864 [2025-02-22 12:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:51:05 - End Time 2025-02-22 12:51:05 [2025-02-22 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532533', 'tblTempUsageDetail_20' ) start [2025-02-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532533', 'tblTempUsageDetail_20' ) end [2025-02-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532533', 'tblTempVendorCDR_20' ) start [2025-02-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532533', 'tblTempVendorCDR_20' ) end [2025-02-22 12:51:18] Production.INFO: ProcessCDR(1,14532533,1,1,2) [2025-02-22 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532533', 'tblTempUsageDetail_20' ) start [2025-02-22 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532533', 'tblTempUsageDetail_20' ) end [2025-02-22 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:51:21] Production.INFO: ==27797== Releasing lock... [2025-02-22 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:51:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:52:05 [end_date_ymd] => 2025-02-22 12:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:52:05' and `end` < '2025-02-22 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-02-22 12:52:17] Production.INFO: count ==1858 [2025-02-22 12:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:52:05 - End Time 2025-02-22 12:52:05 [2025-02-22 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532538', 'tblTempUsageDetail_20' ) start [2025-02-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532538', 'tblTempUsageDetail_20' ) end [2025-02-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532538', 'tblTempVendorCDR_20' ) start [2025-02-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532538', 'tblTempVendorCDR_20' ) end [2025-02-22 12:52:18] Production.INFO: ProcessCDR(1,14532538,1,1,2) [2025-02-22 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532538', 'tblTempUsageDetail_20' ) start [2025-02-22 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532538', 'tblTempUsageDetail_20' ) end [2025-02-22 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:52:22] Production.INFO: ==27875== Releasing lock... [2025-02-22 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:53:05 [end_date_ymd] => 2025-02-22 12:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:53:05' and `end` < '2025-02-22 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-02-22 12:53:17] Production.INFO: count ==1856 [2025-02-22 12:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:53:05 - End Time 2025-02-22 12:53:05 [2025-02-22 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532543', 'tblTempUsageDetail_20' ) start [2025-02-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532543', 'tblTempUsageDetail_20' ) end [2025-02-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532543', 'tblTempVendorCDR_20' ) start [2025-02-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532543', 'tblTempVendorCDR_20' ) end [2025-02-22 12:53:18] Production.INFO: ProcessCDR(1,14532543,1,1,2) [2025-02-22 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532543', 'tblTempUsageDetail_20' ) start [2025-02-22 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532543', 'tblTempUsageDetail_20' ) end [2025-02-22 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:53:22] Production.INFO: ==27948== Releasing lock... [2025-02-22 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:53:22] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:54:05 [end_date_ymd] => 2025-02-22 12:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:54:05' and `end` < '2025-02-22 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-02-22 12:54:17] Production.INFO: count ==1863 [2025-02-22 12:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:54:05 - End Time 2025-02-22 12:54:05 [2025-02-22 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532548', 'tblTempUsageDetail_20' ) start [2025-02-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532548', 'tblTempUsageDetail_20' ) end [2025-02-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532548', 'tblTempVendorCDR_20' ) start [2025-02-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532548', 'tblTempVendorCDR_20' ) end [2025-02-22 12:54:18] Production.INFO: ProcessCDR(1,14532548,1,1,2) [2025-02-22 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532548', 'tblTempUsageDetail_20' ) start [2025-02-22 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532548', 'tblTempUsageDetail_20' ) end [2025-02-22 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:54:23] Production.INFO: ==28021== Releasing lock... [2025-02-22 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:54:23] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:55:05 [end_date_ymd] => 2025-02-22 12:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:55:05' and `end` < '2025-02-22 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-02-22 12:55:17] Production.INFO: count ==1862 [2025-02-22 12:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:55:05 - End Time 2025-02-22 12:55:05 [2025-02-22 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532553', 'tblTempUsageDetail_20' ) start [2025-02-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532553', 'tblTempUsageDetail_20' ) end [2025-02-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532553', 'tblTempVendorCDR_20' ) start [2025-02-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532553', 'tblTempVendorCDR_20' ) end [2025-02-22 12:55:18] Production.INFO: ProcessCDR(1,14532553,1,1,2) [2025-02-22 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532553', 'tblTempUsageDetail_20' ) start [2025-02-22 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532553', 'tblTempUsageDetail_20' ) end [2025-02-22 12:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:55:21] Production.INFO: ==28095== Releasing lock... [2025-02-22 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:55:21] Production.INFO: 42 MB #Memory Used# [2025-02-22 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:56:05 [end_date_ymd] => 2025-02-22 12:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:56:05' and `end` < '2025-02-22 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-02-22 12:56:18] Production.INFO: count ==1883 [2025-02-22 12:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:56:05 - End Time 2025-02-22 12:56:05 [2025-02-22 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532558', 'tblTempUsageDetail_20' ) start [2025-02-22 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532558', 'tblTempUsageDetail_20' ) end [2025-02-22 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532558', 'tblTempVendorCDR_20' ) start [2025-02-22 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532558', 'tblTempVendorCDR_20' ) end [2025-02-22 12:56:18] Production.INFO: ProcessCDR(1,14532558,1,1,2) [2025-02-22 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532558', 'tblTempUsageDetail_20' ) start [2025-02-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532558', 'tblTempUsageDetail_20' ) end [2025-02-22 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:56:22] Production.INFO: ==28175== Releasing lock... [2025-02-22 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:56:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:57:06 [end_date_ymd] => 2025-02-22 12:57:06 [RateCDR] => 1 ) [2025-02-22 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 09:57:06' and `end` < '2025-02-22 12:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 12:57:18] Production.INFO: count ==1924 [2025-02-22 12:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:57:06 - End Time 2025-02-22 12:57:06 [2025-02-22 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532563', 'tblTempUsageDetail_20' ) start [2025-02-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532563', 'tblTempUsageDetail_20' ) end [2025-02-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532563', 'tblTempVendorCDR_20' ) start [2025-02-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532563', 'tblTempVendorCDR_20' ) end [2025-02-22 12:57:18] Production.INFO: ProcessCDR(1,14532563,1,1,2) [2025-02-22 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532563', 'tblTempUsageDetail_20' ) start [2025-02-22 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532563', 'tblTempUsageDetail_20' ) end [2025-02-22 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:57:22] Production.INFO: ==28249== Releasing lock... [2025-02-22 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:58:05 [end_date_ymd] => 2025-02-22 12:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:58:05' and `end` < '2025-02-22 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-02-22 12:58:17] Production.INFO: count ==1938 [2025-02-22 12:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:58:05 - End Time 2025-02-22 12:58:05 [2025-02-22 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532568', 'tblTempUsageDetail_20' ) start [2025-02-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532568', 'tblTempUsageDetail_20' ) end [2025-02-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532568', 'tblTempVendorCDR_20' ) start [2025-02-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532568', 'tblTempVendorCDR_20' ) end [2025-02-22 12:58:18] Production.INFO: ProcessCDR(1,14532568,1,1,2) [2025-02-22 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532568', 'tblTempUsageDetail_20' ) start [2025-02-22 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532568', 'tblTempUsageDetail_20' ) end [2025-02-22 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:58:22] Production.INFO: ==28327== Releasing lock... [2025-02-22 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:58:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 09:59:05 [end_date_ymd] => 2025-02-22 12:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 09:59:05' and `end` < '2025-02-22 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-02-22 12:59:17] Production.INFO: count ==1940 [2025-02-22 12:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 09:59:05 - End Time 2025-02-22 12:59:05 [2025-02-22 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532573', 'tblTempUsageDetail_20' ) start [2025-02-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532573', 'tblTempUsageDetail_20' ) end [2025-02-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532573', 'tblTempVendorCDR_20' ) start [2025-02-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532573', 'tblTempVendorCDR_20' ) end [2025-02-22 12:59:18] Production.INFO: ProcessCDR(1,14532573,1,1,2) [2025-02-22 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532573', 'tblTempUsageDetail_20' ) start [2025-02-22 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532573', 'tblTempUsageDetail_20' ) end [2025-02-22 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 12:59:23] Production.INFO: ==28439== Releasing lock... [2025-02-22 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 12:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:00:07 [end_date_ymd] => 2025-02-22 13:00:07 [RateCDR] => 1 ) [2025-02-22 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:00:07' and `end` < '2025-02-22 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:00:19] Production.INFO: count ==1929 [2025-02-22 13:00:20] Production.ERROR: pbx CDR StartTime 2025-02-22 10:00:07 - End Time 2025-02-22 13:00:07 [2025-02-22 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532579', 'tblTempUsageDetail_20' ) start [2025-02-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532579', 'tblTempUsageDetail_20' ) end [2025-02-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532579', 'tblTempVendorCDR_20' ) start [2025-02-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532579', 'tblTempVendorCDR_20' ) end [2025-02-22 13:00:20] Production.INFO: ProcessCDR(1,14532579,1,1,2) [2025-02-22 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532579', 'tblTempUsageDetail_20' ) start [2025-02-22 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532579', 'tblTempUsageDetail_20' ) end [2025-02-22 13:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:00:25] Production.INFO: ==28520== Releasing lock... [2025-02-22 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:00:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:01:05 [end_date_ymd] => 2025-02-22 13:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:01:05' and `end` < '2025-02-22 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-02-22 13:01:17] Production.INFO: count ==1942 [2025-02-22 13:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:01:05 - End Time 2025-02-22 13:01:05 [2025-02-22 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532584', 'tblTempUsageDetail_20' ) start [2025-02-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532584', 'tblTempUsageDetail_20' ) end [2025-02-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532584', 'tblTempVendorCDR_20' ) start [2025-02-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532584', 'tblTempVendorCDR_20' ) end [2025-02-22 13:01:18] Production.INFO: ProcessCDR(1,14532584,1,1,2) [2025-02-22 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532584', 'tblTempUsageDetail_20' ) start [2025-02-22 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532584', 'tblTempUsageDetail_20' ) end [2025-02-22 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:01:23] Production.INFO: ==28606== Releasing lock... [2025-02-22 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:01:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:02:05 [end_date_ymd] => 2025-02-22 13:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:02:05' and `end` < '2025-02-22 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-02-22 13:02:17] Production.INFO: count ==1929 [2025-02-22 13:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:02:05 - End Time 2025-02-22 13:02:05 [2025-02-22 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532589', 'tblTempUsageDetail_20' ) start [2025-02-22 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532589', 'tblTempUsageDetail_20' ) end [2025-02-22 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532589', 'tblTempVendorCDR_20' ) start [2025-02-22 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532589', 'tblTempVendorCDR_20' ) end [2025-02-22 13:02:18] Production.INFO: ProcessCDR(1,14532589,1,1,2) [2025-02-22 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532589', 'tblTempUsageDetail_20' ) start [2025-02-22 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532589', 'tblTempUsageDetail_20' ) end [2025-02-22 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:02:23] Production.INFO: ==28681== Releasing lock... [2025-02-22 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:03:04 [end_date_ymd] => 2025-02-22 13:03:04 [RateCDR] => 1 ) [2025-02-22 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:03:04' and `end` < '2025-02-22 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:03:17] Production.INFO: count ==1932 [2025-02-22 13:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:03:04 - End Time 2025-02-22 13:03:04 [2025-02-22 13:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532594', 'tblTempUsageDetail_20' ) start [2025-02-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532594', 'tblTempUsageDetail_20' ) end [2025-02-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532594', 'tblTempVendorCDR_20' ) start [2025-02-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532594', 'tblTempVendorCDR_20' ) end [2025-02-22 13:03:17] Production.INFO: ProcessCDR(1,14532594,1,1,2) [2025-02-22 13:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532594', 'tblTempUsageDetail_20' ) start [2025-02-22 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532594', 'tblTempUsageDetail_20' ) end [2025-02-22 13:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:03:22] Production.INFO: ==28760== Releasing lock... [2025-02-22 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:03:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:04:06 [end_date_ymd] => 2025-02-22 13:04:06 [RateCDR] => 1 ) [2025-02-22 13: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-02-22 10:04:06' and `end` < '2025-02-22 13: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-02-22 13:04:18] Production.INFO: count ==1929 [2025-02-22 13:04:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:04:06 - End Time 2025-02-22 13:04:06 [2025-02-22 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532599', 'tblTempUsageDetail_20' ) start [2025-02-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532599', 'tblTempUsageDetail_20' ) end [2025-02-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532599', 'tblTempVendorCDR_20' ) start [2025-02-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532599', 'tblTempVendorCDR_20' ) end [2025-02-22 13:04:19] Production.INFO: ProcessCDR(1,14532599,1,1,2) [2025-02-22 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532599', 'tblTempUsageDetail_20' ) start [2025-02-22 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532599', 'tblTempUsageDetail_20' ) end [2025-02-22 13:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:04:22] Production.INFO: ==28841== Releasing lock... [2025-02-22 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:04:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:05:04 [end_date_ymd] => 2025-02-22 13:05:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:05:04' and `end` < '2025-02-22 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-02-22 13:05:17] Production.INFO: count ==1927 [2025-02-22 13:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:05:04 - End Time 2025-02-22 13:05:04 [2025-02-22 13:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532604', 'tblTempUsageDetail_20' ) start [2025-02-22 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532604', 'tblTempUsageDetail_20' ) end [2025-02-22 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532604', 'tblTempVendorCDR_20' ) start [2025-02-22 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532604', 'tblTempVendorCDR_20' ) end [2025-02-22 13:05:17] Production.INFO: ProcessCDR(1,14532604,1,1,2) [2025-02-22 13:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532604', 'tblTempUsageDetail_20' ) start [2025-02-22 13:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532604', 'tblTempUsageDetail_20' ) end [2025-02-22 13:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:05:21] Production.INFO: ==28914== Releasing lock... [2025-02-22 13:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:05:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:06:05 [end_date_ymd] => 2025-02-22 13:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:06:05' and `end` < '2025-02-22 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-02-22 13:06:17] Production.INFO: count ==1929 [2025-02-22 13:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:06:05 - End Time 2025-02-22 13:06:05 [2025-02-22 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532609', 'tblTempUsageDetail_20' ) start [2025-02-22 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532609', 'tblTempUsageDetail_20' ) end [2025-02-22 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532609', 'tblTempVendorCDR_20' ) start [2025-02-22 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532609', 'tblTempVendorCDR_20' ) end [2025-02-22 13:06:18] Production.INFO: ProcessCDR(1,14532609,1,1,2) [2025-02-22 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532609', 'tblTempUsageDetail_20' ) start [2025-02-22 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532609', 'tblTempUsageDetail_20' ) end [2025-02-22 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:06:23] Production.INFO: ==28989== Releasing lock... [2025-02-22 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:06:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:07:05 [end_date_ymd] => 2025-02-22 13:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:07:05' and `end` < '2025-02-22 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:07:17] Production.INFO: count ==1926 [2025-02-22 13:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:07:05 - End Time 2025-02-22 13:07:05 [2025-02-22 13:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532614', 'tblTempUsageDetail_20' ) start [2025-02-22 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532614', 'tblTempUsageDetail_20' ) end [2025-02-22 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532614', 'tblTempVendorCDR_20' ) start [2025-02-22 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532614', 'tblTempVendorCDR_20' ) end [2025-02-22 13:07:17] Production.INFO: ProcessCDR(1,14532614,1,1,2) [2025-02-22 13:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532614', 'tblTempUsageDetail_20' ) start [2025-02-22 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532614', 'tblTempUsageDetail_20' ) end [2025-02-22 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:07:22] Production.INFO: ==29070== Releasing lock... [2025-02-22 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:07:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:08:05 [end_date_ymd] => 2025-02-22 13:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:08:05' and `end` < '2025-02-22 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-02-22 13:08:18] Production.INFO: count ==1932 [2025-02-22 13:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:08:05 - End Time 2025-02-22 13:08:05 [2025-02-22 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532619', 'tblTempUsageDetail_20' ) start [2025-02-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532619', 'tblTempUsageDetail_20' ) end [2025-02-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532619', 'tblTempVendorCDR_20' ) start [2025-02-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532619', 'tblTempVendorCDR_20' ) end [2025-02-22 13:08:18] Production.INFO: ProcessCDR(1,14532619,1,1,2) [2025-02-22 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532619', 'tblTempUsageDetail_20' ) start [2025-02-22 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532619', 'tblTempUsageDetail_20' ) end [2025-02-22 13:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:08:23] Production.INFO: ==29144== Releasing lock... [2025-02-22 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:08:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:09:05 [end_date_ymd] => 2025-02-22 13:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:09:05' and `end` < '2025-02-22 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-02-22 13:09:18] Production.INFO: count ==1931 [2025-02-22 13:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:09:05 - End Time 2025-02-22 13:09:05 [2025-02-22 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532624', 'tblTempUsageDetail_20' ) start [2025-02-22 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532624', 'tblTempUsageDetail_20' ) end [2025-02-22 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532624', 'tblTempVendorCDR_20' ) start [2025-02-22 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532624', 'tblTempVendorCDR_20' ) end [2025-02-22 13:09:18] Production.INFO: ProcessCDR(1,14532624,1,1,2) [2025-02-22 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532624', 'tblTempUsageDetail_20' ) start [2025-02-22 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532624', 'tblTempUsageDetail_20' ) end [2025-02-22 13:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:09:21] Production.INFO: ==29224== Releasing lock... [2025-02-22 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:09:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:10:06 [end_date_ymd] => 2025-02-22 13:10:06 [RateCDR] => 1 ) [2025-02-22 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:10:06' and `end` < '2025-02-22 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:10:18] Production.INFO: count ==1932 [2025-02-22 13:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:10:06 - End Time 2025-02-22 13:10:06 [2025-02-22 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532630', 'tblTempUsageDetail_20' ) start [2025-02-22 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532630', 'tblTempUsageDetail_20' ) end [2025-02-22 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532630', 'tblTempVendorCDR_20' ) start [2025-02-22 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532630', 'tblTempVendorCDR_20' ) end [2025-02-22 13:10:19] Production.INFO: ProcessCDR(1,14532630,1,1,2) [2025-02-22 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532630', 'tblTempUsageDetail_20' ) start [2025-02-22 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532630', 'tblTempUsageDetail_20' ) end [2025-02-22 13:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:10:24] Production.INFO: ==29301== Releasing lock... [2025-02-22 13:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:10:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:11:06 [end_date_ymd] => 2025-02-22 13:11:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:11:06' and `end` < '2025-02-22 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-02-22 13:11:18] Production.INFO: count ==1957 [2025-02-22 13:11:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:11:06 - End Time 2025-02-22 13:11:06 [2025-02-22 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532635', 'tblTempUsageDetail_20' ) start [2025-02-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532635', 'tblTempUsageDetail_20' ) end [2025-02-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532635', 'tblTempVendorCDR_20' ) start [2025-02-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532635', 'tblTempVendorCDR_20' ) end [2025-02-22 13:11:19] Production.INFO: ProcessCDR(1,14532635,1,1,2) [2025-02-22 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532635', 'tblTempUsageDetail_20' ) start [2025-02-22 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532635', 'tblTempUsageDetail_20' ) end [2025-02-22 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:11:24] Production.INFO: ==29380== Releasing lock... [2025-02-22 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:11:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:12:05 [end_date_ymd] => 2025-02-22 13:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:12:05' and `end` < '2025-02-22 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-02-22 13:12:17] Production.INFO: count ==1941 [2025-02-22 13:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:12:05 - End Time 2025-02-22 13:12:05 [2025-02-22 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532640', 'tblTempUsageDetail_20' ) start [2025-02-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532640', 'tblTempUsageDetail_20' ) end [2025-02-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532640', 'tblTempVendorCDR_20' ) start [2025-02-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532640', 'tblTempVendorCDR_20' ) end [2025-02-22 13:12:18] Production.INFO: ProcessCDR(1,14532640,1,1,2) [2025-02-22 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532640', 'tblTempUsageDetail_20' ) start [2025-02-22 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532640', 'tblTempUsageDetail_20' ) end [2025-02-22 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:12:23] Production.INFO: ==29457== Releasing lock... [2025-02-22 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:12:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:13:05 [end_date_ymd] => 2025-02-22 13:13:05 [RateCDR] => 1 ) [2025-02-22 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:13:05' and `end` < '2025-02-22 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:13:17] Production.INFO: count ==1951 [2025-02-22 13:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:13:05 - End Time 2025-02-22 13:13:05 [2025-02-22 13:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532645', 'tblTempUsageDetail_20' ) start [2025-02-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532645', 'tblTempUsageDetail_20' ) end [2025-02-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532645', 'tblTempVendorCDR_20' ) start [2025-02-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532645', 'tblTempVendorCDR_20' ) end [2025-02-22 13:13:17] Production.INFO: ProcessCDR(1,14532645,1,1,2) [2025-02-22 13:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532645', 'tblTempUsageDetail_20' ) start [2025-02-22 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532645', 'tblTempUsageDetail_20' ) end [2025-02-22 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:13:22] Production.INFO: ==29531== Releasing lock... [2025-02-22 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:13:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:14:05 [end_date_ymd] => 2025-02-22 13:14:05 [RateCDR] => 1 ) [2025-02-22 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:14:05' and `end` < '2025-02-22 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:14:17] Production.INFO: count ==1955 [2025-02-22 13:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:14:05 - End Time 2025-02-22 13:14:05 [2025-02-22 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532650', 'tblTempUsageDetail_20' ) start [2025-02-22 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532650', 'tblTempUsageDetail_20' ) end [2025-02-22 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532650', 'tblTempVendorCDR_20' ) start [2025-02-22 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532650', 'tblTempVendorCDR_20' ) end [2025-02-22 13:14:18] Production.INFO: ProcessCDR(1,14532650,1,1,2) [2025-02-22 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532650', 'tblTempUsageDetail_20' ) start [2025-02-22 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532650', 'tblTempUsageDetail_20' ) end [2025-02-22 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:14:23] Production.INFO: ==29605== Releasing lock... [2025-02-22 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:14:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:15:06 [end_date_ymd] => 2025-02-22 13:15:06 [RateCDR] => 1 ) [2025-02-22 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:15:06' and `end` < '2025-02-22 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:15:18] Production.INFO: count ==1982 [2025-02-22 13:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:15:06 - End Time 2025-02-22 13:15:06 [2025-02-22 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532655', 'tblTempUsageDetail_20' ) start [2025-02-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532655', 'tblTempUsageDetail_20' ) end [2025-02-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532655', 'tblTempVendorCDR_20' ) start [2025-02-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532655', 'tblTempVendorCDR_20' ) end [2025-02-22 13:15:18] Production.INFO: ProcessCDR(1,14532655,1,1,2) [2025-02-22 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532655', 'tblTempUsageDetail_20' ) start [2025-02-22 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532655', 'tblTempUsageDetail_20' ) end [2025-02-22 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:15:23] Production.INFO: ==29719== Releasing lock... [2025-02-22 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:15:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:16:05 [end_date_ymd] => 2025-02-22 13:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:16:05' and `end` < '2025-02-22 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-02-22 13:16:17] Production.INFO: count ==1989 [2025-02-22 13:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:16:05 - End Time 2025-02-22 13:16:05 [2025-02-22 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532660', 'tblTempUsageDetail_20' ) start [2025-02-22 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532660', 'tblTempUsageDetail_20' ) end [2025-02-22 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532660', 'tblTempVendorCDR_20' ) start [2025-02-22 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532660', 'tblTempVendorCDR_20' ) end [2025-02-22 13:16:18] Production.INFO: ProcessCDR(1,14532660,1,1,2) [2025-02-22 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532660', 'tblTempUsageDetail_20' ) start [2025-02-22 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532660', 'tblTempUsageDetail_20' ) end [2025-02-22 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:16:23] Production.INFO: ==29793== Releasing lock... [2025-02-22 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:16:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:17:05 [end_date_ymd] => 2025-02-22 13:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:17:05' and `end` < '2025-02-22 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-02-22 13:17:17] Production.INFO: count ==1994 [2025-02-22 13:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:17:05 - End Time 2025-02-22 13:17:05 [2025-02-22 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532665', 'tblTempUsageDetail_20' ) start [2025-02-22 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532665', 'tblTempUsageDetail_20' ) end [2025-02-22 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532665', 'tblTempVendorCDR_20' ) start [2025-02-22 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532665', 'tblTempVendorCDR_20' ) end [2025-02-22 13:17:18] Production.INFO: ProcessCDR(1,14532665,1,1,2) [2025-02-22 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532665', 'tblTempUsageDetail_20' ) start [2025-02-22 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532665', 'tblTempUsageDetail_20' ) end [2025-02-22 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:17:23] Production.INFO: ==29867== Releasing lock... [2025-02-22 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:17:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:18:05 [end_date_ymd] => 2025-02-22 13:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:18:05' and `end` < '2025-02-22 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-02-22 13:18:17] Production.INFO: count ==1996 [2025-02-22 13:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:18:05 - End Time 2025-02-22 13:18:05 [2025-02-22 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532670', 'tblTempUsageDetail_20' ) start [2025-02-22 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532670', 'tblTempUsageDetail_20' ) end [2025-02-22 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532670', 'tblTempVendorCDR_20' ) start [2025-02-22 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532670', 'tblTempVendorCDR_20' ) end [2025-02-22 13:18:18] Production.INFO: ProcessCDR(1,14532670,1,1,2) [2025-02-22 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532670', 'tblTempUsageDetail_20' ) start [2025-02-22 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532670', 'tblTempUsageDetail_20' ) end [2025-02-22 13:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:18:23] Production.INFO: ==29946== Releasing lock... [2025-02-22 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:18:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:19:05 [end_date_ymd] => 2025-02-22 13:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:19:05' and `end` < '2025-02-22 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-02-22 13:19:17] Production.INFO: count ==2017 [2025-02-22 13:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:19:05 - End Time 2025-02-22 13:19:05 [2025-02-22 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532675', 'tblTempUsageDetail_20' ) start [2025-02-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532675', 'tblTempUsageDetail_20' ) end [2025-02-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532675', 'tblTempVendorCDR_20' ) start [2025-02-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532675', 'tblTempVendorCDR_20' ) end [2025-02-22 13:19:18] Production.INFO: ProcessCDR(1,14532675,1,1,2) [2025-02-22 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532675', 'tblTempUsageDetail_20' ) start [2025-02-22 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532675', 'tblTempUsageDetail_20' ) end [2025-02-22 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:19:23] Production.INFO: ==30025== Releasing lock... [2025-02-22 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:19:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:20:06 [end_date_ymd] => 2025-02-22 13:20:06 [RateCDR] => 1 ) [2025-02-22 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:20:06' and `end` < '2025-02-22 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:20:18] Production.INFO: count ==2024 [2025-02-22 13:20:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:20:06 - End Time 2025-02-22 13:20:06 [2025-02-22 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532681', 'tblTempUsageDetail_20' ) start [2025-02-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532681', 'tblTempUsageDetail_20' ) end [2025-02-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532681', 'tblTempVendorCDR_20' ) start [2025-02-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532681', 'tblTempVendorCDR_20' ) end [2025-02-22 13:20:19] Production.INFO: ProcessCDR(1,14532681,1,1,2) [2025-02-22 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532681', 'tblTempUsageDetail_20' ) start [2025-02-22 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532681', 'tblTempUsageDetail_20' ) end [2025-02-22 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:20:22] Production.INFO: ==30098== Releasing lock... [2025-02-22 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:20:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:21:05 [end_date_ymd] => 2025-02-22 13:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:21:05' and `end` < '2025-02-22 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-02-22 13:21:18] Production.INFO: count ==2088 [2025-02-22 13:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:21:05 - End Time 2025-02-22 13:21:05 [2025-02-22 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532686', 'tblTempUsageDetail_20' ) start [2025-02-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532686', 'tblTempUsageDetail_20' ) end [2025-02-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532686', 'tblTempVendorCDR_20' ) start [2025-02-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532686', 'tblTempVendorCDR_20' ) end [2025-02-22 13:21:18] Production.INFO: ProcessCDR(1,14532686,1,1,2) [2025-02-22 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532686', 'tblTempUsageDetail_20' ) start [2025-02-22 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532686', 'tblTempUsageDetail_20' ) end [2025-02-22 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:21:23] Production.INFO: ==30174== Releasing lock... [2025-02-22 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:21:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:22:04 [end_date_ymd] => 2025-02-22 13:22:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:22:04' and `end` < '2025-02-22 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-02-22 13:22:17] Production.INFO: count ==2089 [2025-02-22 13:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:22:04 - End Time 2025-02-22 13:22:04 [2025-02-22 13:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532691', 'tblTempUsageDetail_20' ) start [2025-02-22 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532691', 'tblTempUsageDetail_20' ) end [2025-02-22 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532691', 'tblTempVendorCDR_20' ) start [2025-02-22 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532691', 'tblTempVendorCDR_20' ) end [2025-02-22 13:22:17] Production.INFO: ProcessCDR(1,14532691,1,1,2) [2025-02-22 13:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532691', 'tblTempUsageDetail_20' ) start [2025-02-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532691', 'tblTempUsageDetail_20' ) end [2025-02-22 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:22:22] Production.INFO: ==30251== Releasing lock... [2025-02-22 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:22:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:23:05 [end_date_ymd] => 2025-02-22 13:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:23:05' and `end` < '2025-02-22 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-02-22 13:23:17] Production.INFO: count ==2092 [2025-02-22 13:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:23:05 - End Time 2025-02-22 13:23:05 [2025-02-22 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532696', 'tblTempUsageDetail_20' ) start [2025-02-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532696', 'tblTempUsageDetail_20' ) end [2025-02-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532696', 'tblTempVendorCDR_20' ) start [2025-02-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532696', 'tblTempVendorCDR_20' ) end [2025-02-22 13:23:18] Production.INFO: ProcessCDR(1,14532696,1,1,2) [2025-02-22 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532696', 'tblTempUsageDetail_20' ) start [2025-02-22 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532696', 'tblTempUsageDetail_20' ) end [2025-02-22 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:23:23] Production.INFO: ==30332== Releasing lock... [2025-02-22 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:23:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:24:05 [end_date_ymd] => 2025-02-22 13:24:05 [RateCDR] => 1 ) [2025-02-22 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:24:05' and `end` < '2025-02-22 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:24:17] Production.INFO: count ==2094 [2025-02-22 13:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:24:05 - End Time 2025-02-22 13:24:05 [2025-02-22 13:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532701', 'tblTempUsageDetail_20' ) start [2025-02-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532701', 'tblTempUsageDetail_20' ) end [2025-02-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532701', 'tblTempVendorCDR_20' ) start [2025-02-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532701', 'tblTempVendorCDR_20' ) end [2025-02-22 13:24:18] Production.INFO: ProcessCDR(1,14532701,1,1,2) [2025-02-22 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532701', 'tblTempUsageDetail_20' ) start [2025-02-22 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532701', 'tblTempUsageDetail_20' ) end [2025-02-22 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:24:23] Production.INFO: ==30405== Releasing lock... [2025-02-22 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:24:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:25:05 [end_date_ymd] => 2025-02-22 13:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:25:05' and `end` < '2025-02-22 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-02-22 13:25:17] Production.INFO: count ==2094 [2025-02-22 13:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:25:05 - End Time 2025-02-22 13:25:05 [2025-02-22 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532706', 'tblTempUsageDetail_20' ) start [2025-02-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532706', 'tblTempUsageDetail_20' ) end [2025-02-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532706', 'tblTempVendorCDR_20' ) start [2025-02-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532706', 'tblTempVendorCDR_20' ) end [2025-02-22 13:25:18] Production.INFO: ProcessCDR(1,14532706,1,1,2) [2025-02-22 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532706', 'tblTempUsageDetail_20' ) start [2025-02-22 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532706', 'tblTempUsageDetail_20' ) end [2025-02-22 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:25:21] Production.INFO: ==30479== Releasing lock... [2025-02-22 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:25:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:26:05 [end_date_ymd] => 2025-02-22 13:26:05 [RateCDR] => 1 ) [2025-02-22 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:26:05' and `end` < '2025-02-22 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:26:17] Production.INFO: count ==2103 [2025-02-22 13:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:26:05 - End Time 2025-02-22 13:26:05 [2025-02-22 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532711', 'tblTempUsageDetail_20' ) start [2025-02-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532711', 'tblTempUsageDetail_20' ) end [2025-02-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532711', 'tblTempVendorCDR_20' ) start [2025-02-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532711', 'tblTempVendorCDR_20' ) end [2025-02-22 13:26:18] Production.INFO: ProcessCDR(1,14532711,1,1,2) [2025-02-22 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532711', 'tblTempUsageDetail_20' ) start [2025-02-22 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532711', 'tblTempUsageDetail_20' ) end [2025-02-22 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:26:23] Production.INFO: ==30552== Releasing lock... [2025-02-22 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:26:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:27:05 [end_date_ymd] => 2025-02-22 13:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:27:05' and `end` < '2025-02-22 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-02-22 13:27:17] Production.INFO: count ==2103 [2025-02-22 13:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:27:05 - End Time 2025-02-22 13:27:05 [2025-02-22 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532716', 'tblTempUsageDetail_20' ) start [2025-02-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532716', 'tblTempUsageDetail_20' ) end [2025-02-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532716', 'tblTempVendorCDR_20' ) start [2025-02-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532716', 'tblTempVendorCDR_20' ) end [2025-02-22 13:27:18] Production.INFO: ProcessCDR(1,14532716,1,1,2) [2025-02-22 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532716', 'tblTempUsageDetail_20' ) start [2025-02-22 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532716', 'tblTempUsageDetail_20' ) end [2025-02-22 13:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:27:21] Production.INFO: ==30627== Releasing lock... [2025-02-22 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:27:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:28:06 [end_date_ymd] => 2025-02-22 13:28:06 [RateCDR] => 1 ) [2025-02-22 13: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-02-22 10:28:06' and `end` < '2025-02-22 13: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-02-22 13:28:18] Production.INFO: count ==2107 [2025-02-22 13:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:28:06 - End Time 2025-02-22 13:28:06 [2025-02-22 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532721', 'tblTempUsageDetail_20' ) start [2025-02-22 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532721', 'tblTempUsageDetail_20' ) end [2025-02-22 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532721', 'tblTempVendorCDR_20' ) start [2025-02-22 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532721', 'tblTempVendorCDR_20' ) end [2025-02-22 13:28:19] Production.INFO: ProcessCDR(1,14532721,1,1,2) [2025-02-22 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532721', 'tblTempUsageDetail_20' ) start [2025-02-22 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532721', 'tblTempUsageDetail_20' ) end [2025-02-22 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:28:23] Production.INFO: ==30699== Releasing lock... [2025-02-22 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:28:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:29:05 [end_date_ymd] => 2025-02-22 13:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:29:05' and `end` < '2025-02-22 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-02-22 13:29:17] Production.INFO: count ==2119 [2025-02-22 13:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:29:05 - End Time 2025-02-22 13:29:05 [2025-02-22 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532726', 'tblTempUsageDetail_20' ) start [2025-02-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532726', 'tblTempUsageDetail_20' ) end [2025-02-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532726', 'tblTempVendorCDR_20' ) start [2025-02-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532726', 'tblTempVendorCDR_20' ) end [2025-02-22 13:29:18] Production.INFO: ProcessCDR(1,14532726,1,1,2) [2025-02-22 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532726', 'tblTempUsageDetail_20' ) start [2025-02-22 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532726', 'tblTempUsageDetail_20' ) end [2025-02-22 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:29:21] Production.INFO: ==30771== Releasing lock... [2025-02-22 13:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:29:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:30:06 [end_date_ymd] => 2025-02-22 13:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:30:06' and `end` < '2025-02-22 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-02-22 13:30:19] Production.INFO: count ==2136 [2025-02-22 13:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:30:06 - End Time 2025-02-22 13:30:06 [2025-02-22 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532732', 'tblTempUsageDetail_20' ) start [2025-02-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532732', 'tblTempUsageDetail_20' ) end [2025-02-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532732', 'tblTempVendorCDR_20' ) start [2025-02-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532732', 'tblTempVendorCDR_20' ) end [2025-02-22 13:30:19] Production.INFO: ProcessCDR(1,14532732,1,1,2) [2025-02-22 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532732', 'tblTempUsageDetail_20' ) start [2025-02-22 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532732', 'tblTempUsageDetail_20' ) end [2025-02-22 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:30:23] Production.INFO: ==30890== Releasing lock... [2025-02-22 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:30:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:31:05 [end_date_ymd] => 2025-02-22 13:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:31:05' and `end` < '2025-02-22 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-02-22 13:31:17] Production.INFO: count ==2138 [2025-02-22 13:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:31:05 - End Time 2025-02-22 13:31:05 [2025-02-22 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532737', 'tblTempUsageDetail_20' ) start [2025-02-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532737', 'tblTempUsageDetail_20' ) end [2025-02-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532737', 'tblTempVendorCDR_20' ) start [2025-02-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532737', 'tblTempVendorCDR_20' ) end [2025-02-22 13:31:18] Production.INFO: ProcessCDR(1,14532737,1,1,2) [2025-02-22 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532737', 'tblTempUsageDetail_20' ) start [2025-02-22 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532737', 'tblTempUsageDetail_20' ) end [2025-02-22 13:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:31:21] Production.INFO: ==30964== Releasing lock... [2025-02-22 13:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:31:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:32:05 [end_date_ymd] => 2025-02-22 13:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:32:05' and `end` < '2025-02-22 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-02-22 13:32:17] Production.INFO: count ==2153 [2025-02-22 13:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:32:05 - End Time 2025-02-22 13:32:05 [2025-02-22 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532742', 'tblTempUsageDetail_20' ) start [2025-02-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532742', 'tblTempUsageDetail_20' ) end [2025-02-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532742', 'tblTempVendorCDR_20' ) start [2025-02-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532742', 'tblTempVendorCDR_20' ) end [2025-02-22 13:32:18] Production.INFO: ProcessCDR(1,14532742,1,1,2) [2025-02-22 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532742', 'tblTempUsageDetail_20' ) start [2025-02-22 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532742', 'tblTempUsageDetail_20' ) end [2025-02-22 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:32:22] Production.INFO: ==31041== Releasing lock... [2025-02-22 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:32:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:33:05 [end_date_ymd] => 2025-02-22 13:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:33:05' and `end` < '2025-02-22 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-02-22 13:33:17] Production.INFO: count ==2144 [2025-02-22 13:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:33:05 - End Time 2025-02-22 13:33:05 [2025-02-22 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532747', 'tblTempUsageDetail_20' ) start [2025-02-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532747', 'tblTempUsageDetail_20' ) end [2025-02-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532747', 'tblTempVendorCDR_20' ) start [2025-02-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532747', 'tblTempVendorCDR_20' ) end [2025-02-22 13:33:18] Production.INFO: ProcessCDR(1,14532747,1,1,2) [2025-02-22 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532747', 'tblTempUsageDetail_20' ) start [2025-02-22 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532747', 'tblTempUsageDetail_20' ) end [2025-02-22 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:33:22] Production.INFO: ==31114== Releasing lock... [2025-02-22 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:33:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:34:05 [end_date_ymd] => 2025-02-22 13:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:34:05' and `end` < '2025-02-22 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-02-22 13:34:18] Production.INFO: count ==2158 [2025-02-22 13:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:34:05 - End Time 2025-02-22 13:34:05 [2025-02-22 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532752', 'tblTempUsageDetail_20' ) start [2025-02-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532752', 'tblTempUsageDetail_20' ) end [2025-02-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532752', 'tblTempVendorCDR_20' ) start [2025-02-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532752', 'tblTempVendorCDR_20' ) end [2025-02-22 13:34:18] Production.INFO: ProcessCDR(1,14532752,1,1,2) [2025-02-22 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532752', 'tblTempUsageDetail_20' ) start [2025-02-22 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532752', 'tblTempUsageDetail_20' ) end [2025-02-22 13:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:34:21] Production.INFO: ==31190== Releasing lock... [2025-02-22 13:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:34:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:35:05 [end_date_ymd] => 2025-02-22 13:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:35:05' and `end` < '2025-02-22 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-02-22 13:35:17] Production.INFO: count ==2162 [2025-02-22 13:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:35:05 - End Time 2025-02-22 13:35:05 [2025-02-22 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532757', 'tblTempUsageDetail_20' ) start [2025-02-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532757', 'tblTempUsageDetail_20' ) end [2025-02-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532757', 'tblTempVendorCDR_20' ) start [2025-02-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532757', 'tblTempVendorCDR_20' ) end [2025-02-22 13:35:18] Production.INFO: ProcessCDR(1,14532757,1,1,2) [2025-02-22 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532757', 'tblTempUsageDetail_20' ) start [2025-02-22 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532757', 'tblTempUsageDetail_20' ) end [2025-02-22 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:35:23] Production.INFO: ==31265== Releasing lock... [2025-02-22 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:35:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:36:06 [end_date_ymd] => 2025-02-22 13:36:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:36:06' and `end` < '2025-02-22 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-02-22 13:36:18] Production.INFO: count ==2160 [2025-02-22 13:36:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:36:06 - End Time 2025-02-22 13:36:06 [2025-02-22 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532762', 'tblTempUsageDetail_20' ) start [2025-02-22 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532762', 'tblTempUsageDetail_20' ) end [2025-02-22 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532762', 'tblTempVendorCDR_20' ) start [2025-02-22 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532762', 'tblTempVendorCDR_20' ) end [2025-02-22 13:36:19] Production.INFO: ProcessCDR(1,14532762,1,1,2) [2025-02-22 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532762', 'tblTempUsageDetail_20' ) start [2025-02-22 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532762', 'tblTempUsageDetail_20' ) end [2025-02-22 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:36:24] Production.INFO: ==31341== Releasing lock... [2025-02-22 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:36:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:37:05 [end_date_ymd] => 2025-02-22 13:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:37:05' and `end` < '2025-02-22 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:37:17] Production.INFO: count ==2165 [2025-02-22 13:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:37:05 - End Time 2025-02-22 13:37:05 [2025-02-22 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532767', 'tblTempUsageDetail_20' ) start [2025-02-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532767', 'tblTempUsageDetail_20' ) end [2025-02-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532767', 'tblTempVendorCDR_20' ) start [2025-02-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532767', 'tblTempVendorCDR_20' ) end [2025-02-22 13:37:18] Production.INFO: ProcessCDR(1,14532767,1,1,2) [2025-02-22 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532767', 'tblTempUsageDetail_20' ) start [2025-02-22 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532767', 'tblTempUsageDetail_20' ) end [2025-02-22 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:37:23] Production.INFO: ==31420== Releasing lock... [2025-02-22 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:37:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:38:05 [end_date_ymd] => 2025-02-22 13:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:38:05' and `end` < '2025-02-22 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-02-22 13:38:17] Production.INFO: count ==2152 [2025-02-22 13:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:38:05 - End Time 2025-02-22 13:38:05 [2025-02-22 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532772', 'tblTempUsageDetail_20' ) start [2025-02-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532772', 'tblTempUsageDetail_20' ) end [2025-02-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532772', 'tblTempVendorCDR_20' ) start [2025-02-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532772', 'tblTempVendorCDR_20' ) end [2025-02-22 13:38:18] Production.INFO: ProcessCDR(1,14532772,1,1,2) [2025-02-22 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532772', 'tblTempUsageDetail_20' ) start [2025-02-22 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532772', 'tblTempUsageDetail_20' ) end [2025-02-22 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:38:22] Production.INFO: ==31493== Releasing lock... [2025-02-22 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:38:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:39:05 [end_date_ymd] => 2025-02-22 13:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:39:05' and `end` < '2025-02-22 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-02-22 13:39:17] Production.INFO: count ==2143 [2025-02-22 13:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:39:05 - End Time 2025-02-22 13:39:05 [2025-02-22 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532777', 'tblTempUsageDetail_20' ) start [2025-02-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532777', 'tblTempUsageDetail_20' ) end [2025-02-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532777', 'tblTempVendorCDR_20' ) start [2025-02-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532777', 'tblTempVendorCDR_20' ) end [2025-02-22 13:39:18] Production.INFO: ProcessCDR(1,14532777,1,1,2) [2025-02-22 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532777', 'tblTempUsageDetail_20' ) start [2025-02-22 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532777', 'tblTempUsageDetail_20' ) end [2025-02-22 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:39:21] Production.INFO: ==31567== Releasing lock... [2025-02-22 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:39:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:40:07 [end_date_ymd] => 2025-02-22 13:40:07 [RateCDR] => 1 ) [2025-02-22 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:40:07' and `end` < '2025-02-22 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:40:19] Production.INFO: count ==2134 [2025-02-22 13:40:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:40:07 - End Time 2025-02-22 13:40:07 [2025-02-22 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532783', 'tblTempUsageDetail_20' ) start [2025-02-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532783', 'tblTempUsageDetail_20' ) end [2025-02-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532783', 'tblTempVendorCDR_20' ) start [2025-02-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532783', 'tblTempVendorCDR_20' ) end [2025-02-22 13:40:19] Production.INFO: ProcessCDR(1,14532783,1,1,2) [2025-02-22 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532783', 'tblTempUsageDetail_20' ) start [2025-02-22 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532783', 'tblTempUsageDetail_20' ) end [2025-02-22 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:40:24] Production.INFO: ==31643== Releasing lock... [2025-02-22 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:40:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:41:05 [end_date_ymd] => 2025-02-22 13:41:05 [RateCDR] => 1 ) [2025-02-22 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:41:05' and `end` < '2025-02-22 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:41:17] Production.INFO: count ==2091 [2025-02-22 13:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:41:05 - End Time 2025-02-22 13:41:05 [2025-02-22 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532788', 'tblTempUsageDetail_20' ) start [2025-02-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532788', 'tblTempUsageDetail_20' ) end [2025-02-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532788', 'tblTempVendorCDR_20' ) start [2025-02-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532788', 'tblTempVendorCDR_20' ) end [2025-02-22 13:41:17] Production.INFO: ProcessCDR(1,14532788,1,1,2) [2025-02-22 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532788', 'tblTempUsageDetail_20' ) start [2025-02-22 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532788', 'tblTempUsageDetail_20' ) end [2025-02-22 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:41:21] Production.INFO: ==31731== Releasing lock... [2025-02-22 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:41:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:42:05 [end_date_ymd] => 2025-02-22 13:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:42:05' and `end` < '2025-02-22 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-02-22 13:42:17] Production.INFO: count ==2090 [2025-02-22 13:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:42:05 - End Time 2025-02-22 13:42:05 [2025-02-22 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532793', 'tblTempUsageDetail_20' ) start [2025-02-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532793', 'tblTempUsageDetail_20' ) end [2025-02-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532793', 'tblTempVendorCDR_20' ) start [2025-02-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532793', 'tblTempVendorCDR_20' ) end [2025-02-22 13:42:18] Production.INFO: ProcessCDR(1,14532793,1,1,2) [2025-02-22 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532793', 'tblTempUsageDetail_20' ) start [2025-02-22 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532793', 'tblTempUsageDetail_20' ) end [2025-02-22 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:42:23] Production.INFO: ==31818== Releasing lock... [2025-02-22 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:42:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:43:05 [end_date_ymd] => 2025-02-22 13:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:43:05' and `end` < '2025-02-22 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:43:17] Production.INFO: count ==2087 [2025-02-22 13:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:43:05 - End Time 2025-02-22 13:43:05 [2025-02-22 13:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532798', 'tblTempUsageDetail_20' ) start [2025-02-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532798', 'tblTempUsageDetail_20' ) end [2025-02-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532798', 'tblTempVendorCDR_20' ) start [2025-02-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532798', 'tblTempVendorCDR_20' ) end [2025-02-22 13:43:18] Production.INFO: ProcessCDR(1,14532798,1,1,2) [2025-02-22 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532798', 'tblTempUsageDetail_20' ) start [2025-02-22 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532798', 'tblTempUsageDetail_20' ) end [2025-02-22 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:43:21] Production.INFO: ==31895== Releasing lock... [2025-02-22 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:43:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:44:05 [end_date_ymd] => 2025-02-22 13:44:05 [RateCDR] => 1 ) [2025-02-22 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:44:05' and `end` < '2025-02-22 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:44:17] Production.INFO: count ==2073 [2025-02-22 13:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:44:05 - End Time 2025-02-22 13:44:05 [2025-02-22 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532803', 'tblTempUsageDetail_20' ) start [2025-02-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532803', 'tblTempUsageDetail_20' ) end [2025-02-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532803', 'tblTempVendorCDR_20' ) start [2025-02-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532803', 'tblTempVendorCDR_20' ) end [2025-02-22 13:44:18] Production.INFO: ProcessCDR(1,14532803,1,1,2) [2025-02-22 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532803', 'tblTempUsageDetail_20' ) start [2025-02-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532803', 'tblTempUsageDetail_20' ) end [2025-02-22 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:44:21] Production.INFO: ==31978== Releasing lock... [2025-02-22 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:44:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:45:05 [end_date_ymd] => 2025-02-22 13:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:45:05' and `end` < '2025-02-22 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-02-22 13:45:17] Production.INFO: count ==2070 [2025-02-22 13:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:45:05 - End Time 2025-02-22 13:45:05 [2025-02-22 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532808', 'tblTempUsageDetail_20' ) start [2025-02-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532808', 'tblTempUsageDetail_20' ) end [2025-02-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532808', 'tblTempVendorCDR_20' ) start [2025-02-22 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532808', 'tblTempVendorCDR_20' ) end [2025-02-22 13:45:18] Production.INFO: ProcessCDR(1,14532808,1,1,2) [2025-02-22 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532808', 'tblTempUsageDetail_20' ) start [2025-02-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532808', 'tblTempUsageDetail_20' ) end [2025-02-22 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:45:22] Production.INFO: ==32100== Releasing lock... [2025-02-22 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:45:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:46:05 [end_date_ymd] => 2025-02-22 13:46:05 [RateCDR] => 1 ) [2025-02-22 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:46:05' and `end` < '2025-02-22 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:46:18] Production.INFO: count ==2062 [2025-02-22 13:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:46:05 - End Time 2025-02-22 13:46:05 [2025-02-22 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532813', 'tblTempUsageDetail_20' ) start [2025-02-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532813', 'tblTempUsageDetail_20' ) end [2025-02-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532813', 'tblTempVendorCDR_20' ) start [2025-02-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532813', 'tblTempVendorCDR_20' ) end [2025-02-22 13:46:18] Production.INFO: ProcessCDR(1,14532813,1,1,2) [2025-02-22 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532813', 'tblTempUsageDetail_20' ) start [2025-02-22 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532813', 'tblTempUsageDetail_20' ) end [2025-02-22 13:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:46:22] Production.INFO: ==32183== Releasing lock... [2025-02-22 13:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:46:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:47:05 [end_date_ymd] => 2025-02-22 13:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:47:05' and `end` < '2025-02-22 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-02-22 13:47:17] Production.INFO: count ==2052 [2025-02-22 13:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 10:47:05 - End Time 2025-02-22 13:47:05 [2025-02-22 13:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532818', 'tblTempUsageDetail_20' ) start [2025-02-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532818', 'tblTempUsageDetail_20' ) end [2025-02-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532818', 'tblTempVendorCDR_20' ) start [2025-02-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532818', 'tblTempVendorCDR_20' ) end [2025-02-22 13:47:18] Production.INFO: ProcessCDR(1,14532818,1,1,2) [2025-02-22 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532818', 'tblTempUsageDetail_20' ) start [2025-02-22 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532818', 'tblTempUsageDetail_20' ) end [2025-02-22 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:47:22] Production.INFO: ==32263== Releasing lock... [2025-02-22 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:47:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:48:05 [end_date_ymd] => 2025-02-22 13:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:48:05' and `end` < '2025-02-22 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-02-22 13:48:17] Production.INFO: count ==2045 [2025-02-22 13:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:48:05 - End Time 2025-02-22 13:48:05 [2025-02-22 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532823', 'tblTempUsageDetail_20' ) start [2025-02-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532823', 'tblTempUsageDetail_20' ) end [2025-02-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532823', 'tblTempVendorCDR_20' ) start [2025-02-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532823', 'tblTempVendorCDR_20' ) end [2025-02-22 13:48:18] Production.INFO: ProcessCDR(1,14532823,1,1,2) [2025-02-22 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532823', 'tblTempUsageDetail_20' ) start [2025-02-22 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532823', 'tblTempUsageDetail_20' ) end [2025-02-22 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:48:23] Production.INFO: ==32349== Releasing lock... [2025-02-22 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:48:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:49:05 [end_date_ymd] => 2025-02-22 13:49:05 [RateCDR] => 1 ) [2025-02-22 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:49:05' and `end` < '2025-02-22 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:49:17] Production.INFO: count ==2035 [2025-02-22 13:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:49:05 - End Time 2025-02-22 13:49:05 [2025-02-22 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532827', 'tblTempUsageDetail_20' ) start [2025-02-22 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532827', 'tblTempUsageDetail_20' ) end [2025-02-22 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532827', 'tblTempVendorCDR_20' ) start [2025-02-22 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532827', 'tblTempVendorCDR_20' ) end [2025-02-22 13:49:18] Production.INFO: ProcessCDR(1,14532827,1,1,2) [2025-02-22 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532827', 'tblTempUsageDetail_20' ) start [2025-02-22 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532827', 'tblTempUsageDetail_20' ) end [2025-02-22 13:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:49:21] Production.INFO: ==32429== Releasing lock... [2025-02-22 13:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:49:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:50:05 [end_date_ymd] => 2025-02-22 13:50:05 [RateCDR] => 1 ) [2025-02-22 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:50:05' and `end` < '2025-02-22 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:50:17] Production.INFO: count ==2028 [2025-02-22 13:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:50:05 - End Time 2025-02-22 13:50:05 [2025-02-22 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532834', 'tblTempUsageDetail_20' ) start [2025-02-22 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532834', 'tblTempUsageDetail_20' ) end [2025-02-22 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532834', 'tblTempVendorCDR_20' ) start [2025-02-22 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532834', 'tblTempVendorCDR_20' ) end [2025-02-22 13:50:18] Production.INFO: ProcessCDR(1,14532834,1,1,2) [2025-02-22 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532834', 'tblTempUsageDetail_20' ) start [2025-02-22 13:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532834', 'tblTempUsageDetail_20' ) end [2025-02-22 13:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:50:21] Production.INFO: ==32513== Releasing lock... [2025-02-22 13:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:50:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:51:05 [end_date_ymd] => 2025-02-22 13:51:05 [RateCDR] => 1 ) [2025-02-22 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:51:05' and `end` < '2025-02-22 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:51:17] Production.INFO: count ==2054 [2025-02-22 13:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:51:05 - End Time 2025-02-22 13:51:05 [2025-02-22 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532839', 'tblTempUsageDetail_20' ) start [2025-02-22 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532839', 'tblTempUsageDetail_20' ) end [2025-02-22 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532839', 'tblTempVendorCDR_20' ) start [2025-02-22 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532839', 'tblTempVendorCDR_20' ) end [2025-02-22 13:51:18] Production.INFO: ProcessCDR(1,14532839,1,1,2) [2025-02-22 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532839', 'tblTempUsageDetail_20' ) start [2025-02-22 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532839', 'tblTempUsageDetail_20' ) end [2025-02-22 13:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:51:21] Production.INFO: ==32592== Releasing lock... [2025-02-22 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:51:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:52:05 [end_date_ymd] => 2025-02-22 13:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:52:05' and `end` < '2025-02-22 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-02-22 13:52:17] Production.INFO: count ==2072 [2025-02-22 13:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:52:05 - End Time 2025-02-22 13:52:05 [2025-02-22 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532844', 'tblTempUsageDetail_20' ) start [2025-02-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532844', 'tblTempUsageDetail_20' ) end [2025-02-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532844', 'tblTempVendorCDR_20' ) start [2025-02-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532844', 'tblTempVendorCDR_20' ) end [2025-02-22 13:52:18] Production.INFO: ProcessCDR(1,14532844,1,1,2) [2025-02-22 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532844', 'tblTempUsageDetail_20' ) start [2025-02-22 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532844', 'tblTempUsageDetail_20' ) end [2025-02-22 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:52:23] Production.INFO: ==32672== Releasing lock... [2025-02-22 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:52:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:53:05 [end_date_ymd] => 2025-02-22 13:53:05 [RateCDR] => 1 ) [2025-02-22 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:53:05' and `end` < '2025-02-22 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:53:17] Production.INFO: count ==2078 [2025-02-22 13:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:53:05 - End Time 2025-02-22 13:53:05 [2025-02-22 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532849', 'tblTempUsageDetail_20' ) start [2025-02-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532849', 'tblTempUsageDetail_20' ) end [2025-02-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532849', 'tblTempVendorCDR_20' ) start [2025-02-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532849', 'tblTempVendorCDR_20' ) end [2025-02-22 13:53:18] Production.INFO: ProcessCDR(1,14532849,1,1,2) [2025-02-22 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532849', 'tblTempUsageDetail_20' ) start [2025-02-22 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532849', 'tblTempUsageDetail_20' ) end [2025-02-22 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:53:23] Production.INFO: ==32752== Releasing lock... [2025-02-22 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:53:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:54:05 [end_date_ymd] => 2025-02-22 13:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:54:05' and `end` < '2025-02-22 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-02-22 13:54:17] Production.INFO: count ==2080 [2025-02-22 13:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:54:05 - End Time 2025-02-22 13:54:05 [2025-02-22 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532854', 'tblTempUsageDetail_20' ) start [2025-02-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532854', 'tblTempUsageDetail_20' ) end [2025-02-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532854', 'tblTempVendorCDR_20' ) start [2025-02-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532854', 'tblTempVendorCDR_20' ) end [2025-02-22 13:54:18] Production.INFO: ProcessCDR(1,14532854,1,1,2) [2025-02-22 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532854', 'tblTempUsageDetail_20' ) start [2025-02-22 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532854', 'tblTempUsageDetail_20' ) end [2025-02-22 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:54:22] Production.INFO: ==384== Releasing lock... [2025-02-22 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:54:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:55:05 [end_date_ymd] => 2025-02-22 13:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:55:05' and `end` < '2025-02-22 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-02-22 13:55:17] Production.INFO: count ==2075 [2025-02-22 13:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:55:05 - End Time 2025-02-22 13:55:05 [2025-02-22 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532859', 'tblTempUsageDetail_20' ) start [2025-02-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532859', 'tblTempUsageDetail_20' ) end [2025-02-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532859', 'tblTempVendorCDR_20' ) start [2025-02-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532859', 'tblTempVendorCDR_20' ) end [2025-02-22 13:55:18] Production.INFO: ProcessCDR(1,14532859,1,1,2) [2025-02-22 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532859', 'tblTempUsageDetail_20' ) start [2025-02-22 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532859', 'tblTempUsageDetail_20' ) end [2025-02-22 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:55:23] Production.INFO: ==460== Releasing lock... [2025-02-22 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:56:06 [end_date_ymd] => 2025-02-22 13:56:06 [RateCDR] => 1 ) [2025-02-22 13: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-02-22 10:56:06' and `end` < '2025-02-22 13: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-02-22 13:56:18] Production.INFO: count ==2066 [2025-02-22 13:56:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:56:06 - End Time 2025-02-22 13:56:06 [2025-02-22 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532864', 'tblTempUsageDetail_20' ) start [2025-02-22 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532864', 'tblTempUsageDetail_20' ) end [2025-02-22 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532864', 'tblTempVendorCDR_20' ) start [2025-02-22 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532864', 'tblTempVendorCDR_20' ) end [2025-02-22 13:56:19] Production.INFO: ProcessCDR(1,14532864,1,1,2) [2025-02-22 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532864', 'tblTempUsageDetail_20' ) start [2025-02-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532864', 'tblTempUsageDetail_20' ) end [2025-02-22 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:56:23] Production.INFO: ==542== Releasing lock... [2025-02-22 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:56:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:57:05 [end_date_ymd] => 2025-02-22 13:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:57:05' and `end` < '2025-02-22 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-02-22 13:57:17] Production.INFO: count ==2065 [2025-02-22 13:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:57:05 - End Time 2025-02-22 13:57:05 [2025-02-22 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532869', 'tblTempUsageDetail_20' ) start [2025-02-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532869', 'tblTempUsageDetail_20' ) end [2025-02-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532869', 'tblTempVendorCDR_20' ) start [2025-02-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532869', 'tblTempVendorCDR_20' ) end [2025-02-22 13:57:18] Production.INFO: ProcessCDR(1,14532869,1,1,2) [2025-02-22 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532869', 'tblTempUsageDetail_20' ) start [2025-02-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532869', 'tblTempUsageDetail_20' ) end [2025-02-22 13:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:57:21] Production.INFO: ==630== Releasing lock... [2025-02-22 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:57:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:58:06 [end_date_ymd] => 2025-02-22 13:58:06 [RateCDR] => 1 ) [2025-02-22 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 10:58:06' and `end` < '2025-02-22 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 13:58:18] Production.INFO: count ==2065 [2025-02-22 13:58:19] Production.ERROR: pbx CDR StartTime 2025-02-22 10:58:06 - End Time 2025-02-22 13:58:06 [2025-02-22 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532874', 'tblTempUsageDetail_20' ) start [2025-02-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532874', 'tblTempUsageDetail_20' ) end [2025-02-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532874', 'tblTempVendorCDR_20' ) start [2025-02-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532874', 'tblTempVendorCDR_20' ) end [2025-02-22 13:58:19] Production.INFO: ProcessCDR(1,14532874,1,1,2) [2025-02-22 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532874', 'tblTempUsageDetail_20' ) start [2025-02-22 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532874', 'tblTempUsageDetail_20' ) end [2025-02-22 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:58:23] Production.INFO: ==738== Releasing lock... [2025-02-22 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 10:59:05 [end_date_ymd] => 2025-02-22 13:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 10:59:05' and `end` < '2025-02-22 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-02-22 13:59:17] Production.INFO: count ==2071 [2025-02-22 13:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 10:59:05 - End Time 2025-02-22 13:59:05 [2025-02-22 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532879', 'tblTempUsageDetail_20' ) start [2025-02-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532879', 'tblTempUsageDetail_20' ) end [2025-02-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532879', 'tblTempVendorCDR_20' ) start [2025-02-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532879', 'tblTempVendorCDR_20' ) end [2025-02-22 13:59:18] Production.INFO: ProcessCDR(1,14532879,1,1,2) [2025-02-22 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532879', 'tblTempUsageDetail_20' ) start [2025-02-22 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532879', 'tblTempUsageDetail_20' ) end [2025-02-22 13:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 13:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 13:59:21] Production.INFO: ==824== Releasing lock... [2025-02-22 13:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 13:59:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:00:07 [end_date_ymd] => 2025-02-22 14:00:07 [RateCDR] => 1 ) [2025-02-22 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:00:07' and `end` < '2025-02-22 14:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:00:19] Production.INFO: count ==2067 [2025-02-22 14:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:00:07 - End Time 2025-02-22 14:00:07 [2025-02-22 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532885', 'tblTempUsageDetail_20' ) start [2025-02-22 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532885', 'tblTempUsageDetail_20' ) end [2025-02-22 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532885', 'tblTempVendorCDR_20' ) start [2025-02-22 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532885', 'tblTempVendorCDR_20' ) end [2025-02-22 14:00:19] Production.INFO: ProcessCDR(1,14532885,1,1,2) [2025-02-22 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532885', 'tblTempUsageDetail_20' ) start [2025-02-22 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532885', 'tblTempUsageDetail_20' ) end [2025-02-22 14:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:00:25] Production.INFO: ==902== Releasing lock... [2025-02-22 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:00:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:01:05 [end_date_ymd] => 2025-02-22 14:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:01:05' and `end` < '2025-02-22 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-02-22 14:01:17] Production.INFO: count ==2060 [2025-02-22 14:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:01:05 - End Time 2025-02-22 14:01:05 [2025-02-22 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532890', 'tblTempUsageDetail_20' ) start [2025-02-22 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532890', 'tblTempUsageDetail_20' ) end [2025-02-22 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532890', 'tblTempVendorCDR_20' ) start [2025-02-22 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532890', 'tblTempVendorCDR_20' ) end [2025-02-22 14:01:18] Production.INFO: ProcessCDR(1,14532890,1,1,2) [2025-02-22 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532890', 'tblTempUsageDetail_20' ) start [2025-02-22 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532890', 'tblTempUsageDetail_20' ) end [2025-02-22 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:01:23] Production.INFO: ==1045== Releasing lock... [2025-02-22 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:01:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:02:06 [end_date_ymd] => 2025-02-22 14:02:06 [RateCDR] => 1 ) [2025-02-22 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:02:06' and `end` < '2025-02-22 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:02:18] Production.INFO: count ==2054 [2025-02-22 14:02:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:02:06 - End Time 2025-02-22 14:02:06 [2025-02-22 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532895', 'tblTempUsageDetail_20' ) start [2025-02-22 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532895', 'tblTempUsageDetail_20' ) end [2025-02-22 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532895', 'tblTempVendorCDR_20' ) start [2025-02-22 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532895', 'tblTempVendorCDR_20' ) end [2025-02-22 14:02:19] Production.INFO: ProcessCDR(1,14532895,1,1,2) [2025-02-22 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532895', 'tblTempUsageDetail_20' ) start [2025-02-22 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532895', 'tblTempUsageDetail_20' ) end [2025-02-22 14:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:02:22] Production.INFO: ==1122== Releasing lock... [2025-02-22 14:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:03:05 [end_date_ymd] => 2025-02-22 14:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:03:05' and `end` < '2025-02-22 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-02-22 14:03:17] Production.INFO: count ==2052 [2025-02-22 14:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:03:05 - End Time 2025-02-22 14:03:05 [2025-02-22 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532900', 'tblTempUsageDetail_20' ) start [2025-02-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532900', 'tblTempUsageDetail_20' ) end [2025-02-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532900', 'tblTempVendorCDR_20' ) start [2025-02-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532900', 'tblTempVendorCDR_20' ) end [2025-02-22 14:03:18] Production.INFO: ProcessCDR(1,14532900,1,1,2) [2025-02-22 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532900', 'tblTempUsageDetail_20' ) start [2025-02-22 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532900', 'tblTempUsageDetail_20' ) end [2025-02-22 14:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:03:21] Production.INFO: ==1221== Releasing lock... [2025-02-22 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:03:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:04:06 [end_date_ymd] => 2025-02-22 14:04:06 [RateCDR] => 1 ) [2025-02-22 14: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-02-22 11:04:06' and `end` < '2025-02-22 14: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-02-22 14:04:18] Production.INFO: count ==2048 [2025-02-22 14:04:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:04:06 - End Time 2025-02-22 14:04:06 [2025-02-22 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532905', 'tblTempUsageDetail_20' ) start [2025-02-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532905', 'tblTempUsageDetail_20' ) end [2025-02-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532905', 'tblTempVendorCDR_20' ) start [2025-02-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532905', 'tblTempVendorCDR_20' ) end [2025-02-22 14:04:19] Production.INFO: ProcessCDR(1,14532905,1,1,2) [2025-02-22 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532905', 'tblTempUsageDetail_20' ) start [2025-02-22 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532905', 'tblTempUsageDetail_20' ) end [2025-02-22 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:04:22] Production.INFO: ==1308== Releasing lock... [2025-02-22 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:04:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:05:05 [end_date_ymd] => 2025-02-22 14:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:05:05' and `end` < '2025-02-22 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-02-22 14:05:17] Production.INFO: count ==2046 [2025-02-22 14:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:05:05 - End Time 2025-02-22 14:05:05 [2025-02-22 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532910', 'tblTempUsageDetail_20' ) start [2025-02-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532910', 'tblTempUsageDetail_20' ) end [2025-02-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532910', 'tblTempVendorCDR_20' ) start [2025-02-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532910', 'tblTempVendorCDR_20' ) end [2025-02-22 14:05:18] Production.INFO: ProcessCDR(1,14532910,1,1,2) [2025-02-22 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532910', 'tblTempUsageDetail_20' ) start [2025-02-22 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532910', 'tblTempUsageDetail_20' ) end [2025-02-22 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:05:22] Production.INFO: ==1391== Releasing lock... [2025-02-22 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:06:05 [end_date_ymd] => 2025-02-22 14:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:06:05' and `end` < '2025-02-22 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-02-22 14:06:17] Production.INFO: count ==2045 [2025-02-22 14:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:06:05 - End Time 2025-02-22 14:06:05 [2025-02-22 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532915', 'tblTempUsageDetail_20' ) start [2025-02-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532915', 'tblTempUsageDetail_20' ) end [2025-02-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532915', 'tblTempVendorCDR_20' ) start [2025-02-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532915', 'tblTempVendorCDR_20' ) end [2025-02-22 14:06:18] Production.INFO: ProcessCDR(1,14532915,1,1,2) [2025-02-22 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532915', 'tblTempUsageDetail_20' ) start [2025-02-22 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532915', 'tblTempUsageDetail_20' ) end [2025-02-22 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:06:23] Production.INFO: ==1468== Releasing lock... [2025-02-22 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:06:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:07:05 [end_date_ymd] => 2025-02-22 14:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:07:05' and `end` < '2025-02-22 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-02-22 14:07:17] Production.INFO: count ==2041 [2025-02-22 14:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:07:05 - End Time 2025-02-22 14:07:05 [2025-02-22 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532920', 'tblTempUsageDetail_20' ) start [2025-02-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532920', 'tblTempUsageDetail_20' ) end [2025-02-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532920', 'tblTempVendorCDR_20' ) start [2025-02-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532920', 'tblTempVendorCDR_20' ) end [2025-02-22 14:07:18] Production.INFO: ProcessCDR(1,14532920,1,1,2) [2025-02-22 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532920', 'tblTempUsageDetail_20' ) start [2025-02-22 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532920', 'tblTempUsageDetail_20' ) end [2025-02-22 14:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:07:21] Production.INFO: ==1588== Releasing lock... [2025-02-22 14:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:07:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:08:05 [end_date_ymd] => 2025-02-22 14:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:08:05' and `end` < '2025-02-22 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-02-22 14:08:18] Production.INFO: count ==2036 [2025-02-22 14:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:08:05 - End Time 2025-02-22 14:08:05 [2025-02-22 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532925', 'tblTempUsageDetail_20' ) start [2025-02-22 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532925', 'tblTempUsageDetail_20' ) end [2025-02-22 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532925', 'tblTempVendorCDR_20' ) start [2025-02-22 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532925', 'tblTempVendorCDR_20' ) end [2025-02-22 14:08:18] Production.INFO: ProcessCDR(1,14532925,1,1,2) [2025-02-22 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532925', 'tblTempUsageDetail_20' ) start [2025-02-22 14:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532925', 'tblTempUsageDetail_20' ) end [2025-02-22 14:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:08:23] Production.INFO: ==1667== Releasing lock... [2025-02-22 14:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:08:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:09:05 [end_date_ymd] => 2025-02-22 14:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:09:05' and `end` < '2025-02-22 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-02-22 14:09:17] Production.INFO: count ==2039 [2025-02-22 14:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:09:05 - End Time 2025-02-22 14:09:05 [2025-02-22 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532930', 'tblTempUsageDetail_20' ) start [2025-02-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532930', 'tblTempUsageDetail_20' ) end [2025-02-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532930', 'tblTempVendorCDR_20' ) start [2025-02-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532930', 'tblTempVendorCDR_20' ) end [2025-02-22 14:09:18] Production.INFO: ProcessCDR(1,14532930,1,1,2) [2025-02-22 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532930', 'tblTempUsageDetail_20' ) start [2025-02-22 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532930', 'tblTempUsageDetail_20' ) end [2025-02-22 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:09:23] Production.INFO: ==1743== Releasing lock... [2025-02-22 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:09:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:10:07 [end_date_ymd] => 2025-02-22 14:10:07 [RateCDR] => 1 ) [2025-02-22 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:10:07' and `end` < '2025-02-22 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:10:19] Production.INFO: count ==2050 [2025-02-22 14:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:10:07 - End Time 2025-02-22 14:10:07 [2025-02-22 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532936', 'tblTempUsageDetail_20' ) start [2025-02-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532936', 'tblTempUsageDetail_20' ) end [2025-02-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532936', 'tblTempVendorCDR_20' ) start [2025-02-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532936', 'tblTempVendorCDR_20' ) end [2025-02-22 14:10:20] Production.INFO: ProcessCDR(1,14532936,1,1,2) [2025-02-22 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532936', 'tblTempUsageDetail_20' ) start [2025-02-22 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532936', 'tblTempUsageDetail_20' ) end [2025-02-22 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:10:23] Production.INFO: ==1835== Releasing lock... [2025-02-22 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:10:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:11:05 [end_date_ymd] => 2025-02-22 14:11:05 [RateCDR] => 1 ) [2025-02-22 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:11:05' and `end` < '2025-02-22 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:11:17] Production.INFO: count ==2002 [2025-02-22 14:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 11:11:05 - End Time 2025-02-22 14:11:05 [2025-02-22 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532941', 'tblTempUsageDetail_20' ) start [2025-02-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532941', 'tblTempUsageDetail_20' ) end [2025-02-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532941', 'tblTempVendorCDR_20' ) start [2025-02-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532941', 'tblTempVendorCDR_20' ) end [2025-02-22 14:11:18] Production.INFO: ProcessCDR(1,14532941,1,1,2) [2025-02-22 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532941', 'tblTempUsageDetail_20' ) start [2025-02-22 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532941', 'tblTempUsageDetail_20' ) end [2025-02-22 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:11:21] Production.INFO: ==1913== Releasing lock... [2025-02-22 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:11:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:12:05 [end_date_ymd] => 2025-02-22 14:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:12:05' and `end` < '2025-02-22 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-02-22 14:12:18] Production.INFO: count ==1992 [2025-02-22 14:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:12:05 - End Time 2025-02-22 14:12:05 [2025-02-22 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532946', 'tblTempUsageDetail_20' ) start [2025-02-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532946', 'tblTempUsageDetail_20' ) end [2025-02-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532946', 'tblTempVendorCDR_20' ) start [2025-02-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532946', 'tblTempVendorCDR_20' ) end [2025-02-22 14:12:18] Production.INFO: ProcessCDR(1,14532946,1,1,2) [2025-02-22 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532946', 'tblTempUsageDetail_20' ) start [2025-02-22 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532946', 'tblTempUsageDetail_20' ) end [2025-02-22 14:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:12:22] Production.INFO: ==1996== Releasing lock... [2025-02-22 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:12:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:13:05 [end_date_ymd] => 2025-02-22 14:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:13:05' and `end` < '2025-02-22 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-02-22 14:13:17] Production.INFO: count ==1992 [2025-02-22 14:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:13:05 - End Time 2025-02-22 14:13:05 [2025-02-22 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532951', 'tblTempUsageDetail_20' ) start [2025-02-22 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532951', 'tblTempUsageDetail_20' ) end [2025-02-22 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532951', 'tblTempVendorCDR_20' ) start [2025-02-22 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532951', 'tblTempVendorCDR_20' ) end [2025-02-22 14:13:18] Production.INFO: ProcessCDR(1,14532951,1,1,2) [2025-02-22 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532951', 'tblTempUsageDetail_20' ) start [2025-02-22 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532951', 'tblTempUsageDetail_20' ) end [2025-02-22 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:13:23] Production.INFO: ==2075== Releasing lock... [2025-02-22 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:13:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:14:05 [end_date_ymd] => 2025-02-22 14:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:14:05' and `end` < '2025-02-22 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-02-22 14:14:17] Production.INFO: count ==1997 [2025-02-22 14:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:14:05 - End Time 2025-02-22 14:14:05 [2025-02-22 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532956', 'tblTempUsageDetail_20' ) start [2025-02-22 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532956', 'tblTempUsageDetail_20' ) end [2025-02-22 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532956', 'tblTempVendorCDR_20' ) start [2025-02-22 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532956', 'tblTempVendorCDR_20' ) end [2025-02-22 14:14:18] Production.INFO: ProcessCDR(1,14532956,1,1,2) [2025-02-22 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532956', 'tblTempUsageDetail_20' ) start [2025-02-22 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532956', 'tblTempUsageDetail_20' ) end [2025-02-22 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:14:24] Production.INFO: ==2155== Releasing lock... [2025-02-22 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:14:24] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:15:05 [end_date_ymd] => 2025-02-22 14:15:05 [RateCDR] => 1 ) [2025-02-22 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:15:05' and `end` < '2025-02-22 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:15:17] Production.INFO: count ==2000 [2025-02-22 14:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:15:05 - End Time 2025-02-22 14:15:05 [2025-02-22 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532961', 'tblTempUsageDetail_20' ) start [2025-02-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532961', 'tblTempUsageDetail_20' ) end [2025-02-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532961', 'tblTempVendorCDR_20' ) start [2025-02-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532961', 'tblTempVendorCDR_20' ) end [2025-02-22 14:15:18] Production.INFO: ProcessCDR(1,14532961,1,1,2) [2025-02-22 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532961', 'tblTempUsageDetail_20' ) start [2025-02-22 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532961', 'tblTempUsageDetail_20' ) end [2025-02-22 14:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:15:21] Production.INFO: ==2235== Releasing lock... [2025-02-22 14:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:15:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:16:05 [end_date_ymd] => 2025-02-22 14:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:16:05' and `end` < '2025-02-22 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-02-22 14:16:17] Production.INFO: count ==2002 [2025-02-22 14:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:16:05 - End Time 2025-02-22 14:16:05 [2025-02-22 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532966', 'tblTempUsageDetail_20' ) start [2025-02-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532966', 'tblTempUsageDetail_20' ) end [2025-02-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532966', 'tblTempVendorCDR_20' ) start [2025-02-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532966', 'tblTempVendorCDR_20' ) end [2025-02-22 14:16:18] Production.INFO: ProcessCDR(1,14532966,1,1,2) [2025-02-22 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532966', 'tblTempUsageDetail_20' ) start [2025-02-22 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532966', 'tblTempUsageDetail_20' ) end [2025-02-22 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:16:23] Production.INFO: ==2355== Releasing lock... [2025-02-22 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:16:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:17:06 [end_date_ymd] => 2025-02-22 14:17:06 [RateCDR] => 1 ) [2025-02-22 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:17:06' and `end` < '2025-02-22 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:17:18] Production.INFO: count ==1999 [2025-02-22 14:17:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:17:06 - End Time 2025-02-22 14:17:06 [2025-02-22 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532971', 'tblTempUsageDetail_20' ) start [2025-02-22 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532971', 'tblTempUsageDetail_20' ) end [2025-02-22 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532971', 'tblTempVendorCDR_20' ) start [2025-02-22 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532971', 'tblTempVendorCDR_20' ) end [2025-02-22 14:17:19] Production.INFO: ProcessCDR(1,14532971,1,1,2) [2025-02-22 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532971', 'tblTempUsageDetail_20' ) start [2025-02-22 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532971', 'tblTempUsageDetail_20' ) end [2025-02-22 14:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:17:24] Production.INFO: ==2437== Releasing lock... [2025-02-22 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:17:24] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:18:05 [end_date_ymd] => 2025-02-22 14:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:18:05' and `end` < '2025-02-22 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-02-22 14:18:17] Production.INFO: count ==2000 [2025-02-22 14:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:18:05 - End Time 2025-02-22 14:18:05 [2025-02-22 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532976', 'tblTempUsageDetail_20' ) start [2025-02-22 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532976', 'tblTempUsageDetail_20' ) end [2025-02-22 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532976', 'tblTempVendorCDR_20' ) start [2025-02-22 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532976', 'tblTempVendorCDR_20' ) end [2025-02-22 14:18:18] Production.INFO: ProcessCDR(1,14532976,1,1,2) [2025-02-22 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532976', 'tblTempUsageDetail_20' ) start [2025-02-22 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532976', 'tblTempUsageDetail_20' ) end [2025-02-22 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:18:23] Production.INFO: ==2518== Releasing lock... [2025-02-22 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:18:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:19:06 [end_date_ymd] => 2025-02-22 14:19:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:19:06' and `end` < '2025-02-22 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-02-22 14:19:18] Production.INFO: count ==2088 [2025-02-22 14:19:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:19:06 - End Time 2025-02-22 14:19:06 [2025-02-22 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532981', 'tblTempUsageDetail_20' ) start [2025-02-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532981', 'tblTempUsageDetail_20' ) end [2025-02-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532981', 'tblTempVendorCDR_20' ) start [2025-02-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532981', 'tblTempVendorCDR_20' ) end [2025-02-22 14:19:19] Production.INFO: ProcessCDR(1,14532981,1,1,2) [2025-02-22 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532981', 'tblTempUsageDetail_20' ) start [2025-02-22 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532981', 'tblTempUsageDetail_20' ) end [2025-02-22 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:19:24] Production.INFO: ==2599== Releasing lock... [2025-02-22 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:19:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:20:06 [end_date_ymd] => 2025-02-22 14:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:20:06' and `end` < '2025-02-22 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-02-22 14:20:18] Production.INFO: count ==2090 [2025-02-22 14:20:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:20:06 - End Time 2025-02-22 14:20:06 [2025-02-22 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532987', 'tblTempUsageDetail_20' ) start [2025-02-22 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532987', 'tblTempUsageDetail_20' ) end [2025-02-22 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532987', 'tblTempVendorCDR_20' ) start [2025-02-22 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532987', 'tblTempVendorCDR_20' ) end [2025-02-22 14:20:19] Production.INFO: ProcessCDR(1,14532987,1,1,2) [2025-02-22 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532987', 'tblTempUsageDetail_20' ) start [2025-02-22 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532987', 'tblTempUsageDetail_20' ) end [2025-02-22 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:20:24] Production.INFO: ==2683== Releasing lock... [2025-02-22 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:20:24] Production.INFO: 44 MB #Memory Used# [2025-02-22 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:21:05 [end_date_ymd] => 2025-02-22 14:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:21:05' and `end` < '2025-02-22 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-02-22 14:21:17] Production.INFO: count ==2112 [2025-02-22 14:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:21:05 - End Time 2025-02-22 14:21:05 [2025-02-22 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532992', 'tblTempUsageDetail_20' ) start [2025-02-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532992', 'tblTempUsageDetail_20' ) end [2025-02-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532992', 'tblTempVendorCDR_20' ) start [2025-02-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532992', 'tblTempVendorCDR_20' ) end [2025-02-22 14:21:18] Production.INFO: ProcessCDR(1,14532992,1,1,2) [2025-02-22 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532992', 'tblTempUsageDetail_20' ) start [2025-02-22 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532992', 'tblTempUsageDetail_20' ) end [2025-02-22 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:21:23] Production.INFO: ==2773== Releasing lock... [2025-02-22 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:21:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:22:05 [end_date_ymd] => 2025-02-22 14:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:22:05' and `end` < '2025-02-22 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-02-22 14:22:17] Production.INFO: count ==2091 [2025-02-22 14:22:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:22:05 - End Time 2025-02-22 14:22:05 [2025-02-22 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532997', 'tblTempUsageDetail_20' ) start [2025-02-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14532997', 'tblTempUsageDetail_20' ) end [2025-02-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532997', 'tblTempVendorCDR_20' ) start [2025-02-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14532997', 'tblTempVendorCDR_20' ) end [2025-02-22 14:22:18] Production.INFO: ProcessCDR(1,14532997,1,1,2) [2025-02-22 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14532997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14532997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14532997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14532997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532997', 'tblTempUsageDetail_20' ) start [2025-02-22 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14532997', 'tblTempUsageDetail_20' ) end [2025-02-22 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:22:23] Production.INFO: ==2847== Releasing lock... [2025-02-22 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:22:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:23:05 [end_date_ymd] => 2025-02-22 14:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:23:05' and `end` < '2025-02-22 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-02-22 14:23:17] Production.INFO: count ==2083 [2025-02-22 14:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:23:05 - End Time 2025-02-22 14:23:05 [2025-02-22 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533002', 'tblTempUsageDetail_20' ) start [2025-02-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533002', 'tblTempUsageDetail_20' ) end [2025-02-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533002', 'tblTempVendorCDR_20' ) start [2025-02-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533002', 'tblTempVendorCDR_20' ) end [2025-02-22 14:23:18] Production.INFO: ProcessCDR(1,14533002,1,1,2) [2025-02-22 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533002', 'tblTempUsageDetail_20' ) start [2025-02-22 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533002', 'tblTempUsageDetail_20' ) end [2025-02-22 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:23:21] Production.INFO: ==2929== Releasing lock... [2025-02-22 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:23:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:24:05 [end_date_ymd] => 2025-02-22 14:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:24:05' and `end` < '2025-02-22 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-02-22 14:24:17] Production.INFO: count ==2078 [2025-02-22 14:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:24:05 - End Time 2025-02-22 14:24:05 [2025-02-22 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533007', 'tblTempUsageDetail_20' ) start [2025-02-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533007', 'tblTempUsageDetail_20' ) end [2025-02-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533007', 'tblTempVendorCDR_20' ) start [2025-02-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533007', 'tblTempVendorCDR_20' ) end [2025-02-22 14:24:18] Production.INFO: ProcessCDR(1,14533007,1,1,2) [2025-02-22 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533007', 'tblTempUsageDetail_20' ) start [2025-02-22 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533007', 'tblTempUsageDetail_20' ) end [2025-02-22 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:24:23] Production.INFO: ==3007== Releasing lock... [2025-02-22 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:24:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:25:05 [end_date_ymd] => 2025-02-22 14:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:25:05' and `end` < '2025-02-22 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-02-22 14:25:17] Production.INFO: count ==2073 [2025-02-22 14:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:25:05 - End Time 2025-02-22 14:25:05 [2025-02-22 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533012', 'tblTempUsageDetail_20' ) start [2025-02-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533012', 'tblTempUsageDetail_20' ) end [2025-02-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533012', 'tblTempVendorCDR_20' ) start [2025-02-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533012', 'tblTempVendorCDR_20' ) end [2025-02-22 14:25:18] Production.INFO: ProcessCDR(1,14533012,1,1,2) [2025-02-22 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533012', 'tblTempUsageDetail_20' ) start [2025-02-22 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533012', 'tblTempUsageDetail_20' ) end [2025-02-22 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:25:22] Production.INFO: ==3081== Releasing lock... [2025-02-22 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:25:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:26:05 [end_date_ymd] => 2025-02-22 14:26:05 [RateCDR] => 1 ) [2025-02-22 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:26:05' and `end` < '2025-02-22 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:26:18] Production.INFO: count ==2110 [2025-02-22 14:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:26:05 - End Time 2025-02-22 14:26:05 [2025-02-22 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533017', 'tblTempUsageDetail_20' ) start [2025-02-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533017', 'tblTempUsageDetail_20' ) end [2025-02-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533017', 'tblTempVendorCDR_20' ) start [2025-02-22 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533017', 'tblTempVendorCDR_20' ) end [2025-02-22 14:26:19] Production.INFO: ProcessCDR(1,14533017,1,1,2) [2025-02-22 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533017', 'tblTempUsageDetail_20' ) start [2025-02-22 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533017', 'tblTempUsageDetail_20' ) end [2025-02-22 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:26:22] Production.INFO: ==3160== Releasing lock... [2025-02-22 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:26:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:27:06 [end_date_ymd] => 2025-02-22 14:27:06 [RateCDR] => 1 ) [2025-02-22 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:27:06' and `end` < '2025-02-22 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:27:18] Production.INFO: count ==2176 [2025-02-22 14:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:27:06 - End Time 2025-02-22 14:27:06 [2025-02-22 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533022', 'tblTempUsageDetail_20' ) start [2025-02-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533022', 'tblTempUsageDetail_20' ) end [2025-02-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533022', 'tblTempVendorCDR_20' ) start [2025-02-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533022', 'tblTempVendorCDR_20' ) end [2025-02-22 14:27:19] Production.INFO: ProcessCDR(1,14533022,1,1,2) [2025-02-22 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533022', 'tblTempUsageDetail_20' ) start [2025-02-22 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533022', 'tblTempUsageDetail_20' ) end [2025-02-22 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:27:24] Production.INFO: ==3236== Releasing lock... [2025-02-22 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:27:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:28:05 [end_date_ymd] => 2025-02-22 14:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:28:05' and `end` < '2025-02-22 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-02-22 14:28:17] Production.INFO: count ==2179 [2025-02-22 14:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:28:05 - End Time 2025-02-22 14:28:05 [2025-02-22 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533027', 'tblTempUsageDetail_20' ) start [2025-02-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533027', 'tblTempUsageDetail_20' ) end [2025-02-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533027', 'tblTempVendorCDR_20' ) start [2025-02-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533027', 'tblTempVendorCDR_20' ) end [2025-02-22 14:28:18] Production.INFO: ProcessCDR(1,14533027,1,1,2) [2025-02-22 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533027', 'tblTempUsageDetail_20' ) start [2025-02-22 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533027', 'tblTempUsageDetail_20' ) end [2025-02-22 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:28:23] Production.INFO: ==3314== Releasing lock... [2025-02-22 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:28:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:29:05 [end_date_ymd] => 2025-02-22 14:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:29:05' and `end` < '2025-02-22 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-02-22 14:29:17] Production.INFO: count ==2182 [2025-02-22 14:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:29:05 - End Time 2025-02-22 14:29:05 [2025-02-22 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533032', 'tblTempUsageDetail_20' ) start [2025-02-22 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533032', 'tblTempUsageDetail_20' ) end [2025-02-22 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533032', 'tblTempVendorCDR_20' ) start [2025-02-22 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533032', 'tblTempVendorCDR_20' ) end [2025-02-22 14:29:18] Production.INFO: ProcessCDR(1,14533032,1,1,2) [2025-02-22 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533032', 'tblTempUsageDetail_20' ) start [2025-02-22 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533032', 'tblTempUsageDetail_20' ) end [2025-02-22 14:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:29:21] Production.INFO: ==3391== Releasing lock... [2025-02-22 14:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:29:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:30:06 [end_date_ymd] => 2025-02-22 14:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:30:06' and `end` < '2025-02-22 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-02-22 14:30:18] Production.INFO: count ==2174 [2025-02-22 14:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:30:06 - End Time 2025-02-22 14:30:06 [2025-02-22 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533038', 'tblTempUsageDetail_20' ) start [2025-02-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533038', 'tblTempUsageDetail_20' ) end [2025-02-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533038', 'tblTempVendorCDR_20' ) start [2025-02-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533038', 'tblTempVendorCDR_20' ) end [2025-02-22 14:30:19] Production.INFO: ProcessCDR(1,14533038,1,1,2) [2025-02-22 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533038', 'tblTempUsageDetail_20' ) start [2025-02-22 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533038', 'tblTempUsageDetail_20' ) end [2025-02-22 14:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:30:23] Production.INFO: ==3469== Releasing lock... [2025-02-22 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:30:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:31:05 [end_date_ymd] => 2025-02-22 14:31:05 [RateCDR] => 1 ) [2025-02-22 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:31:05' and `end` < '2025-02-22 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:31:18] Production.INFO: count ==2191 [2025-02-22 14:31:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:31:05 - End Time 2025-02-22 14:31:05 [2025-02-22 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533043', 'tblTempUsageDetail_20' ) start [2025-02-22 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533043', 'tblTempUsageDetail_20' ) end [2025-02-22 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533043', 'tblTempVendorCDR_20' ) start [2025-02-22 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533043', 'tblTempVendorCDR_20' ) end [2025-02-22 14:31:19] Production.INFO: ProcessCDR(1,14533043,1,1,2) [2025-02-22 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533043', 'tblTempUsageDetail_20' ) start [2025-02-22 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533043', 'tblTempUsageDetail_20' ) end [2025-02-22 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:31:22] Production.INFO: ==3548== Releasing lock... [2025-02-22 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:31:22] Production.INFO: 45 MB #Memory Used# [2025-02-22 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:32:05 [end_date_ymd] => 2025-02-22 14:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:32:05' and `end` < '2025-02-22 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-02-22 14:32:17] Production.INFO: count ==2191 [2025-02-22 14:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 11:32:05 - End Time 2025-02-22 14:32:05 [2025-02-22 14:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533048', 'tblTempUsageDetail_20' ) start [2025-02-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533048', 'tblTempUsageDetail_20' ) end [2025-02-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533048', 'tblTempVendorCDR_20' ) start [2025-02-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533048', 'tblTempVendorCDR_20' ) end [2025-02-22 14:32:18] Production.INFO: ProcessCDR(1,14533048,1,1,2) [2025-02-22 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533048', 'tblTempUsageDetail_20' ) start [2025-02-22 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533048', 'tblTempUsageDetail_20' ) end [2025-02-22 14:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:32:21] Production.INFO: ==3663== Releasing lock... [2025-02-22 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:32:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:33:05 [end_date_ymd] => 2025-02-22 14:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:33:05' and `end` < '2025-02-22 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-02-22 14:33:17] Production.INFO: count ==2193 [2025-02-22 14:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:33:05 - End Time 2025-02-22 14:33:05 [2025-02-22 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533053', 'tblTempUsageDetail_20' ) start [2025-02-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533053', 'tblTempUsageDetail_20' ) end [2025-02-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533053', 'tblTempVendorCDR_20' ) start [2025-02-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533053', 'tblTempVendorCDR_20' ) end [2025-02-22 14:33:18] Production.INFO: ProcessCDR(1,14533053,1,1,2) [2025-02-22 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533053', 'tblTempUsageDetail_20' ) start [2025-02-22 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533053', 'tblTempUsageDetail_20' ) end [2025-02-22 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:33:21] Production.INFO: ==3746== Releasing lock... [2025-02-22 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:33:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:34:05 [end_date_ymd] => 2025-02-22 14:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:34:05' and `end` < '2025-02-22 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-02-22 14:34:17] Production.INFO: count ==2191 [2025-02-22 14:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:34:05 - End Time 2025-02-22 14:34:05 [2025-02-22 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533058', 'tblTempUsageDetail_20' ) start [2025-02-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533058', 'tblTempUsageDetail_20' ) end [2025-02-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533058', 'tblTempVendorCDR_20' ) start [2025-02-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533058', 'tblTempVendorCDR_20' ) end [2025-02-22 14:34:18] Production.INFO: ProcessCDR(1,14533058,1,1,2) [2025-02-22 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533058', 'tblTempUsageDetail_20' ) start [2025-02-22 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533058', 'tblTempUsageDetail_20' ) end [2025-02-22 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:34:22] Production.INFO: ==3820== Releasing lock... [2025-02-22 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:34:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:35:06 [end_date_ymd] => 2025-02-22 14:35:06 [RateCDR] => 1 ) [2025-02-22 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:35:06' and `end` < '2025-02-22 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:35:18] Production.INFO: count ==2191 [2025-02-22 14:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:35:06 - End Time 2025-02-22 14:35:06 [2025-02-22 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533063', 'tblTempUsageDetail_20' ) start [2025-02-22 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533063', 'tblTempUsageDetail_20' ) end [2025-02-22 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533063', 'tblTempVendorCDR_20' ) start [2025-02-22 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533063', 'tblTempVendorCDR_20' ) end [2025-02-22 14:35:18] Production.INFO: ProcessCDR(1,14533063,1,1,2) [2025-02-22 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533063', 'tblTempUsageDetail_20' ) start [2025-02-22 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533063', 'tblTempUsageDetail_20' ) end [2025-02-22 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:35:23] Production.INFO: ==3909== Releasing lock... [2025-02-22 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:35:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:36:06 [end_date_ymd] => 2025-02-22 14:36:06 [RateCDR] => 1 ) [2025-02-22 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:36:06' and `end` < '2025-02-22 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:36:18] Production.INFO: count ==2205 [2025-02-22 14:36:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:36:06 - End Time 2025-02-22 14:36:06 [2025-02-22 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533068', 'tblTempUsageDetail_20' ) start [2025-02-22 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533068', 'tblTempUsageDetail_20' ) end [2025-02-22 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533068', 'tblTempVendorCDR_20' ) start [2025-02-22 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533068', 'tblTempVendorCDR_20' ) end [2025-02-22 14:36:19] Production.INFO: ProcessCDR(1,14533068,1,1,2) [2025-02-22 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533068', 'tblTempUsageDetail_20' ) start [2025-02-22 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533068', 'tblTempUsageDetail_20' ) end [2025-02-22 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:36:24] Production.INFO: ==3986== Releasing lock... [2025-02-22 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:36:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:37:06 [end_date_ymd] => 2025-02-22 14:37:06 [RateCDR] => 1 ) [2025-02-22 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:37:06' and `end` < '2025-02-22 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:37:18] Production.INFO: count ==2245 [2025-02-22 14:37:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:37:06 - End Time 2025-02-22 14:37:06 [2025-02-22 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533073', 'tblTempUsageDetail_20' ) start [2025-02-22 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533073', 'tblTempUsageDetail_20' ) end [2025-02-22 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533073', 'tblTempVendorCDR_20' ) start [2025-02-22 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533073', 'tblTempVendorCDR_20' ) end [2025-02-22 14:37:19] Production.INFO: ProcessCDR(1,14533073,1,1,2) [2025-02-22 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533073', 'tblTempUsageDetail_20' ) start [2025-02-22 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533073', 'tblTempUsageDetail_20' ) end [2025-02-22 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:37:22] Production.INFO: ==4064== Releasing lock... [2025-02-22 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:37:22] Production.INFO: 45 MB #Memory Used# [2025-02-22 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:38:06 [end_date_ymd] => 2025-02-22 14:38:06 [RateCDR] => 1 ) [2025-02-22 14: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-02-22 11:38:06' and `end` < '2025-02-22 14: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-02-22 14:38:18] Production.INFO: count ==2296 [2025-02-22 14:38:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:38:06 - End Time 2025-02-22 14:38:06 [2025-02-22 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533078', 'tblTempUsageDetail_20' ) start [2025-02-22 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533078', 'tblTempUsageDetail_20' ) end [2025-02-22 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533078', 'tblTempVendorCDR_20' ) start [2025-02-22 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533078', 'tblTempVendorCDR_20' ) end [2025-02-22 14:38:19] Production.INFO: ProcessCDR(1,14533078,1,1,2) [2025-02-22 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533078', 'tblTempUsageDetail_20' ) start [2025-02-22 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533078', 'tblTempUsageDetail_20' ) end [2025-02-22 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:38:23] Production.INFO: ==4142== Releasing lock... [2025-02-22 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:38:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:39:05 [end_date_ymd] => 2025-02-22 14:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:39:05' and `end` < '2025-02-22 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-02-22 14:39:17] Production.INFO: count ==2308 [2025-02-22 14:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:39:05 - End Time 2025-02-22 14:39:05 [2025-02-22 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533083', 'tblTempUsageDetail_20' ) start [2025-02-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533083', 'tblTempUsageDetail_20' ) end [2025-02-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533083', 'tblTempVendorCDR_20' ) start [2025-02-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533083', 'tblTempVendorCDR_20' ) end [2025-02-22 14:39:18] Production.INFO: ProcessCDR(1,14533083,1,1,2) [2025-02-22 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533083', 'tblTempUsageDetail_20' ) start [2025-02-22 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533083', 'tblTempUsageDetail_20' ) end [2025-02-22 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:39:23] Production.INFO: ==4217== Releasing lock... [2025-02-22 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:39:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:40:07 [end_date_ymd] => 2025-02-22 14:40:07 [RateCDR] => 1 ) [2025-02-22 14:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:40:07' and `end` < '2025-02-22 14:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:40:19] Production.INFO: count ==2320 [2025-02-22 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-22 11:40:07 - End Time 2025-02-22 14:40:07 [2025-02-22 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533089', 'tblTempUsageDetail_20' ) start [2025-02-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533089', 'tblTempUsageDetail_20' ) end [2025-02-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533089', 'tblTempVendorCDR_20' ) start [2025-02-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533089', 'tblTempVendorCDR_20' ) end [2025-02-22 14:40:20] Production.INFO: ProcessCDR(1,14533089,1,1,2) [2025-02-22 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533089', 'tblTempUsageDetail_20' ) start [2025-02-22 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533089', 'tblTempUsageDetail_20' ) end [2025-02-22 14:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:40:25] Production.INFO: ==4302== Releasing lock... [2025-02-22 14:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:40:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:41:05 [end_date_ymd] => 2025-02-22 14:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:41:05' and `end` < '2025-02-22 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-02-22 14:41:18] Production.INFO: count ==2347 [2025-02-22 14:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:41:05 - End Time 2025-02-22 14:41:05 [2025-02-22 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533094', 'tblTempUsageDetail_20' ) start [2025-02-22 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533094', 'tblTempUsageDetail_20' ) end [2025-02-22 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533094', 'tblTempVendorCDR_20' ) start [2025-02-22 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533094', 'tblTempVendorCDR_20' ) end [2025-02-22 14:41:18] Production.INFO: ProcessCDR(1,14533094,1,1,2) [2025-02-22 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533094', 'tblTempUsageDetail_20' ) start [2025-02-22 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533094', 'tblTempUsageDetail_20' ) end [2025-02-22 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:41:22] Production.INFO: ==4380== Releasing lock... [2025-02-22 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:41:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-22 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:42:06 [end_date_ymd] => 2025-02-22 14:42:06 [RateCDR] => 1 ) [2025-02-22 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:42:06' and `end` < '2025-02-22 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:42:18] Production.INFO: count ==2343 [2025-02-22 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:42:06 - End Time 2025-02-22 14:42:06 [2025-02-22 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533099', 'tblTempUsageDetail_20' ) start [2025-02-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533099', 'tblTempUsageDetail_20' ) end [2025-02-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533099', 'tblTempVendorCDR_20' ) start [2025-02-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533099', 'tblTempVendorCDR_20' ) end [2025-02-22 14:42:19] Production.INFO: ProcessCDR(1,14533099,1,1,2) [2025-02-22 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533099', 'tblTempUsageDetail_20' ) start [2025-02-22 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533099', 'tblTempUsageDetail_20' ) end [2025-02-22 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:42:23] Production.INFO: ==4458== Releasing lock... [2025-02-22 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:42:23] Production.INFO: 46 MB #Memory Used# [2025-02-22 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:43:05 [end_date_ymd] => 2025-02-22 14:43:05 [RateCDR] => 1 ) [2025-02-22 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:43:05' and `end` < '2025-02-22 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:43:17] Production.INFO: count ==2336 [2025-02-22 14:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:43:05 - End Time 2025-02-22 14:43:05 [2025-02-22 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533104', 'tblTempUsageDetail_20' ) start [2025-02-22 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533104', 'tblTempUsageDetail_20' ) end [2025-02-22 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533104', 'tblTempVendorCDR_20' ) start [2025-02-22 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533104', 'tblTempVendorCDR_20' ) end [2025-02-22 14:43:18] Production.INFO: ProcessCDR(1,14533104,1,1,2) [2025-02-22 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533104', 'tblTempUsageDetail_20' ) start [2025-02-22 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533104', 'tblTempUsageDetail_20' ) end [2025-02-22 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:43:22] Production.INFO: ==4535== Releasing lock... [2025-02-22 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:43:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:44:06 [end_date_ymd] => 2025-02-22 14:44:06 [RateCDR] => 1 ) [2025-02-22 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:44:06' and `end` < '2025-02-22 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:44:18] Production.INFO: count ==2339 [2025-02-22 14:44:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:44:06 - End Time 2025-02-22 14:44:06 [2025-02-22 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533109', 'tblTempUsageDetail_20' ) start [2025-02-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533109', 'tblTempUsageDetail_20' ) end [2025-02-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533109', 'tblTempVendorCDR_20' ) start [2025-02-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533109', 'tblTempVendorCDR_20' ) end [2025-02-22 14:44:19] Production.INFO: ProcessCDR(1,14533109,1,1,2) [2025-02-22 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533109', 'tblTempUsageDetail_20' ) start [2025-02-22 14:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533109', 'tblTempUsageDetail_20' ) end [2025-02-22 14:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:44:22] Production.INFO: ==4617== Releasing lock... [2025-02-22 14:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:44:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:45:05 [end_date_ymd] => 2025-02-22 14:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:45:05' and `end` < '2025-02-22 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-02-22 14:45:17] Production.INFO: count ==2342 [2025-02-22 14:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:45:05 - End Time 2025-02-22 14:45:05 [2025-02-22 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533114', 'tblTempUsageDetail_20' ) start [2025-02-22 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533114', 'tblTempUsageDetail_20' ) end [2025-02-22 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533114', 'tblTempVendorCDR_20' ) start [2025-02-22 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533114', 'tblTempVendorCDR_20' ) end [2025-02-22 14:45:18] Production.INFO: ProcessCDR(1,14533114,1,1,2) [2025-02-22 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533114', 'tblTempUsageDetail_20' ) start [2025-02-22 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533114', 'tblTempUsageDetail_20' ) end [2025-02-22 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:45:24] Production.INFO: ==4695== Releasing lock... [2025-02-22 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:45:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-22 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:46:06 [end_date_ymd] => 2025-02-22 14:46:06 [RateCDR] => 1 ) [2025-02-22 14: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-02-22 11:46:06' and `end` < '2025-02-22 14: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-02-22 14:46:18] Production.INFO: count ==2337 [2025-02-22 14:46:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:46:06 - End Time 2025-02-22 14:46:06 [2025-02-22 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533119', 'tblTempUsageDetail_20' ) start [2025-02-22 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533119', 'tblTempUsageDetail_20' ) end [2025-02-22 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533119', 'tblTempVendorCDR_20' ) start [2025-02-22 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533119', 'tblTempVendorCDR_20' ) end [2025-02-22 14:46:19] Production.INFO: ProcessCDR(1,14533119,1,1,2) [2025-02-22 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533119', 'tblTempUsageDetail_20' ) start [2025-02-22 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533119', 'tblTempUsageDetail_20' ) end [2025-02-22 14:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:46:24] Production.INFO: ==4776== Releasing lock... [2025-02-22 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:46:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:47:06 [end_date_ymd] => 2025-02-22 14:47:06 [RateCDR] => 1 ) [2025-02-22 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:47:06' and `end` < '2025-02-22 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:47:18] Production.INFO: count ==2328 [2025-02-22 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:47:06 - End Time 2025-02-22 14:47:06 [2025-02-22 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533124', 'tblTempUsageDetail_20' ) start [2025-02-22 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533124', 'tblTempUsageDetail_20' ) end [2025-02-22 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533124', 'tblTempVendorCDR_20' ) start [2025-02-22 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533124', 'tblTempVendorCDR_20' ) end [2025-02-22 14:47:19] Production.INFO: ProcessCDR(1,14533124,1,1,2) [2025-02-22 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533124', 'tblTempUsageDetail_20' ) start [2025-02-22 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533124', 'tblTempUsageDetail_20' ) end [2025-02-22 14:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:47:23] Production.INFO: ==4896== Releasing lock... [2025-02-22 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:47:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-22 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:48:06 [end_date_ymd] => 2025-02-22 14:48:06 [RateCDR] => 1 ) [2025-02-22 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:48:06' and `end` < '2025-02-22 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:48:18] Production.INFO: count ==2325 [2025-02-22 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:48:06 - End Time 2025-02-22 14:48:06 [2025-02-22 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533129', 'tblTempUsageDetail_20' ) start [2025-02-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533129', 'tblTempUsageDetail_20' ) end [2025-02-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533129', 'tblTempVendorCDR_20' ) start [2025-02-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533129', 'tblTempVendorCDR_20' ) end [2025-02-22 14:48:19] Production.INFO: ProcessCDR(1,14533129,1,1,2) [2025-02-22 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533129', 'tblTempUsageDetail_20' ) start [2025-02-22 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533129', 'tblTempUsageDetail_20' ) end [2025-02-22 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:48:22] Production.INFO: ==4977== Releasing lock... [2025-02-22 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:48:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:49:06 [end_date_ymd] => 2025-02-22 14:49:06 [RateCDR] => 1 ) [2025-02-22 14: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-02-22 11:49:06' and `end` < '2025-02-22 14: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-02-22 14:49:18] Production.INFO: count ==2323 [2025-02-22 14:49:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:49:06 - End Time 2025-02-22 14:49:06 [2025-02-22 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533134', 'tblTempUsageDetail_20' ) start [2025-02-22 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533134', 'tblTempUsageDetail_20' ) end [2025-02-22 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533134', 'tblTempVendorCDR_20' ) start [2025-02-22 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533134', 'tblTempVendorCDR_20' ) end [2025-02-22 14:49:19] Production.INFO: ProcessCDR(1,14533134,1,1,2) [2025-02-22 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533134', 'tblTempUsageDetail_20' ) start [2025-02-22 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533134', 'tblTempUsageDetail_20' ) end [2025-02-22 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:49:22] Production.INFO: ==5053== Releasing lock... [2025-02-22 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:49:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:50:06 [end_date_ymd] => 2025-02-22 14:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 11:50:06' and `end` < '2025-02-22 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-02-22 14:50:19] Production.INFO: count ==2324 [2025-02-22 14:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:50:06 - End Time 2025-02-22 14:50:06 [2025-02-22 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533140', 'tblTempUsageDetail_20' ) start [2025-02-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533140', 'tblTempUsageDetail_20' ) end [2025-02-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533140', 'tblTempVendorCDR_20' ) start [2025-02-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533140', 'tblTempVendorCDR_20' ) end [2025-02-22 14:50:20] Production.INFO: ProcessCDR(1,14533140,1,1,2) [2025-02-22 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533140', 'tblTempUsageDetail_20' ) start [2025-02-22 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533140', 'tblTempUsageDetail_20' ) end [2025-02-22 14:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:50:25] Production.INFO: ==5131== Releasing lock... [2025-02-22 14:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:50:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:51:05 [end_date_ymd] => 2025-02-22 14:51:05 [RateCDR] => 1 ) [2025-02-22 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:51:05' and `end` < '2025-02-22 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:51:18] Production.INFO: count ==2311 [2025-02-22 14:51:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:51:05 - End Time 2025-02-22 14:51:05 [2025-02-22 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533145', 'tblTempUsageDetail_20' ) start [2025-02-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533145', 'tblTempUsageDetail_20' ) end [2025-02-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533145', 'tblTempVendorCDR_20' ) start [2025-02-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533145', 'tblTempVendorCDR_20' ) end [2025-02-22 14:51:19] Production.INFO: ProcessCDR(1,14533145,1,1,2) [2025-02-22 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533145', 'tblTempUsageDetail_20' ) start [2025-02-22 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533145', 'tblTempUsageDetail_20' ) end [2025-02-22 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:51:22] Production.INFO: ==5209== Releasing lock... [2025-02-22 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:52:06 [end_date_ymd] => 2025-02-22 14:52:06 [RateCDR] => 1 ) [2025-02-22 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:52:06' and `end` < '2025-02-22 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:52:18] Production.INFO: count ==2298 [2025-02-22 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:52:06 - End Time 2025-02-22 14:52:06 [2025-02-22 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533150', 'tblTempUsageDetail_20' ) start [2025-02-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533150', 'tblTempUsageDetail_20' ) end [2025-02-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533150', 'tblTempVendorCDR_20' ) start [2025-02-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533150', 'tblTempVendorCDR_20' ) end [2025-02-22 14:52:19] Production.INFO: ProcessCDR(1,14533150,1,1,2) [2025-02-22 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533150', 'tblTempUsageDetail_20' ) start [2025-02-22 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533150', 'tblTempUsageDetail_20' ) end [2025-02-22 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:52:23] Production.INFO: ==5286== Releasing lock... [2025-02-22 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:52:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:53:06 [end_date_ymd] => 2025-02-22 14:53:06 [RateCDR] => 1 ) [2025-02-22 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:53:06' and `end` < '2025-02-22 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:53:18] Production.INFO: count ==2295 [2025-02-22 14:53:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:53:06 - End Time 2025-02-22 14:53:06 [2025-02-22 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533155', 'tblTempUsageDetail_20' ) start [2025-02-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533155', 'tblTempUsageDetail_20' ) end [2025-02-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533155', 'tblTempVendorCDR_20' ) start [2025-02-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533155', 'tblTempVendorCDR_20' ) end [2025-02-22 14:53:19] Production.INFO: ProcessCDR(1,14533155,1,1,2) [2025-02-22 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533155', 'tblTempUsageDetail_20' ) start [2025-02-22 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533155', 'tblTempUsageDetail_20' ) end [2025-02-22 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:53:25] Production.INFO: ==5361== Releasing lock... [2025-02-22 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:53:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:54:06 [end_date_ymd] => 2025-02-22 14:54:06 [RateCDR] => 1 ) [2025-02-22 14: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-02-22 11:54:06' and `end` < '2025-02-22 14: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-02-22 14:54:18] Production.INFO: count ==2304 [2025-02-22 14:54:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:54:06 - End Time 2025-02-22 14:54:06 [2025-02-22 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533160', 'tblTempUsageDetail_20' ) start [2025-02-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533160', 'tblTempUsageDetail_20' ) end [2025-02-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533160', 'tblTempVendorCDR_20' ) start [2025-02-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533160', 'tblTempVendorCDR_20' ) end [2025-02-22 14:54:19] Production.INFO: ProcessCDR(1,14533160,1,1,2) [2025-02-22 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533160', 'tblTempUsageDetail_20' ) start [2025-02-22 14:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533160', 'tblTempUsageDetail_20' ) end [2025-02-22 14:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:54:24] Production.INFO: ==5439== Releasing lock... [2025-02-22 14:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:54:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:55:05 [end_date_ymd] => 2025-02-22 14:55:05 [RateCDR] => 1 ) [2025-02-22 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:55:05' and `end` < '2025-02-22 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:55:18] Production.INFO: count ==2295 [2025-02-22 14:55:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:55:05 - End Time 2025-02-22 14:55:05 [2025-02-22 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533165', 'tblTempUsageDetail_20' ) start [2025-02-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533165', 'tblTempUsageDetail_20' ) end [2025-02-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533165', 'tblTempVendorCDR_20' ) start [2025-02-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533165', 'tblTempVendorCDR_20' ) end [2025-02-22 14:55:19] Production.INFO: ProcessCDR(1,14533165,1,1,2) [2025-02-22 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533165', 'tblTempUsageDetail_20' ) start [2025-02-22 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533165', 'tblTempUsageDetail_20' ) end [2025-02-22 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:55:22] Production.INFO: ==5518== Releasing lock... [2025-02-22 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:55:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:56:06 [end_date_ymd] => 2025-02-22 14:56:06 [RateCDR] => 1 ) [2025-02-22 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:56:06' and `end` < '2025-02-22 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:56:18] Production.INFO: count ==2294 [2025-02-22 14:56:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:56:06 - End Time 2025-02-22 14:56:06 [2025-02-22 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533170', 'tblTempUsageDetail_20' ) start [2025-02-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533170', 'tblTempUsageDetail_20' ) end [2025-02-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533170', 'tblTempVendorCDR_20' ) start [2025-02-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533170', 'tblTempVendorCDR_20' ) end [2025-02-22 14:56:19] Production.INFO: ProcessCDR(1,14533170,1,1,2) [2025-02-22 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533170', 'tblTempUsageDetail_20' ) start [2025-02-22 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533170', 'tblTempUsageDetail_20' ) end [2025-02-22 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:56:23] Production.INFO: ==5597== Releasing lock... [2025-02-22 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:56:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:57:05 [end_date_ymd] => 2025-02-22 14:57:05 [RateCDR] => 1 ) [2025-02-22 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:57:05' and `end` < '2025-02-22 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:57:18] Production.INFO: count ==2298 [2025-02-22 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:57:05 - End Time 2025-02-22 14:57:05 [2025-02-22 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533175', 'tblTempUsageDetail_20' ) start [2025-02-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533175', 'tblTempUsageDetail_20' ) end [2025-02-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533175', 'tblTempVendorCDR_20' ) start [2025-02-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533175', 'tblTempVendorCDR_20' ) end [2025-02-22 14:57:19] Production.INFO: ProcessCDR(1,14533175,1,1,2) [2025-02-22 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533175', 'tblTempUsageDetail_20' ) start [2025-02-22 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533175', 'tblTempUsageDetail_20' ) end [2025-02-22 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:57:24] Production.INFO: ==5674== Releasing lock... [2025-02-22 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:57:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:58:06 [end_date_ymd] => 2025-02-22 14:58:06 [RateCDR] => 1 ) [2025-02-22 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:58:06' and `end` < '2025-02-22 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:58:18] Production.INFO: count ==2295 [2025-02-22 14:58:19] Production.ERROR: pbx CDR StartTime 2025-02-22 11:58:06 - End Time 2025-02-22 14:58:06 [2025-02-22 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533180', 'tblTempUsageDetail_20' ) start [2025-02-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533180', 'tblTempUsageDetail_20' ) end [2025-02-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533180', 'tblTempVendorCDR_20' ) start [2025-02-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533180', 'tblTempVendorCDR_20' ) end [2025-02-22 14:58:19] Production.INFO: ProcessCDR(1,14533180,1,1,2) [2025-02-22 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533180', 'tblTempUsageDetail_20' ) start [2025-02-22 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533180', 'tblTempUsageDetail_20' ) end [2025-02-22 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:58:23] Production.INFO: ==5752== Releasing lock... [2025-02-22 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:58:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 11:59:05 [end_date_ymd] => 2025-02-22 14:59:05 [RateCDR] => 1 ) [2025-02-22 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 11:59:05' and `end` < '2025-02-22 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 14:59:17] Production.INFO: count ==2293 [2025-02-22 14:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 11:59:05 - End Time 2025-02-22 14:59:05 [2025-02-22 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533185', 'tblTempUsageDetail_20' ) start [2025-02-22 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533185', 'tblTempUsageDetail_20' ) end [2025-02-22 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533185', 'tblTempVendorCDR_20' ) start [2025-02-22 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533185', 'tblTempVendorCDR_20' ) end [2025-02-22 14:59:18] Production.INFO: ProcessCDR(1,14533185,1,1,2) [2025-02-22 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533185', 'tblTempUsageDetail_20' ) start [2025-02-22 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533185', 'tblTempUsageDetail_20' ) end [2025-02-22 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 14:59:22] Production.INFO: ==5827== Releasing lock... [2025-02-22 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 14:59:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:00:07 [end_date_ymd] => 2025-02-22 15:00:07 [RateCDR] => 1 ) [2025-02-22 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:00:07' and `end` < '2025-02-22 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:00:19] Production.INFO: count ==2285 [2025-02-22 15:00:20] Production.ERROR: pbx CDR StartTime 2025-02-22 12:00:07 - End Time 2025-02-22 15:00:07 [2025-02-22 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533191', 'tblTempUsageDetail_20' ) start [2025-02-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533191', 'tblTempUsageDetail_20' ) end [2025-02-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533191', 'tblTempVendorCDR_20' ) start [2025-02-22 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533191', 'tblTempVendorCDR_20' ) end [2025-02-22 15:00:20] Production.INFO: ProcessCDR(1,14533191,1,1,2) [2025-02-22 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533191', 'tblTempUsageDetail_20' ) start [2025-02-22 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533191', 'tblTempUsageDetail_20' ) end [2025-02-22 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:00:25] Production.INFO: ==5904== Releasing lock... [2025-02-22 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:00:25] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:01:05 [end_date_ymd] => 2025-02-22 15:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:01:05' and `end` < '2025-02-22 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-02-22 15:01:17] Production.INFO: count ==2290 [2025-02-22 15:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:01:05 - End Time 2025-02-22 15:01:05 [2025-02-22 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533196', 'tblTempUsageDetail_20' ) start [2025-02-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533196', 'tblTempUsageDetail_20' ) end [2025-02-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533196', 'tblTempVendorCDR_20' ) start [2025-02-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533196', 'tblTempVendorCDR_20' ) end [2025-02-22 15:01:18] Production.INFO: ProcessCDR(1,14533196,1,1,2) [2025-02-22 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533196', 'tblTempUsageDetail_20' ) start [2025-02-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533196', 'tblTempUsageDetail_20' ) end [2025-02-22 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:01:24] Production.INFO: ==6066== Releasing lock... [2025-02-22 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:01:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:02:05 [end_date_ymd] => 2025-02-22 15:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:02:05' and `end` < '2025-02-22 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-02-22 15:02:17] Production.INFO: count ==2288 [2025-02-22 15:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:02:05 - End Time 2025-02-22 15:02:05 [2025-02-22 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533201', 'tblTempUsageDetail_20' ) start [2025-02-22 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533201', 'tblTempUsageDetail_20' ) end [2025-02-22 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533201', 'tblTempVendorCDR_20' ) start [2025-02-22 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533201', 'tblTempVendorCDR_20' ) end [2025-02-22 15:02:18] Production.INFO: ProcessCDR(1,14533201,1,1,2) [2025-02-22 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533201', 'tblTempUsageDetail_20' ) start [2025-02-22 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533201', 'tblTempUsageDetail_20' ) end [2025-02-22 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:02:24] Production.INFO: ==6137== Releasing lock... [2025-02-22 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:02:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:03:05 [end_date_ymd] => 2025-02-22 15:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:03:05' and `end` < '2025-02-22 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-02-22 15:03:17] Production.INFO: count ==2290 [2025-02-22 15:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:03:05 - End Time 2025-02-22 15:03:05 [2025-02-22 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533206', 'tblTempUsageDetail_20' ) start [2025-02-22 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533206', 'tblTempUsageDetail_20' ) end [2025-02-22 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533206', 'tblTempVendorCDR_20' ) start [2025-02-22 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533206', 'tblTempVendorCDR_20' ) end [2025-02-22 15:03:18] Production.INFO: ProcessCDR(1,14533206,1,1,2) [2025-02-22 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533206', 'tblTempUsageDetail_20' ) start [2025-02-22 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533206', 'tblTempUsageDetail_20' ) end [2025-02-22 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:03:22] Production.INFO: ==6246== Releasing lock... [2025-02-22 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:03:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:04:05 [end_date_ymd] => 2025-02-22 15:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:04:05' and `end` < '2025-02-22 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-02-22 15:04:17] Production.INFO: count ==2287 [2025-02-22 15:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:04:05 - End Time 2025-02-22 15:04:05 [2025-02-22 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533211', 'tblTempUsageDetail_20' ) start [2025-02-22 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533211', 'tblTempUsageDetail_20' ) end [2025-02-22 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533211', 'tblTempVendorCDR_20' ) start [2025-02-22 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533211', 'tblTempVendorCDR_20' ) end [2025-02-22 15:04:18] Production.INFO: ProcessCDR(1,14533211,1,1,2) [2025-02-22 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533211', 'tblTempUsageDetail_20' ) start [2025-02-22 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533211', 'tblTempUsageDetail_20' ) end [2025-02-22 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:04:23] Production.INFO: ==6318== Releasing lock... [2025-02-22 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:04:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:05:05 [end_date_ymd] => 2025-02-22 15:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:05:05' and `end` < '2025-02-22 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-02-22 15:05:17] Production.INFO: count ==2289 [2025-02-22 15:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:05:05 - End Time 2025-02-22 15:05:05 [2025-02-22 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533216', 'tblTempUsageDetail_20' ) start [2025-02-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533216', 'tblTempUsageDetail_20' ) end [2025-02-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533216', 'tblTempVendorCDR_20' ) start [2025-02-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533216', 'tblTempVendorCDR_20' ) end [2025-02-22 15:05:18] Production.INFO: ProcessCDR(1,14533216,1,1,2) [2025-02-22 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533216', 'tblTempUsageDetail_20' ) start [2025-02-22 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533216', 'tblTempUsageDetail_20' ) end [2025-02-22 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:05:23] Production.INFO: ==6467== Releasing lock... [2025-02-22 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:05:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:06:06 [end_date_ymd] => 2025-02-22 15:06:06 [RateCDR] => 1 ) [2025-02-22 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:06:06' and `end` < '2025-02-22 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:06:18] Production.INFO: count ==2290 [2025-02-22 15:06:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:06:06 - End Time 2025-02-22 15:06:06 [2025-02-22 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533221', 'tblTempUsageDetail_20' ) start [2025-02-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533221', 'tblTempUsageDetail_20' ) end [2025-02-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533221', 'tblTempVendorCDR_20' ) start [2025-02-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533221', 'tblTempVendorCDR_20' ) end [2025-02-22 15:06:19] Production.INFO: ProcessCDR(1,14533221,1,1,2) [2025-02-22 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533221', 'tblTempUsageDetail_20' ) start [2025-02-22 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533221', 'tblTempUsageDetail_20' ) end [2025-02-22 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:06:24] Production.INFO: ==6537== Releasing lock... [2025-02-22 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:06:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:07:06 [end_date_ymd] => 2025-02-22 15:07:06 [RateCDR] => 1 ) [2025-02-22 15: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-02-22 12:07:06' and `end` < '2025-02-22 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:07:18] Production.INFO: count ==2284 [2025-02-22 15:07:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:07:06 - End Time 2025-02-22 15:07:06 [2025-02-22 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533226', 'tblTempUsageDetail_20' ) start [2025-02-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533226', 'tblTempUsageDetail_20' ) end [2025-02-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533226', 'tblTempVendorCDR_20' ) start [2025-02-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533226', 'tblTempVendorCDR_20' ) end [2025-02-22 15:07:19] Production.INFO: ProcessCDR(1,14533226,1,1,2) [2025-02-22 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533226', 'tblTempUsageDetail_20' ) start [2025-02-22 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533226', 'tblTempUsageDetail_20' ) end [2025-02-22 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:07:24] Production.INFO: ==6609== Releasing lock... [2025-02-22 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:07:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:08:05 [end_date_ymd] => 2025-02-22 15:08:05 [RateCDR] => 1 ) [2025-02-22 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:08:05' and `end` < '2025-02-22 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:08:17] Production.INFO: count ==2297 [2025-02-22 15:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:08:05 - End Time 2025-02-22 15:08:05 [2025-02-22 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533231', 'tblTempUsageDetail_20' ) start [2025-02-22 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533231', 'tblTempUsageDetail_20' ) end [2025-02-22 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533231', 'tblTempVendorCDR_20' ) start [2025-02-22 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533231', 'tblTempVendorCDR_20' ) end [2025-02-22 15:08:18] Production.INFO: ProcessCDR(1,14533231,1,1,2) [2025-02-22 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533231', 'tblTempUsageDetail_20' ) start [2025-02-22 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533231', 'tblTempUsageDetail_20' ) end [2025-02-22 15:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:08:23] Production.INFO: ==6765== Releasing lock... [2025-02-22 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:08:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:09:06 [end_date_ymd] => 2025-02-22 15:09:06 [RateCDR] => 1 ) [2025-02-22 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:09:06' and `end` < '2025-02-22 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:09:18] Production.INFO: count ==2295 [2025-02-22 15:09:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:09:06 - End Time 2025-02-22 15:09:06 [2025-02-22 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533236', 'tblTempUsageDetail_20' ) start [2025-02-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533236', 'tblTempUsageDetail_20' ) end [2025-02-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533236', 'tblTempVendorCDR_20' ) start [2025-02-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533236', 'tblTempVendorCDR_20' ) end [2025-02-22 15:09:19] Production.INFO: ProcessCDR(1,14533236,1,1,2) [2025-02-22 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533236', 'tblTempUsageDetail_20' ) start [2025-02-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533236', 'tblTempUsageDetail_20' ) end [2025-02-22 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:09:24] Production.INFO: ==6836== Releasing lock... [2025-02-22 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:09:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:10:06 [end_date_ymd] => 2025-02-22 15:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:10:06' and `end` < '2025-02-22 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-02-22 15:10:18] Production.INFO: count ==2296 [2025-02-22 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:10:06 - End Time 2025-02-22 15:10:06 [2025-02-22 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533242', 'tblTempUsageDetail_20' ) start [2025-02-22 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533242', 'tblTempUsageDetail_20' ) end [2025-02-22 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533242', 'tblTempVendorCDR_20' ) start [2025-02-22 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533242', 'tblTempVendorCDR_20' ) end [2025-02-22 15:10:19] Production.INFO: ProcessCDR(1,14533242,1,1,2) [2025-02-22 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533242', 'tblTempUsageDetail_20' ) start [2025-02-22 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533242', 'tblTempUsageDetail_20' ) end [2025-02-22 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:10:24] Production.INFO: ==6909== Releasing lock... [2025-02-22 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:10:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:11:05 [end_date_ymd] => 2025-02-22 15:11:05 [RateCDR] => 1 ) [2025-02-22 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:11:05' and `end` < '2025-02-22 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:11:17] Production.INFO: count ==2293 [2025-02-22 15:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:11:05 - End Time 2025-02-22 15:11:05 [2025-02-22 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533247', 'tblTempUsageDetail_20' ) start [2025-02-22 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533247', 'tblTempUsageDetail_20' ) end [2025-02-22 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533247', 'tblTempVendorCDR_20' ) start [2025-02-22 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533247', 'tblTempVendorCDR_20' ) end [2025-02-22 15:11:18] Production.INFO: ProcessCDR(1,14533247,1,1,2) [2025-02-22 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533247', 'tblTempUsageDetail_20' ) start [2025-02-22 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533247', 'tblTempUsageDetail_20' ) end [2025-02-22 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:11:23] Production.INFO: ==6985== Releasing lock... [2025-02-22 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:11:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:12:06 [end_date_ymd] => 2025-02-22 15:12:06 [RateCDR] => 1 ) [2025-02-22 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:12:06' and `end` < '2025-02-22 15: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-02-22 15:12:18] Production.INFO: count ==2287 [2025-02-22 15:12:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:12:06 - End Time 2025-02-22 15:12:06 [2025-02-22 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533252', 'tblTempUsageDetail_20' ) start [2025-02-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533252', 'tblTempUsageDetail_20' ) end [2025-02-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533252', 'tblTempVendorCDR_20' ) start [2025-02-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533252', 'tblTempVendorCDR_20' ) end [2025-02-22 15:12:19] Production.INFO: ProcessCDR(1,14533252,1,1,2) [2025-02-22 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533252', 'tblTempUsageDetail_20' ) start [2025-02-22 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533252', 'tblTempUsageDetail_20' ) end [2025-02-22 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:12:24] Production.INFO: ==7137== Releasing lock... [2025-02-22 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:12:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:13:05 [end_date_ymd] => 2025-02-22 15:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:13:05' and `end` < '2025-02-22 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-02-22 15:13:17] Production.INFO: count ==2282 [2025-02-22 15:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:13:05 - End Time 2025-02-22 15:13:05 [2025-02-22 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533257', 'tblTempUsageDetail_20' ) start [2025-02-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533257', 'tblTempUsageDetail_20' ) end [2025-02-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533257', 'tblTempVendorCDR_20' ) start [2025-02-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533257', 'tblTempVendorCDR_20' ) end [2025-02-22 15:13:18] Production.INFO: ProcessCDR(1,14533257,1,1,2) [2025-02-22 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533257', 'tblTempUsageDetail_20' ) start [2025-02-22 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533257', 'tblTempUsageDetail_20' ) end [2025-02-22 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:13:22] Production.INFO: ==7206== Releasing lock... [2025-02-22 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:13:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:14:06 [end_date_ymd] => 2025-02-22 15:14:06 [RateCDR] => 1 ) [2025-02-22 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:14:06' and `end` < '2025-02-22 15: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-02-22 15:14:18] Production.INFO: count ==2276 [2025-02-22 15:14:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:14:06 - End Time 2025-02-22 15:14:06 [2025-02-22 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533262', 'tblTempUsageDetail_20' ) start [2025-02-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533262', 'tblTempUsageDetail_20' ) end [2025-02-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533262', 'tblTempVendorCDR_20' ) start [2025-02-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533262', 'tblTempVendorCDR_20' ) end [2025-02-22 15:14:19] Production.INFO: ProcessCDR(1,14533262,1,1,2) [2025-02-22 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533262', 'tblTempUsageDetail_20' ) start [2025-02-22 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533262', 'tblTempUsageDetail_20' ) end [2025-02-22 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:14:24] Production.INFO: ==7279== Releasing lock... [2025-02-22 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:14:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:15:06 [end_date_ymd] => 2025-02-22 15:15:06 [RateCDR] => 1 ) [2025-02-22 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:15:06' and `end` < '2025-02-22 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:15:18] Production.INFO: count ==2261 [2025-02-22 15:15:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:15:06 - End Time 2025-02-22 15:15:06 [2025-02-22 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533267', 'tblTempUsageDetail_20' ) start [2025-02-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533267', 'tblTempUsageDetail_20' ) end [2025-02-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533267', 'tblTempVendorCDR_20' ) start [2025-02-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533267', 'tblTempVendorCDR_20' ) end [2025-02-22 15:15:19] Production.INFO: ProcessCDR(1,14533267,1,1,2) [2025-02-22 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533267', 'tblTempUsageDetail_20' ) start [2025-02-22 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533267', 'tblTempUsageDetail_20' ) end [2025-02-22 15:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:15:24] Production.INFO: ==7431== Releasing lock... [2025-02-22 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:15:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:16:06 [end_date_ymd] => 2025-02-22 15:16:06 [RateCDR] => 1 ) [2025-02-22 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:16:06' and `end` < '2025-02-22 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:16:18] Production.INFO: count ==2258 [2025-02-22 15:16:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:16:06 - End Time 2025-02-22 15:16:06 [2025-02-22 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533272', 'tblTempUsageDetail_20' ) start [2025-02-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533272', 'tblTempUsageDetail_20' ) end [2025-02-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533272', 'tblTempVendorCDR_20' ) start [2025-02-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533272', 'tblTempVendorCDR_20' ) end [2025-02-22 15:16:19] Production.INFO: ProcessCDR(1,14533272,1,1,2) [2025-02-22 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533272', 'tblTempUsageDetail_20' ) start [2025-02-22 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533272', 'tblTempUsageDetail_20' ) end [2025-02-22 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:16:24] Production.INFO: ==7504== Releasing lock... [2025-02-22 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:16:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:17:06 [end_date_ymd] => 2025-02-22 15:17:06 [RateCDR] => 1 ) [2025-02-22 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:17:06' and `end` < '2025-02-22 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:17:18] Production.INFO: count ==2259 [2025-02-22 15:17:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:17:06 - End Time 2025-02-22 15:17:06 [2025-02-22 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533277', 'tblTempUsageDetail_20' ) start [2025-02-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533277', 'tblTempUsageDetail_20' ) end [2025-02-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533277', 'tblTempVendorCDR_20' ) start [2025-02-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533277', 'tblTempVendorCDR_20' ) end [2025-02-22 15:17:19] Production.INFO: ProcessCDR(1,14533277,1,1,2) [2025-02-22 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533277', 'tblTempUsageDetail_20' ) start [2025-02-22 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533277', 'tblTempUsageDetail_20' ) end [2025-02-22 15:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:17:24] Production.INFO: ==7580== Releasing lock... [2025-02-22 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:17:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:18:06 [end_date_ymd] => 2025-02-22 15:18:06 [RateCDR] => 1 ) [2025-02-22 15:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:18:06' and `end` < '2025-02-22 15:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:18:18] Production.INFO: count ==2266 [2025-02-22 15:18:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:18:06 - End Time 2025-02-22 15:18:06 [2025-02-22 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533282', 'tblTempUsageDetail_20' ) start [2025-02-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533282', 'tblTempUsageDetail_20' ) end [2025-02-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533282', 'tblTempVendorCDR_20' ) start [2025-02-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533282', 'tblTempVendorCDR_20' ) end [2025-02-22 15:18:19] Production.INFO: ProcessCDR(1,14533282,1,1,2) [2025-02-22 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533282', 'tblTempUsageDetail_20' ) start [2025-02-22 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533282', 'tblTempUsageDetail_20' ) end [2025-02-22 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:18:24] Production.INFO: ==7690== Releasing lock... [2025-02-22 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:18:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:19:05 [end_date_ymd] => 2025-02-22 15:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:19:05' and `end` < '2025-02-22 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-02-22 15:19:17] Production.INFO: count ==2249 [2025-02-22 15:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:19:05 - End Time 2025-02-22 15:19:05 [2025-02-22 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533287', 'tblTempUsageDetail_20' ) start [2025-02-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533287', 'tblTempUsageDetail_20' ) end [2025-02-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533287', 'tblTempVendorCDR_20' ) start [2025-02-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533287', 'tblTempVendorCDR_20' ) end [2025-02-22 15:19:18] Production.INFO: ProcessCDR(1,14533287,1,1,2) [2025-02-22 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533287', 'tblTempUsageDetail_20' ) start [2025-02-22 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533287', 'tblTempUsageDetail_20' ) end [2025-02-22 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:19:22] Production.INFO: ==7769== Releasing lock... [2025-02-22 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:19:22] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:20:06 [end_date_ymd] => 2025-02-22 15:20:06 [RateCDR] => 1 ) [2025-02-22 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:20:06' and `end` < '2025-02-22 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:20:19] Production.INFO: count ==2244 [2025-02-22 15:20:20] Production.ERROR: pbx CDR StartTime 2025-02-22 12:20:06 - End Time 2025-02-22 15:20:06 [2025-02-22 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533292', 'tblTempUsageDetail_20' ) start [2025-02-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533292', 'tblTempUsageDetail_20' ) end [2025-02-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533292', 'tblTempVendorCDR_20' ) start [2025-02-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533292', 'tblTempVendorCDR_20' ) end [2025-02-22 15:20:20] Production.INFO: ProcessCDR(1,14533292,1,1,2) [2025-02-22 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533292', 'tblTempUsageDetail_20' ) start [2025-02-22 15:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533292', 'tblTempUsageDetail_20' ) end [2025-02-22 15:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:20:25] Production.INFO: ==7844== Releasing lock... [2025-02-22 15:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:20:25] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:21:05 [end_date_ymd] => 2025-02-22 15:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:21:05' and `end` < '2025-02-22 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-02-22 15:21:17] Production.INFO: count ==2276 [2025-02-22 15:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:21:05 - End Time 2025-02-22 15:21:05 [2025-02-22 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533298', 'tblTempUsageDetail_20' ) start [2025-02-22 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533298', 'tblTempUsageDetail_20' ) end [2025-02-22 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533298', 'tblTempVendorCDR_20' ) start [2025-02-22 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533298', 'tblTempVendorCDR_20' ) end [2025-02-22 15:21:18] Production.INFO: ProcessCDR(1,14533298,1,1,2) [2025-02-22 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533298', 'tblTempUsageDetail_20' ) start [2025-02-22 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533298', 'tblTempUsageDetail_20' ) end [2025-02-22 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:21:23] Production.INFO: ==7920== Releasing lock... [2025-02-22 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:22:06 [end_date_ymd] => 2025-02-22 15:22:06 [RateCDR] => 1 ) [2025-02-22 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:22:06' and `end` < '2025-02-22 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:22:18] Production.INFO: count ==2273 [2025-02-22 15:22:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:22:06 - End Time 2025-02-22 15:22:06 [2025-02-22 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533303', 'tblTempUsageDetail_20' ) start [2025-02-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533303', 'tblTempUsageDetail_20' ) end [2025-02-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533303', 'tblTempVendorCDR_20' ) start [2025-02-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533303', 'tblTempVendorCDR_20' ) end [2025-02-22 15:22:19] Production.INFO: ProcessCDR(1,14533303,1,1,2) [2025-02-22 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533303', 'tblTempUsageDetail_20' ) start [2025-02-22 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533303', 'tblTempUsageDetail_20' ) end [2025-02-22 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:22:24] Production.INFO: ==7992== Releasing lock... [2025-02-22 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:22:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:23:06 [end_date_ymd] => 2025-02-22 15:23:06 [RateCDR] => 1 ) [2025-02-22 15:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:23:06' and `end` < '2025-02-22 15:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:23:18] Production.INFO: count ==2260 [2025-02-22 15:23:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:23:06 - End Time 2025-02-22 15:23:06 [2025-02-22 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533308', 'tblTempUsageDetail_20' ) start [2025-02-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533308', 'tblTempUsageDetail_20' ) end [2025-02-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533308', 'tblTempVendorCDR_20' ) start [2025-02-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533308', 'tblTempVendorCDR_20' ) end [2025-02-22 15:23:19] Production.INFO: ProcessCDR(1,14533308,1,1,2) [2025-02-22 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533308', 'tblTempUsageDetail_20' ) start [2025-02-22 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533308', 'tblTempUsageDetail_20' ) end [2025-02-22 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:23:24] Production.INFO: ==8065== Releasing lock... [2025-02-22 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:23:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:24:06 [end_date_ymd] => 2025-02-22 15:24:06 [RateCDR] => 1 ) [2025-02-22 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:24:06' and `end` < '2025-02-22 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:24:19] Production.INFO: count ==2265 [2025-02-22 15:24:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:24:06 - End Time 2025-02-22 15:24:06 [2025-02-22 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533313', 'tblTempUsageDetail_20' ) start [2025-02-22 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533313', 'tblTempUsageDetail_20' ) end [2025-02-22 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533313', 'tblTempVendorCDR_20' ) start [2025-02-22 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533313', 'tblTempVendorCDR_20' ) end [2025-02-22 15:24:20] Production.INFO: ProcessCDR(1,14533313,1,1,2) [2025-02-22 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533313', 'tblTempUsageDetail_20' ) start [2025-02-22 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533313', 'tblTempUsageDetail_20' ) end [2025-02-22 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:24:23] Production.INFO: ==8137== Releasing lock... [2025-02-22 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:24:23] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:25:06 [end_date_ymd] => 2025-02-22 15:25:06 [RateCDR] => 1 ) [2025-02-22 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:25:06' and `end` < '2025-02-22 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:25:18] Production.INFO: count ==2277 [2025-02-22 15:25:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:25:06 - End Time 2025-02-22 15:25:06 [2025-02-22 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533318', 'tblTempUsageDetail_20' ) start [2025-02-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533318', 'tblTempUsageDetail_20' ) end [2025-02-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533318', 'tblTempVendorCDR_20' ) start [2025-02-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533318', 'tblTempVendorCDR_20' ) end [2025-02-22 15:25:19] Production.INFO: ProcessCDR(1,14533318,1,1,2) [2025-02-22 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533318', 'tblTempUsageDetail_20' ) start [2025-02-22 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533318', 'tblTempUsageDetail_20' ) end [2025-02-22 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:25:23] Production.INFO: ==8211== Releasing lock... [2025-02-22 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:25:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:26:05 [end_date_ymd] => 2025-02-22 15:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:26:05' and `end` < '2025-02-22 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-02-22 15:26:17] Production.INFO: count ==2265 [2025-02-22 15:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:26:05 - End Time 2025-02-22 15:26:05 [2025-02-22 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533323', 'tblTempUsageDetail_20' ) start [2025-02-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533323', 'tblTempUsageDetail_20' ) end [2025-02-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533323', 'tblTempVendorCDR_20' ) start [2025-02-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533323', 'tblTempVendorCDR_20' ) end [2025-02-22 15:26:18] Production.INFO: ProcessCDR(1,14533323,1,1,2) [2025-02-22 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533323', 'tblTempUsageDetail_20' ) start [2025-02-22 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533323', 'tblTempUsageDetail_20' ) end [2025-02-22 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:26:23] Production.INFO: ==8286== Releasing lock... [2025-02-22 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:26:23] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:27:05 [end_date_ymd] => 2025-02-22 15:27:05 [RateCDR] => 1 ) [2025-02-22 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:27:05' and `end` < '2025-02-22 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:27:17] Production.INFO: count ==2194 [2025-02-22 15:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:27:05 - End Time 2025-02-22 15:27:05 [2025-02-22 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533328', 'tblTempUsageDetail_20' ) start [2025-02-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533328', 'tblTempUsageDetail_20' ) end [2025-02-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533328', 'tblTempVendorCDR_20' ) start [2025-02-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533328', 'tblTempVendorCDR_20' ) end [2025-02-22 15:27:18] Production.INFO: ProcessCDR(1,14533328,1,1,2) [2025-02-22 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533328', 'tblTempUsageDetail_20' ) start [2025-02-22 15:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533328', 'tblTempUsageDetail_20' ) end [2025-02-22 15:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:27:24] Production.INFO: ==8358== Releasing lock... [2025-02-22 15:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:27:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:28:05 [end_date_ymd] => 2025-02-22 15:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:28:05' and `end` < '2025-02-22 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-02-22 15:28:17] Production.INFO: count ==2191 [2025-02-22 15:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:28:05 - End Time 2025-02-22 15:28:05 [2025-02-22 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533333', 'tblTempUsageDetail_20' ) start [2025-02-22 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533333', 'tblTempUsageDetail_20' ) end [2025-02-22 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533333', 'tblTempVendorCDR_20' ) start [2025-02-22 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533333', 'tblTempVendorCDR_20' ) end [2025-02-22 15:28:18] Production.INFO: ProcessCDR(1,14533333,1,1,2) [2025-02-22 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533333', 'tblTempUsageDetail_20' ) start [2025-02-22 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533333', 'tblTempUsageDetail_20' ) end [2025-02-22 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:28:22] Production.INFO: ==8432== Releasing lock... [2025-02-22 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:28:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:29:05 [end_date_ymd] => 2025-02-22 15:29:05 [RateCDR] => 1 ) [2025-02-22 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:29:05' and `end` < '2025-02-22 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-02-22 15:29:18] Production.INFO: count ==2177 [2025-02-22 15:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:29:05 - End Time 2025-02-22 15:29:05 [2025-02-22 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533338', 'tblTempUsageDetail_20' ) start [2025-02-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533338', 'tblTempUsageDetail_20' ) end [2025-02-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533338', 'tblTempVendorCDR_20' ) start [2025-02-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533338', 'tblTempVendorCDR_20' ) end [2025-02-22 15:29:19] Production.INFO: ProcessCDR(1,14533338,1,1,2) [2025-02-22 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533338', 'tblTempUsageDetail_20' ) start [2025-02-22 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533338', 'tblTempUsageDetail_20' ) end [2025-02-22 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:29:22] Production.INFO: ==8501== Releasing lock... [2025-02-22 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:29:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:30:07 [end_date_ymd] => 2025-02-22 15:30:07 [RateCDR] => 1 ) [2025-02-22 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:30:07' and `end` < '2025-02-22 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:30:19] Production.INFO: count ==2175 [2025-02-22 15:30:20] Production.ERROR: pbx CDR StartTime 2025-02-22 12:30:07 - End Time 2025-02-22 15:30:07 [2025-02-22 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533343', 'tblTempUsageDetail_20' ) start [2025-02-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533343', 'tblTempUsageDetail_20' ) end [2025-02-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533343', 'tblTempVendorCDR_20' ) start [2025-02-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533343', 'tblTempVendorCDR_20' ) end [2025-02-22 15:30:20] Production.INFO: ProcessCDR(1,14533343,1,1,2) [2025-02-22 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533343', 'tblTempUsageDetail_20' ) start [2025-02-22 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533343', 'tblTempUsageDetail_20' ) end [2025-02-22 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:30:25] Production.INFO: ==8577== Releasing lock... [2025-02-22 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:30:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:31:05 [end_date_ymd] => 2025-02-22 15:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:31:05' and `end` < '2025-02-22 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-02-22 15:31:17] Production.INFO: count ==2198 [2025-02-22 15:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:31:05 - End Time 2025-02-22 15:31:05 [2025-02-22 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533349', 'tblTempUsageDetail_20' ) start [2025-02-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533349', 'tblTempUsageDetail_20' ) end [2025-02-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533349', 'tblTempVendorCDR_20' ) start [2025-02-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533349', 'tblTempVendorCDR_20' ) end [2025-02-22 15:31:18] Production.INFO: ProcessCDR(1,14533349,1,1,2) [2025-02-22 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533349', 'tblTempUsageDetail_20' ) start [2025-02-22 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533349', 'tblTempUsageDetail_20' ) end [2025-02-22 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:31:24] Production.INFO: ==8656== Releasing lock... [2025-02-22 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:31:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:32:06 [end_date_ymd] => 2025-02-22 15:32:06 [RateCDR] => 1 ) [2025-02-22 15: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-02-22 12:32:06' and `end` < '2025-02-22 15: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-02-22 15:32:18] Production.INFO: count ==2200 [2025-02-22 15:32:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:32:06 - End Time 2025-02-22 15:32:06 [2025-02-22 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533354', 'tblTempUsageDetail_20' ) start [2025-02-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533354', 'tblTempUsageDetail_20' ) end [2025-02-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533354', 'tblTempVendorCDR_20' ) start [2025-02-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533354', 'tblTempVendorCDR_20' ) end [2025-02-22 15:32:19] Production.INFO: ProcessCDR(1,14533354,1,1,2) [2025-02-22 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533354', 'tblTempUsageDetail_20' ) start [2025-02-22 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533354', 'tblTempUsageDetail_20' ) end [2025-02-22 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:32:24] Production.INFO: ==8729== Releasing lock... [2025-02-22 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:32:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:33:05 [end_date_ymd] => 2025-02-22 15:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:33:05' and `end` < '2025-02-22 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-02-22 15:33:17] Production.INFO: count ==2196 [2025-02-22 15:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:33:05 - End Time 2025-02-22 15:33:05 [2025-02-22 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533359', 'tblTempUsageDetail_20' ) start [2025-02-22 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533359', 'tblTempUsageDetail_20' ) end [2025-02-22 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533359', 'tblTempVendorCDR_20' ) start [2025-02-22 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533359', 'tblTempVendorCDR_20' ) end [2025-02-22 15:33:18] Production.INFO: ProcessCDR(1,14533359,1,1,2) [2025-02-22 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533359', 'tblTempUsageDetail_20' ) start [2025-02-22 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533359', 'tblTempUsageDetail_20' ) end [2025-02-22 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:33:23] Production.INFO: ==8800== Releasing lock... [2025-02-22 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:33:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:34:06 [end_date_ymd] => 2025-02-22 15:34:06 [RateCDR] => 1 ) [2025-02-22 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:34:06' and `end` < '2025-02-22 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:34:18] Production.INFO: count ==2248 [2025-02-22 15:34:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:34:06 - End Time 2025-02-22 15:34:06 [2025-02-22 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533364', 'tblTempUsageDetail_20' ) start [2025-02-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533364', 'tblTempUsageDetail_20' ) end [2025-02-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533364', 'tblTempVendorCDR_20' ) start [2025-02-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533364', 'tblTempVendorCDR_20' ) end [2025-02-22 15:34:19] Production.INFO: ProcessCDR(1,14533364,1,1,2) [2025-02-22 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533364', 'tblTempUsageDetail_20' ) start [2025-02-22 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533364', 'tblTempUsageDetail_20' ) end [2025-02-22 15:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:34:24] Production.INFO: ==8912== Releasing lock... [2025-02-22 15:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:34:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:35:05 [end_date_ymd] => 2025-02-22 15:35:05 [RateCDR] => 1 ) [2025-02-22 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:35:05' and `end` < '2025-02-22 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:35:17] Production.INFO: count ==2246 [2025-02-22 15:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:35:05 - End Time 2025-02-22 15:35:05 [2025-02-22 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533369', 'tblTempUsageDetail_20' ) start [2025-02-22 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533369', 'tblTempUsageDetail_20' ) end [2025-02-22 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533369', 'tblTempVendorCDR_20' ) start [2025-02-22 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533369', 'tblTempVendorCDR_20' ) end [2025-02-22 15:35:18] Production.INFO: ProcessCDR(1,14533369,1,1,2) [2025-02-22 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533369', 'tblTempUsageDetail_20' ) start [2025-02-22 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533369', 'tblTempUsageDetail_20' ) end [2025-02-22 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:35:22] Production.INFO: ==9006== Releasing lock... [2025-02-22 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:35:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:36:06 [end_date_ymd] => 2025-02-22 15:36:06 [RateCDR] => 1 ) [2025-02-22 15: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-02-22 12:36:06' and `end` < '2025-02-22 15: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-02-22 15:36:18] Production.INFO: count ==2256 [2025-02-22 15:36:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:36:06 - End Time 2025-02-22 15:36:06 [2025-02-22 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533374', 'tblTempUsageDetail_20' ) start [2025-02-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533374', 'tblTempUsageDetail_20' ) end [2025-02-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533374', 'tblTempVendorCDR_20' ) start [2025-02-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533374', 'tblTempVendorCDR_20' ) end [2025-02-22 15:36:19] Production.INFO: ProcessCDR(1,14533374,1,1,2) [2025-02-22 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533374', 'tblTempUsageDetail_20' ) start [2025-02-22 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533374', 'tblTempUsageDetail_20' ) end [2025-02-22 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:36:24] Production.INFO: ==9080== Releasing lock... [2025-02-22 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:36:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:37:05 [end_date_ymd] => 2025-02-22 15:37:05 [RateCDR] => 1 ) [2025-02-22 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:37:05' and `end` < '2025-02-22 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:37:17] Production.INFO: count ==2230 [2025-02-22 15:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:37:05 - End Time 2025-02-22 15:37:05 [2025-02-22 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533379', 'tblTempUsageDetail_20' ) start [2025-02-22 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533379', 'tblTempUsageDetail_20' ) end [2025-02-22 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533379', 'tblTempVendorCDR_20' ) start [2025-02-22 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533379', 'tblTempVendorCDR_20' ) end [2025-02-22 15:37:18] Production.INFO: ProcessCDR(1,14533379,1,1,2) [2025-02-22 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533379', 'tblTempUsageDetail_20' ) start [2025-02-22 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533379', 'tblTempUsageDetail_20' ) end [2025-02-22 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:37:23] Production.INFO: ==9154== Releasing lock... [2025-02-22 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:37:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:38:06 [end_date_ymd] => 2025-02-22 15:38:06 [RateCDR] => 1 ) [2025-02-22 15: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-02-22 12:38:06' and `end` < '2025-02-22 15: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-02-22 15:38:18] Production.INFO: count ==2226 [2025-02-22 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:38:06 - End Time 2025-02-22 15:38:06 [2025-02-22 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533384', 'tblTempUsageDetail_20' ) start [2025-02-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533384', 'tblTempUsageDetail_20' ) end [2025-02-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533384', 'tblTempVendorCDR_20' ) start [2025-02-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533384', 'tblTempVendorCDR_20' ) end [2025-02-22 15:38:19] Production.INFO: ProcessCDR(1,14533384,1,1,2) [2025-02-22 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533384', 'tblTempUsageDetail_20' ) start [2025-02-22 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533384', 'tblTempUsageDetail_20' ) end [2025-02-22 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:38:22] Production.INFO: ==9234== Releasing lock... [2025-02-22 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:38:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:39:05 [end_date_ymd] => 2025-02-22 15:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:39:05' and `end` < '2025-02-22 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-02-22 15:39:17] Production.INFO: count ==2232 [2025-02-22 15:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:39:05 - End Time 2025-02-22 15:39:05 [2025-02-22 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533389', 'tblTempUsageDetail_20' ) start [2025-02-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533389', 'tblTempUsageDetail_20' ) end [2025-02-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533389', 'tblTempVendorCDR_20' ) start [2025-02-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533389', 'tblTempVendorCDR_20' ) end [2025-02-22 15:39:18] Production.INFO: ProcessCDR(1,14533389,1,1,2) [2025-02-22 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533389', 'tblTempUsageDetail_20' ) start [2025-02-22 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533389', 'tblTempUsageDetail_20' ) end [2025-02-22 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:39:22] Production.INFO: ==9303== Releasing lock... [2025-02-22 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:39:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:40:07 [end_date_ymd] => 2025-02-22 15:40:07 [RateCDR] => 1 ) [2025-02-22 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:40:07' and `end` < '2025-02-22 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:40:19] Production.INFO: count ==2230 [2025-02-22 15:40:20] Production.ERROR: pbx CDR StartTime 2025-02-22 12:40:07 - End Time 2025-02-22 15:40:07 [2025-02-22 15:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533395', 'tblTempUsageDetail_20' ) start [2025-02-22 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533395', 'tblTempUsageDetail_20' ) end [2025-02-22 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533395', 'tblTempVendorCDR_20' ) start [2025-02-22 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533395', 'tblTempVendorCDR_20' ) end [2025-02-22 15:40:20] Production.INFO: ProcessCDR(1,14533395,1,1,2) [2025-02-22 15:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533395', 'tblTempUsageDetail_20' ) start [2025-02-22 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533395', 'tblTempUsageDetail_20' ) end [2025-02-22 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:40:24] Production.INFO: ==9449== Releasing lock... [2025-02-22 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:40:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:41:05 [end_date_ymd] => 2025-02-22 15:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:41:05' and `end` < '2025-02-22 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-02-22 15:41:17] Production.INFO: count ==2242 [2025-02-22 15:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:41:05 - End Time 2025-02-22 15:41:05 [2025-02-22 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533400', 'tblTempUsageDetail_20' ) start [2025-02-22 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533400', 'tblTempUsageDetail_20' ) end [2025-02-22 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533400', 'tblTempVendorCDR_20' ) start [2025-02-22 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533400', 'tblTempVendorCDR_20' ) end [2025-02-22 15:41:18] Production.INFO: ProcessCDR(1,14533400,1,1,2) [2025-02-22 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533400', 'tblTempUsageDetail_20' ) start [2025-02-22 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533400', 'tblTempUsageDetail_20' ) end [2025-02-22 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:41:24] Production.INFO: ==9525== Releasing lock... [2025-02-22 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:41:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:42:06 [end_date_ymd] => 2025-02-22 15:42:06 [RateCDR] => 1 ) [2025-02-22 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:42:06' and `end` < '2025-02-22 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:42:18] Production.INFO: count ==2292 [2025-02-22 15:42:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:42:06 - End Time 2025-02-22 15:42:06 [2025-02-22 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533405', 'tblTempUsageDetail_20' ) start [2025-02-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533405', 'tblTempUsageDetail_20' ) end [2025-02-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533405', 'tblTempVendorCDR_20' ) start [2025-02-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533405', 'tblTempVendorCDR_20' ) end [2025-02-22 15:42:19] Production.INFO: ProcessCDR(1,14533405,1,1,2) [2025-02-22 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533405', 'tblTempUsageDetail_20' ) start [2025-02-22 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533405', 'tblTempUsageDetail_20' ) end [2025-02-22 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:42:23] Production.INFO: ==9600== Releasing lock... [2025-02-22 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:42:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:43:05 [end_date_ymd] => 2025-02-22 15:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:43:05' and `end` < '2025-02-22 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-02-22 15:43:17] Production.INFO: count ==2288 [2025-02-22 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:43:05 - End Time 2025-02-22 15:43:05 [2025-02-22 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533410', 'tblTempUsageDetail_20' ) start [2025-02-22 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533410', 'tblTempUsageDetail_20' ) end [2025-02-22 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533410', 'tblTempVendorCDR_20' ) start [2025-02-22 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533410', 'tblTempVendorCDR_20' ) end [2025-02-22 15:43:18] Production.INFO: ProcessCDR(1,14533410,1,1,2) [2025-02-22 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533410', 'tblTempUsageDetail_20' ) start [2025-02-22 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533410', 'tblTempUsageDetail_20' ) end [2025-02-22 15:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:43:24] Production.INFO: ==9669== Releasing lock... [2025-02-22 15:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:43:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:44:06 [end_date_ymd] => 2025-02-22 15:44:06 [RateCDR] => 1 ) [2025-02-22 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:44:06' and `end` < '2025-02-22 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:44:18] Production.INFO: count ==2289 [2025-02-22 15:44:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:44:06 - End Time 2025-02-22 15:44:06 [2025-02-22 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533415', 'tblTempUsageDetail_20' ) start [2025-02-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533415', 'tblTempUsageDetail_20' ) end [2025-02-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533415', 'tblTempVendorCDR_20' ) start [2025-02-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533415', 'tblTempVendorCDR_20' ) end [2025-02-22 15:44:19] Production.INFO: ProcessCDR(1,14533415,1,1,2) [2025-02-22 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533415', 'tblTempUsageDetail_20' ) start [2025-02-22 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533415', 'tblTempUsageDetail_20' ) end [2025-02-22 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:44:24] Production.INFO: ==9744== Releasing lock... [2025-02-22 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:44:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:45:05 [end_date_ymd] => 2025-02-22 15:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:45:05' and `end` < '2025-02-22 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-02-22 15:45:18] Production.INFO: count ==2290 [2025-02-22 15:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:45:05 - End Time 2025-02-22 15:45:05 [2025-02-22 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533420', 'tblTempUsageDetail_20' ) start [2025-02-22 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533420', 'tblTempUsageDetail_20' ) end [2025-02-22 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533420', 'tblTempVendorCDR_20' ) start [2025-02-22 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533420', 'tblTempVendorCDR_20' ) end [2025-02-22 15:45:19] Production.INFO: ProcessCDR(1,14533420,1,1,2) [2025-02-22 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533420', 'tblTempUsageDetail_20' ) start [2025-02-22 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533420', 'tblTempUsageDetail_20' ) end [2025-02-22 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:45:22] Production.INFO: ==9818== Releasing lock... [2025-02-22 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:45:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:46:06 [end_date_ymd] => 2025-02-22 15:46:06 [RateCDR] => 1 ) [2025-02-22 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:46:06' and `end` < '2025-02-22 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:46:18] Production.INFO: count ==2279 [2025-02-22 15:46:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:46:06 - End Time 2025-02-22 15:46:06 [2025-02-22 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533425', 'tblTempUsageDetail_20' ) start [2025-02-22 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533425', 'tblTempUsageDetail_20' ) end [2025-02-22 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533425', 'tblTempVendorCDR_20' ) start [2025-02-22 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533425', 'tblTempVendorCDR_20' ) end [2025-02-22 15:46:19] Production.INFO: ProcessCDR(1,14533425,1,1,2) [2025-02-22 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533425', 'tblTempUsageDetail_20' ) start [2025-02-22 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533425', 'tblTempUsageDetail_20' ) end [2025-02-22 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:46:23] Production.INFO: ==9893== Releasing lock... [2025-02-22 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:46:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:47:06 [end_date_ymd] => 2025-02-22 15:47:06 [RateCDR] => 1 ) [2025-02-22 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:47:06' and `end` < '2025-02-22 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:47:18] Production.INFO: count ==2288 [2025-02-22 15:47:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:47:06 - End Time 2025-02-22 15:47:06 [2025-02-22 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533430', 'tblTempUsageDetail_20' ) start [2025-02-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533430', 'tblTempUsageDetail_20' ) end [2025-02-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533430', 'tblTempVendorCDR_20' ) start [2025-02-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533430', 'tblTempVendorCDR_20' ) end [2025-02-22 15:47:19] Production.INFO: ProcessCDR(1,14533430,1,1,2) [2025-02-22 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533430', 'tblTempUsageDetail_20' ) start [2025-02-22 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533430', 'tblTempUsageDetail_20' ) end [2025-02-22 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:47:25] Production.INFO: ==9966== Releasing lock... [2025-02-22 15:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:47:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:48:06 [end_date_ymd] => 2025-02-22 15:48:06 [RateCDR] => 1 ) [2025-02-22 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:48:06' and `end` < '2025-02-22 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:48:18] Production.INFO: count ==2280 [2025-02-22 15:48:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:48:06 - End Time 2025-02-22 15:48:06 [2025-02-22 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533435', 'tblTempUsageDetail_20' ) start [2025-02-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533435', 'tblTempUsageDetail_20' ) end [2025-02-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533435', 'tblTempVendorCDR_20' ) start [2025-02-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533435', 'tblTempVendorCDR_20' ) end [2025-02-22 15:48:19] Production.INFO: ProcessCDR(1,14533435,1,1,2) [2025-02-22 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533435', 'tblTempUsageDetail_20' ) start [2025-02-22 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533435', 'tblTempUsageDetail_20' ) end [2025-02-22 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:48:24] Production.INFO: ==10035== Releasing lock... [2025-02-22 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:48:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:49:05 [end_date_ymd] => 2025-02-22 15:49:05 [RateCDR] => 1 ) [2025-02-22 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:49:05' and `end` < '2025-02-22 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:49:17] Production.INFO: count ==2284 [2025-02-22 15:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:49:05 - End Time 2025-02-22 15:49:05 [2025-02-22 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533440', 'tblTempUsageDetail_20' ) start [2025-02-22 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533440', 'tblTempUsageDetail_20' ) end [2025-02-22 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533440', 'tblTempVendorCDR_20' ) start [2025-02-22 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533440', 'tblTempVendorCDR_20' ) end [2025-02-22 15:49:18] Production.INFO: ProcessCDR(1,14533440,1,1,2) [2025-02-22 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533440', 'tblTempUsageDetail_20' ) start [2025-02-22 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533440', 'tblTempUsageDetail_20' ) end [2025-02-22 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:49:21] Production.INFO: ==10147== Releasing lock... [2025-02-22 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:49:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:50:06 [end_date_ymd] => 2025-02-22 15:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:50:06' and `end` < '2025-02-22 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-02-22 15:50:18] Production.INFO: count ==2276 [2025-02-22 15:50:20] Production.ERROR: pbx CDR StartTime 2025-02-22 12:50:06 - End Time 2025-02-22 15:50:06 [2025-02-22 15:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533446', 'tblTempUsageDetail_20' ) start [2025-02-22 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533446', 'tblTempUsageDetail_20' ) end [2025-02-22 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533446', 'tblTempVendorCDR_20' ) start [2025-02-22 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533446', 'tblTempVendorCDR_20' ) end [2025-02-22 15:50:20] Production.INFO: ProcessCDR(1,14533446,1,1,2) [2025-02-22 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533446', 'tblTempUsageDetail_20' ) start [2025-02-22 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533446', 'tblTempUsageDetail_20' ) end [2025-02-22 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:50:25] Production.INFO: ==10219== Releasing lock... [2025-02-22 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:50:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:51:05 [end_date_ymd] => 2025-02-22 15:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:51:05' and `end` < '2025-02-22 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-02-22 15:51:17] Production.INFO: count ==2302 [2025-02-22 15:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:51:05 - End Time 2025-02-22 15:51:05 [2025-02-22 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533451', 'tblTempUsageDetail_20' ) start [2025-02-22 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533451', 'tblTempUsageDetail_20' ) end [2025-02-22 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533451', 'tblTempVendorCDR_20' ) start [2025-02-22 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533451', 'tblTempVendorCDR_20' ) end [2025-02-22 15:51:18] Production.INFO: ProcessCDR(1,14533451,1,1,2) [2025-02-22 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533451', 'tblTempUsageDetail_20' ) start [2025-02-22 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533451', 'tblTempUsageDetail_20' ) end [2025-02-22 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:51:23] Production.INFO: ==10294== Releasing lock... [2025-02-22 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:51:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:52:05 [end_date_ymd] => 2025-02-22 15:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:52:05' and `end` < '2025-02-22 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-02-22 15:52:18] Production.INFO: count ==2305 [2025-02-22 15:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:52:05 - End Time 2025-02-22 15:52:05 [2025-02-22 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533456', 'tblTempUsageDetail_20' ) start [2025-02-22 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533456', 'tblTempUsageDetail_20' ) end [2025-02-22 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533456', 'tblTempVendorCDR_20' ) start [2025-02-22 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533456', 'tblTempVendorCDR_20' ) end [2025-02-22 15:52:18] Production.INFO: ProcessCDR(1,14533456,1,1,2) [2025-02-22 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533456', 'tblTempUsageDetail_20' ) start [2025-02-22 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533456', 'tblTempUsageDetail_20' ) end [2025-02-22 15:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:52:24] Production.INFO: ==10367== Releasing lock... [2025-02-22 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:52:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:53:05 [end_date_ymd] => 2025-02-22 15:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:53:05' and `end` < '2025-02-22 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-02-22 15:53:17] Production.INFO: count ==2290 [2025-02-22 15:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:53:05 - End Time 2025-02-22 15:53:05 [2025-02-22 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533461', 'tblTempUsageDetail_20' ) start [2025-02-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533461', 'tblTempUsageDetail_20' ) end [2025-02-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533461', 'tblTempVendorCDR_20' ) start [2025-02-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533461', 'tblTempVendorCDR_20' ) end [2025-02-22 15:53:18] Production.INFO: ProcessCDR(1,14533461,1,1,2) [2025-02-22 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533461', 'tblTempUsageDetail_20' ) start [2025-02-22 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533461', 'tblTempUsageDetail_20' ) end [2025-02-22 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:53:22] Production.INFO: ==10439== Releasing lock... [2025-02-22 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:53:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-22 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:54:05 [end_date_ymd] => 2025-02-22 15:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:54:05' and `end` < '2025-02-22 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-02-22 15:54:17] Production.INFO: count ==2273 [2025-02-22 15:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:54:05 - End Time 2025-02-22 15:54:05 [2025-02-22 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533466', 'tblTempUsageDetail_20' ) start [2025-02-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533466', 'tblTempUsageDetail_20' ) end [2025-02-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533466', 'tblTempVendorCDR_20' ) start [2025-02-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533466', 'tblTempVendorCDR_20' ) end [2025-02-22 15:54:18] Production.INFO: ProcessCDR(1,14533466,1,1,2) [2025-02-22 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533466', 'tblTempUsageDetail_20' ) start [2025-02-22 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533466', 'tblTempUsageDetail_20' ) end [2025-02-22 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:54:23] Production.INFO: ==10509== Releasing lock... [2025-02-22 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:54:23] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:55:05 [end_date_ymd] => 2025-02-22 15:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:55:05' and `end` < '2025-02-22 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-02-22 15:55:17] Production.INFO: count ==2265 [2025-02-22 15:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:55:05 - End Time 2025-02-22 15:55:05 [2025-02-22 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533471', 'tblTempUsageDetail_20' ) start [2025-02-22 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533471', 'tblTempUsageDetail_20' ) end [2025-02-22 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533471', 'tblTempVendorCDR_20' ) start [2025-02-22 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533471', 'tblTempVendorCDR_20' ) end [2025-02-22 15:55:18] Production.INFO: ProcessCDR(1,14533471,1,1,2) [2025-02-22 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533471', 'tblTempUsageDetail_20' ) start [2025-02-22 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533471', 'tblTempUsageDetail_20' ) end [2025-02-22 15:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:55:22] Production.INFO: ==10579== Releasing lock... [2025-02-22 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:55:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:56:06 [end_date_ymd] => 2025-02-22 15:56:06 [RateCDR] => 1 ) [2025-02-22 15: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-02-22 12:56:06' and `end` < '2025-02-22 15: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-02-22 15:56:18] Production.INFO: count ==2267 [2025-02-22 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-22 12:56:06 - End Time 2025-02-22 15:56:06 [2025-02-22 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533476', 'tblTempUsageDetail_20' ) start [2025-02-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533476', 'tblTempUsageDetail_20' ) end [2025-02-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533476', 'tblTempVendorCDR_20' ) start [2025-02-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533476', 'tblTempVendorCDR_20' ) end [2025-02-22 15:56:19] Production.INFO: ProcessCDR(1,14533476,1,1,2) [2025-02-22 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533476', 'tblTempUsageDetail_20' ) start [2025-02-22 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533476', 'tblTempUsageDetail_20' ) end [2025-02-22 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:56:22] Production.INFO: ==10651== Releasing lock... [2025-02-22 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:56:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:57:05 [end_date_ymd] => 2025-02-22 15:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:57:05' and `end` < '2025-02-22 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-02-22 15:57:17] Production.INFO: count ==2253 [2025-02-22 15:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:57:05 - End Time 2025-02-22 15:57:05 [2025-02-22 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533481', 'tblTempUsageDetail_20' ) start [2025-02-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533481', 'tblTempUsageDetail_20' ) end [2025-02-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533481', 'tblTempVendorCDR_20' ) start [2025-02-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533481', 'tblTempVendorCDR_20' ) end [2025-02-22 15:57:18] Production.INFO: ProcessCDR(1,14533481,1,1,2) [2025-02-22 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533481', 'tblTempUsageDetail_20' ) start [2025-02-22 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533481', 'tblTempUsageDetail_20' ) end [2025-02-22 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:57:23] Production.INFO: ==10728== Releasing lock... [2025-02-22 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:57:23] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:58:06 [end_date_ymd] => 2025-02-22 15:58:06 [RateCDR] => 1 ) [2025-02-22 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 12:58:06' and `end` < '2025-02-22 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 15:58:18] Production.INFO: count ==2230 [2025-02-22 15:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:58:06 - End Time 2025-02-22 15:58:06 [2025-02-22 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533486', 'tblTempUsageDetail_20' ) start [2025-02-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533486', 'tblTempUsageDetail_20' ) end [2025-02-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533486', 'tblTempVendorCDR_20' ) start [2025-02-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533486', 'tblTempVendorCDR_20' ) end [2025-02-22 15:58:19] Production.INFO: ProcessCDR(1,14533486,1,1,2) [2025-02-22 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533486', 'tblTempUsageDetail_20' ) start [2025-02-22 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533486', 'tblTempUsageDetail_20' ) end [2025-02-22 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:58:24] Production.INFO: ==10803== Releasing lock... [2025-02-22 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:58:24] Production.INFO: 45 MB #Memory Used# [2025-02-22 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 12:59:05 [end_date_ymd] => 2025-02-22 15:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 12:59:05' and `end` < '2025-02-22 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-02-22 15:59:17] Production.INFO: count ==2232 [2025-02-22 15:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 12:59:05 - End Time 2025-02-22 15:59:05 [2025-02-22 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533491', 'tblTempUsageDetail_20' ) start [2025-02-22 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533491', 'tblTempUsageDetail_20' ) end [2025-02-22 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533491', 'tblTempVendorCDR_20' ) start [2025-02-22 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533491', 'tblTempVendorCDR_20' ) end [2025-02-22 15:59:18] Production.INFO: ProcessCDR(1,14533491,1,1,2) [2025-02-22 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533491', 'tblTempUsageDetail_20' ) start [2025-02-22 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533491', 'tblTempUsageDetail_20' ) end [2025-02-22 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 15:59:21] Production.INFO: ==10872== Releasing lock... [2025-02-22 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 15:59:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:00:07 [end_date_ymd] => 2025-02-22 16:00:07 [RateCDR] => 1 ) [2025-02-22 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:00:07' and `end` < '2025-02-22 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:00:19] Production.INFO: count ==2225 [2025-02-22 16:00:20] Production.ERROR: pbx CDR StartTime 2025-02-22 13:00:07 - End Time 2025-02-22 16:00:07 [2025-02-22 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533497', 'tblTempUsageDetail_20' ) start [2025-02-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533497', 'tblTempUsageDetail_20' ) end [2025-02-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533497', 'tblTempVendorCDR_20' ) start [2025-02-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533497', 'tblTempVendorCDR_20' ) end [2025-02-22 16:00:20] Production.INFO: ProcessCDR(1,14533497,1,1,2) [2025-02-22 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533497', 'tblTempUsageDetail_20' ) start [2025-02-22 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533497', 'tblTempUsageDetail_20' ) end [2025-02-22 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:00:25] Production.INFO: ==10946== Releasing lock... [2025-02-22 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:00:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:01:05 [end_date_ymd] => 2025-02-22 16:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:01:05' and `end` < '2025-02-22 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-02-22 16:01:17] Production.INFO: count ==2217 [2025-02-22 16:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:01:05 - End Time 2025-02-22 16:01:05 [2025-02-22 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533502', 'tblTempUsageDetail_20' ) start [2025-02-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533502', 'tblTempUsageDetail_20' ) end [2025-02-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533502', 'tblTempVendorCDR_20' ) start [2025-02-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533502', 'tblTempVendorCDR_20' ) end [2025-02-22 16:01:18] Production.INFO: ProcessCDR(1,14533502,1,1,2) [2025-02-22 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533502', 'tblTempUsageDetail_20' ) start [2025-02-22 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533502', 'tblTempUsageDetail_20' ) end [2025-02-22 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:01:23] Production.INFO: ==11035== Releasing lock... [2025-02-22 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:01:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:02:06 [end_date_ymd] => 2025-02-22 16:02:06 [RateCDR] => 1 ) [2025-02-22 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:02:06' and `end` < '2025-02-22 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:02:18] Production.INFO: count ==2234 [2025-02-22 16:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:02:06 - End Time 2025-02-22 16:02:06 [2025-02-22 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533507', 'tblTempUsageDetail_20' ) start [2025-02-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533507', 'tblTempUsageDetail_20' ) end [2025-02-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533507', 'tblTempVendorCDR_20' ) start [2025-02-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533507', 'tblTempVendorCDR_20' ) end [2025-02-22 16:02:19] Production.INFO: ProcessCDR(1,14533507,1,1,2) [2025-02-22 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533507', 'tblTempUsageDetail_20' ) start [2025-02-22 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533507', 'tblTempUsageDetail_20' ) end [2025-02-22 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:02:22] Production.INFO: ==11112== Releasing lock... [2025-02-22 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:02:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:03:05 [end_date_ymd] => 2025-02-22 16:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:03:05' and `end` < '2025-02-22 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-02-22 16:03:17] Production.INFO: count ==2232 [2025-02-22 16:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:03:05 - End Time 2025-02-22 16:03:05 [2025-02-22 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533512', 'tblTempUsageDetail_20' ) start [2025-02-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533512', 'tblTempUsageDetail_20' ) end [2025-02-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533512', 'tblTempVendorCDR_20' ) start [2025-02-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533512', 'tblTempVendorCDR_20' ) end [2025-02-22 16:03:18] Production.INFO: ProcessCDR(1,14533512,1,1,2) [2025-02-22 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533512', 'tblTempUsageDetail_20' ) start [2025-02-22 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533512', 'tblTempUsageDetail_20' ) end [2025-02-22 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:03:21] Production.INFO: ==11195== Releasing lock... [2025-02-22 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:03:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:04:05 [end_date_ymd] => 2025-02-22 16:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:04:05' and `end` < '2025-02-22 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-02-22 16:04:17] Production.INFO: count ==2226 [2025-02-22 16:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:04:05 - End Time 2025-02-22 16:04:05 [2025-02-22 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533517', 'tblTempUsageDetail_20' ) start [2025-02-22 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533517', 'tblTempUsageDetail_20' ) end [2025-02-22 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533517', 'tblTempVendorCDR_20' ) start [2025-02-22 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533517', 'tblTempVendorCDR_20' ) end [2025-02-22 16:04:18] Production.INFO: ProcessCDR(1,14533517,1,1,2) [2025-02-22 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533517', 'tblTempUsageDetail_20' ) start [2025-02-22 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533517', 'tblTempUsageDetail_20' ) end [2025-02-22 16:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:04:21] Production.INFO: ==11323== Releasing lock... [2025-02-22 16:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:04:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:05:05 [end_date_ymd] => 2025-02-22 16:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:05:05' and `end` < '2025-02-22 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-02-22 16:05:17] Production.INFO: count ==2220 [2025-02-22 16:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:05:05 - End Time 2025-02-22 16:05:05 [2025-02-22 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533522', 'tblTempUsageDetail_20' ) start [2025-02-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533522', 'tblTempUsageDetail_20' ) end [2025-02-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533522', 'tblTempVendorCDR_20' ) start [2025-02-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533522', 'tblTempVendorCDR_20' ) end [2025-02-22 16:05:18] Production.INFO: ProcessCDR(1,14533522,1,1,2) [2025-02-22 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533522', 'tblTempUsageDetail_20' ) start [2025-02-22 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533522', 'tblTempUsageDetail_20' ) end [2025-02-22 16:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:05:21] Production.INFO: ==11410== Releasing lock... [2025-02-22 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:05:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:06:05 [end_date_ymd] => 2025-02-22 16:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:06:05' and `end` < '2025-02-22 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-02-22 16:06:17] Production.INFO: count ==2210 [2025-02-22 16:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:06:05 - End Time 2025-02-22 16:06:05 [2025-02-22 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533526', 'tblTempUsageDetail_20' ) start [2025-02-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533526', 'tblTempUsageDetail_20' ) end [2025-02-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533526', 'tblTempVendorCDR_20' ) start [2025-02-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533526', 'tblTempVendorCDR_20' ) end [2025-02-22 16:06:18] Production.INFO: ProcessCDR(1,14533526,1,1,2) [2025-02-22 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533526', 'tblTempUsageDetail_20' ) start [2025-02-22 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533526', 'tblTempUsageDetail_20' ) end [2025-02-22 16:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:06:21] Production.INFO: ==11502== Releasing lock... [2025-02-22 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:06:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:07:05 [end_date_ymd] => 2025-02-22 16:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:07:05' and `end` < '2025-02-22 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-02-22 16:07:17] Production.INFO: count ==2198 [2025-02-22 16:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:07:05 - End Time 2025-02-22 16:07:05 [2025-02-22 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533532', 'tblTempUsageDetail_20' ) start [2025-02-22 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533532', 'tblTempUsageDetail_20' ) end [2025-02-22 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533532', 'tblTempVendorCDR_20' ) start [2025-02-22 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533532', 'tblTempVendorCDR_20' ) end [2025-02-22 16:07:18] Production.INFO: ProcessCDR(1,14533532,1,1,2) [2025-02-22 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533532', 'tblTempUsageDetail_20' ) start [2025-02-22 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533532', 'tblTempUsageDetail_20' ) end [2025-02-22 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:07:23] Production.INFO: ==11590== Releasing lock... [2025-02-22 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:07:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:08:06 [end_date_ymd] => 2025-02-22 16:08:06 [RateCDR] => 1 ) [2025-02-22 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:08:06' and `end` < '2025-02-22 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:08:18] Production.INFO: count ==2189 [2025-02-22 16:08:19] Production.ERROR: pbx CDR StartTime 2025-02-22 13:08:06 - End Time 2025-02-22 16:08:06 [2025-02-22 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533537', 'tblTempUsageDetail_20' ) start [2025-02-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533537', 'tblTempUsageDetail_20' ) end [2025-02-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533537', 'tblTempVendorCDR_20' ) start [2025-02-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533537', 'tblTempVendorCDR_20' ) end [2025-02-22 16:08:19] Production.INFO: ProcessCDR(1,14533537,1,1,2) [2025-02-22 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533537', 'tblTempUsageDetail_20' ) start [2025-02-22 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533537', 'tblTempUsageDetail_20' ) end [2025-02-22 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:08:23] Production.INFO: ==11688== Releasing lock... [2025-02-22 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:08:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:09:05 [end_date_ymd] => 2025-02-22 16:09:05 [RateCDR] => 1 ) [2025-02-22 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:09:05' and `end` < '2025-02-22 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:09:17] Production.INFO: count ==2190 [2025-02-22 16:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:09:05 - End Time 2025-02-22 16:09:05 [2025-02-22 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533542', 'tblTempUsageDetail_20' ) start [2025-02-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533542', 'tblTempUsageDetail_20' ) end [2025-02-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533542', 'tblTempVendorCDR_20' ) start [2025-02-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533542', 'tblTempVendorCDR_20' ) end [2025-02-22 16:09:18] Production.INFO: ProcessCDR(1,14533542,1,1,2) [2025-02-22 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533542', 'tblTempUsageDetail_20' ) start [2025-02-22 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533542', 'tblTempUsageDetail_20' ) end [2025-02-22 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:09:23] Production.INFO: ==11781== Releasing lock... [2025-02-22 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:09:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:10:06 [end_date_ymd] => 2025-02-22 16:10:06 [RateCDR] => 1 ) [2025-02-22 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:10:06' and `end` < '2025-02-22 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:10:18] Production.INFO: count ==2190 [2025-02-22 16:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:10:06 - End Time 2025-02-22 16:10:06 [2025-02-22 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533548', 'tblTempUsageDetail_20' ) start [2025-02-22 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533548', 'tblTempUsageDetail_20' ) end [2025-02-22 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533548', 'tblTempVendorCDR_20' ) start [2025-02-22 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533548', 'tblTempVendorCDR_20' ) end [2025-02-22 16:10:19] Production.INFO: ProcessCDR(1,14533548,1,1,2) [2025-02-22 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533548', 'tblTempUsageDetail_20' ) start [2025-02-22 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533548', 'tblTempUsageDetail_20' ) end [2025-02-22 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:10:23] Production.INFO: ==11872== Releasing lock... [2025-02-22 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:10:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:11:05 [end_date_ymd] => 2025-02-22 16:11:05 [RateCDR] => 1 ) [2025-02-22 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:11:05' and `end` < '2025-02-22 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:11:17] Production.INFO: count ==2192 [2025-02-22 16:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:11:05 - End Time 2025-02-22 16:11:05 [2025-02-22 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533553', 'tblTempUsageDetail_20' ) start [2025-02-22 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533553', 'tblTempUsageDetail_20' ) end [2025-02-22 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533553', 'tblTempVendorCDR_20' ) start [2025-02-22 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533553', 'tblTempVendorCDR_20' ) end [2025-02-22 16:11:18] Production.INFO: ProcessCDR(1,14533553,1,1,2) [2025-02-22 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533553', 'tblTempUsageDetail_20' ) start [2025-02-22 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533553', 'tblTempUsageDetail_20' ) end [2025-02-22 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:11:23] Production.INFO: ==11961== Releasing lock... [2025-02-22 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:11:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:12:05 [end_date_ymd] => 2025-02-22 16:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:12:05' and `end` < '2025-02-22 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-02-22 16:12:17] Production.INFO: count ==2181 [2025-02-22 16:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:12:05 - End Time 2025-02-22 16:12:05 [2025-02-22 16:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533558', 'tblTempUsageDetail_20' ) start [2025-02-22 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533558', 'tblTempUsageDetail_20' ) end [2025-02-22 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533558', 'tblTempVendorCDR_20' ) start [2025-02-22 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533558', 'tblTempVendorCDR_20' ) end [2025-02-22 16:12:17] Production.INFO: ProcessCDR(1,14533558,1,1,2) [2025-02-22 16:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533558', 'tblTempUsageDetail_20' ) start [2025-02-22 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533558', 'tblTempUsageDetail_20' ) end [2025-02-22 16:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:12:22] Production.INFO: ==12049== Releasing lock... [2025-02-22 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:13:05 [end_date_ymd] => 2025-02-22 16:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:13:05' and `end` < '2025-02-22 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-02-22 16:13:18] Production.INFO: count ==2170 [2025-02-22 16:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:13:05 - End Time 2025-02-22 16:13:05 [2025-02-22 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533563', 'tblTempUsageDetail_20' ) start [2025-02-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533563', 'tblTempUsageDetail_20' ) end [2025-02-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533563', 'tblTempVendorCDR_20' ) start [2025-02-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533563', 'tblTempVendorCDR_20' ) end [2025-02-22 16:13:18] Production.INFO: ProcessCDR(1,14533563,1,1,2) [2025-02-22 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533563', 'tblTempUsageDetail_20' ) start [2025-02-22 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533563', 'tblTempUsageDetail_20' ) end [2025-02-22 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:13:23] Production.INFO: ==12136== Releasing lock... [2025-02-22 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:13:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:14:05 [end_date_ymd] => 2025-02-22 16:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:14:05' and `end` < '2025-02-22 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-02-22 16:14:17] Production.INFO: count ==2166 [2025-02-22 16:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:14:05 - End Time 2025-02-22 16:14:05 [2025-02-22 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533568', 'tblTempUsageDetail_20' ) start [2025-02-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533568', 'tblTempUsageDetail_20' ) end [2025-02-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533568', 'tblTempVendorCDR_20' ) start [2025-02-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533568', 'tblTempVendorCDR_20' ) end [2025-02-22 16:14:18] Production.INFO: ProcessCDR(1,14533568,1,1,2) [2025-02-22 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533568', 'tblTempUsageDetail_20' ) start [2025-02-22 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533568', 'tblTempUsageDetail_20' ) end [2025-02-22 16:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:14:22] Production.INFO: ==12221== Releasing lock... [2025-02-22 16:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:14:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:15:05 [end_date_ymd] => 2025-02-22 16:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:15:05' and `end` < '2025-02-22 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-02-22 16:15:17] Production.INFO: count ==2150 [2025-02-22 16:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:15:05 - End Time 2025-02-22 16:15:05 [2025-02-22 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533573', 'tblTempUsageDetail_20' ) start [2025-02-22 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533573', 'tblTempUsageDetail_20' ) end [2025-02-22 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533573', 'tblTempVendorCDR_20' ) start [2025-02-22 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533573', 'tblTempVendorCDR_20' ) end [2025-02-22 16:15:18] Production.INFO: ProcessCDR(1,14533573,1,1,2) [2025-02-22 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533573', 'tblTempUsageDetail_20' ) start [2025-02-22 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533573', 'tblTempUsageDetail_20' ) end [2025-02-22 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:15:23] Production.INFO: ==12315== Releasing lock... [2025-02-22 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:15:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:16:05 [end_date_ymd] => 2025-02-22 16:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:16:05' and `end` < '2025-02-22 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-02-22 16:16:17] Production.INFO: count ==2149 [2025-02-22 16:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:16:05 - End Time 2025-02-22 16:16:05 [2025-02-22 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533578', 'tblTempUsageDetail_20' ) start [2025-02-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533578', 'tblTempUsageDetail_20' ) end [2025-02-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533578', 'tblTempVendorCDR_20' ) start [2025-02-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533578', 'tblTempVendorCDR_20' ) end [2025-02-22 16:16:18] Production.INFO: ProcessCDR(1,14533578,1,1,2) [2025-02-22 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533578', 'tblTempUsageDetail_20' ) start [2025-02-22 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533578', 'tblTempUsageDetail_20' ) end [2025-02-22 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:16:22] Production.INFO: ==12411== Releasing lock... [2025-02-22 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:16:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:17:05 [end_date_ymd] => 2025-02-22 16:17:05 [RateCDR] => 1 ) [2025-02-22 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:17:05' and `end` < '2025-02-22 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:17:18] Production.INFO: count ==2135 [2025-02-22 16:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:17:05 - End Time 2025-02-22 16:17:05 [2025-02-22 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533583', 'tblTempUsageDetail_20' ) start [2025-02-22 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533583', 'tblTempUsageDetail_20' ) end [2025-02-22 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533583', 'tblTempVendorCDR_20' ) start [2025-02-22 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533583', 'tblTempVendorCDR_20' ) end [2025-02-22 16:17:18] Production.INFO: ProcessCDR(1,14533583,1,1,2) [2025-02-22 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533583', 'tblTempUsageDetail_20' ) start [2025-02-22 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533583', 'tblTempUsageDetail_20' ) end [2025-02-22 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:17:23] Production.INFO: ==12515== Releasing lock... [2025-02-22 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:17:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:18:05 [end_date_ymd] => 2025-02-22 16:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:18:05' and `end` < '2025-02-22 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-02-22 16:18:18] Production.INFO: count ==2128 [2025-02-22 16:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:18:05 - End Time 2025-02-22 16:18:05 [2025-02-22 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533588', 'tblTempUsageDetail_20' ) start [2025-02-22 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533588', 'tblTempUsageDetail_20' ) end [2025-02-22 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533588', 'tblTempVendorCDR_20' ) start [2025-02-22 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533588', 'tblTempVendorCDR_20' ) end [2025-02-22 16:18:18] Production.INFO: ProcessCDR(1,14533588,1,1,2) [2025-02-22 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533588', 'tblTempUsageDetail_20' ) start [2025-02-22 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533588', 'tblTempUsageDetail_20' ) end [2025-02-22 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:18:23] Production.INFO: ==12625== Releasing lock... [2025-02-22 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:18:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:19:05 [end_date_ymd] => 2025-02-22 16:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:19:05' and `end` < '2025-02-22 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-02-22 16:19:17] Production.INFO: count ==2120 [2025-02-22 16:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:19:05 - End Time 2025-02-22 16:19:05 [2025-02-22 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533593', 'tblTempUsageDetail_20' ) start [2025-02-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533593', 'tblTempUsageDetail_20' ) end [2025-02-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533593', 'tblTempVendorCDR_20' ) start [2025-02-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533593', 'tblTempVendorCDR_20' ) end [2025-02-22 16:19:17] Production.INFO: ProcessCDR(1,14533593,1,1,2) [2025-02-22 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533593', 'tblTempUsageDetail_20' ) start [2025-02-22 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533593', 'tblTempUsageDetail_20' ) end [2025-02-22 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:19:22] Production.INFO: ==12723== Releasing lock... [2025-02-22 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:19:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:20:06 [end_date_ymd] => 2025-02-22 16:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:20:06' and `end` < '2025-02-22 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-02-22 16:20:18] Production.INFO: count ==2112 [2025-02-22 16:20:19] Production.ERROR: pbx CDR StartTime 2025-02-22 13:20:06 - End Time 2025-02-22 16:20:06 [2025-02-22 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533599', 'tblTempUsageDetail_20' ) start [2025-02-22 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533599', 'tblTempUsageDetail_20' ) end [2025-02-22 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533599', 'tblTempVendorCDR_20' ) start [2025-02-22 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533599', 'tblTempVendorCDR_20' ) end [2025-02-22 16:20:19] Production.INFO: ProcessCDR(1,14533599,1,1,2) [2025-02-22 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533599', 'tblTempUsageDetail_20' ) start [2025-02-22 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533599', 'tblTempUsageDetail_20' ) end [2025-02-22 16:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:20:22] Production.INFO: ==12863== Releasing lock... [2025-02-22 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:20:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:21:05 [end_date_ymd] => 2025-02-22 16:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:21:05' and `end` < '2025-02-22 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-02-22 16:21:17] Production.INFO: count ==2084 [2025-02-22 16:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:21:05 - End Time 2025-02-22 16:21:05 [2025-02-22 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533604', 'tblTempUsageDetail_20' ) start [2025-02-22 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533604', 'tblTempUsageDetail_20' ) end [2025-02-22 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533604', 'tblTempVendorCDR_20' ) start [2025-02-22 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533604', 'tblTempVendorCDR_20' ) end [2025-02-22 16:21:18] Production.INFO: ProcessCDR(1,14533604,1,1,2) [2025-02-22 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533604', 'tblTempUsageDetail_20' ) start [2025-02-22 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533604', 'tblTempUsageDetail_20' ) end [2025-02-22 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:21:23] Production.INFO: ==12974== Releasing lock... [2025-02-22 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:21:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:22:05 [end_date_ymd] => 2025-02-22 16:22:05 [RateCDR] => 1 ) [2025-02-22 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:22:05' and `end` < '2025-02-22 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:22:17] Production.INFO: count ==2086 [2025-02-22 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:22:05 - End Time 2025-02-22 16:22:05 [2025-02-22 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533609', 'tblTempUsageDetail_20' ) start [2025-02-22 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533609', 'tblTempUsageDetail_20' ) end [2025-02-22 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533609', 'tblTempVendorCDR_20' ) start [2025-02-22 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533609', 'tblTempVendorCDR_20' ) end [2025-02-22 16:22:18] Production.INFO: ProcessCDR(1,14533609,1,1,2) [2025-02-22 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533609', 'tblTempUsageDetail_20' ) start [2025-02-22 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533609', 'tblTempUsageDetail_20' ) end [2025-02-22 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:22:23] Production.INFO: ==13093== Releasing lock... [2025-02-22 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:22:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:23:05 [end_date_ymd] => 2025-02-22 16:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:23:05' and `end` < '2025-02-22 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-02-22 16:23:17] Production.INFO: count ==2083 [2025-02-22 16:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:23:05 - End Time 2025-02-22 16:23:05 [2025-02-22 16:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533614', 'tblTempUsageDetail_20' ) start [2025-02-22 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533614', 'tblTempUsageDetail_20' ) end [2025-02-22 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533614', 'tblTempVendorCDR_20' ) start [2025-02-22 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533614', 'tblTempVendorCDR_20' ) end [2025-02-22 16:23:17] Production.INFO: ProcessCDR(1,14533614,1,1,2) [2025-02-22 16:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533614', 'tblTempUsageDetail_20' ) start [2025-02-22 16:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533614', 'tblTempUsageDetail_20' ) end [2025-02-22 16:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:23:20] Production.INFO: ==13219== Releasing lock... [2025-02-22 16:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:23:20] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:24:05 [end_date_ymd] => 2025-02-22 16:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:24:05' and `end` < '2025-02-22 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-02-22 16:24:17] Production.INFO: count ==2082 [2025-02-22 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:24:05 - End Time 2025-02-22 16:24:05 [2025-02-22 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533619', 'tblTempUsageDetail_20' ) start [2025-02-22 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533619', 'tblTempUsageDetail_20' ) end [2025-02-22 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533619', 'tblTempVendorCDR_20' ) start [2025-02-22 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533619', 'tblTempVendorCDR_20' ) end [2025-02-22 16:24:18] Production.INFO: ProcessCDR(1,14533619,1,1,2) [2025-02-22 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533619', 'tblTempUsageDetail_20' ) start [2025-02-22 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533619', 'tblTempUsageDetail_20' ) end [2025-02-22 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:24:23] Production.INFO: ==13299== Releasing lock... [2025-02-22 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:24:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:25:05 [end_date_ymd] => 2025-02-22 16:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:25:05' and `end` < '2025-02-22 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-02-22 16:25:17] Production.INFO: count ==2084 [2025-02-22 16:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:25:05 - End Time 2025-02-22 16:25:05 [2025-02-22 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533624', 'tblTempUsageDetail_20' ) start [2025-02-22 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533624', 'tblTempUsageDetail_20' ) end [2025-02-22 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533624', 'tblTempVendorCDR_20' ) start [2025-02-22 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533624', 'tblTempVendorCDR_20' ) end [2025-02-22 16:25:18] Production.INFO: ProcessCDR(1,14533624,1,1,2) [2025-02-22 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533624', 'tblTempUsageDetail_20' ) start [2025-02-22 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533624', 'tblTempUsageDetail_20' ) end [2025-02-22 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:25:22] Production.INFO: ==13370== Releasing lock... [2025-02-22 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:25:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:26:06 [end_date_ymd] => 2025-02-22 16:26:06 [RateCDR] => 1 ) [2025-02-22 16: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-02-22 13:26:06' and `end` < '2025-02-22 16: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-02-22 16:26:18] Production.INFO: count ==2083 [2025-02-22 16:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:26:06 - End Time 2025-02-22 16:26:06 [2025-02-22 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533629', 'tblTempUsageDetail_20' ) start [2025-02-22 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533629', 'tblTempUsageDetail_20' ) end [2025-02-22 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533629', 'tblTempVendorCDR_20' ) start [2025-02-22 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533629', 'tblTempVendorCDR_20' ) end [2025-02-22 16:26:18] Production.INFO: ProcessCDR(1,14533629,1,1,2) [2025-02-22 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533629', 'tblTempUsageDetail_20' ) start [2025-02-22 16:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533629', 'tblTempUsageDetail_20' ) end [2025-02-22 16:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:26:23] Production.INFO: ==13447== Releasing lock... [2025-02-22 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:26:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:27:05 [end_date_ymd] => 2025-02-22 16:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:27:05' and `end` < '2025-02-22 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-02-22 16:27:17] Production.INFO: count ==2085 [2025-02-22 16:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:27:05 - End Time 2025-02-22 16:27:05 [2025-02-22 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533634', 'tblTempUsageDetail_20' ) start [2025-02-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533634', 'tblTempUsageDetail_20' ) end [2025-02-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533634', 'tblTempVendorCDR_20' ) start [2025-02-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533634', 'tblTempVendorCDR_20' ) end [2025-02-22 16:27:17] Production.INFO: ProcessCDR(1,14533634,1,1,2) [2025-02-22 16:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533634', 'tblTempUsageDetail_20' ) start [2025-02-22 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533634', 'tblTempUsageDetail_20' ) end [2025-02-22 16:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:27:21] Production.INFO: ==13520== Releasing lock... [2025-02-22 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:27:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:28:05 [end_date_ymd] => 2025-02-22 16:28:05 [RateCDR] => 1 ) [2025-02-22 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:28:05' and `end` < '2025-02-22 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:28:17] Production.INFO: count ==2079 [2025-02-22 16:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:28:05 - End Time 2025-02-22 16:28:05 [2025-02-22 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533639', 'tblTempUsageDetail_20' ) start [2025-02-22 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533639', 'tblTempUsageDetail_20' ) end [2025-02-22 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533639', 'tblTempVendorCDR_20' ) start [2025-02-22 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533639', 'tblTempVendorCDR_20' ) end [2025-02-22 16:28:18] Production.INFO: ProcessCDR(1,14533639,1,1,2) [2025-02-22 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533639', 'tblTempUsageDetail_20' ) start [2025-02-22 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533639', 'tblTempUsageDetail_20' ) end [2025-02-22 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:28:23] Production.INFO: ==13598== Releasing lock... [2025-02-22 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:28:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:29:04 [end_date_ymd] => 2025-02-22 16:29:04 [RateCDR] => 1 ) [2025-02-22 16: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-02-22 13:29:04' and `end` < '2025-02-22 16: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-02-22 16:29:17] Production.INFO: count ==2053 [2025-02-22 16:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:29:04 - End Time 2025-02-22 16:29:04 [2025-02-22 16:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533644', 'tblTempUsageDetail_20' ) start [2025-02-22 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533644', 'tblTempUsageDetail_20' ) end [2025-02-22 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533644', 'tblTempVendorCDR_20' ) start [2025-02-22 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533644', 'tblTempVendorCDR_20' ) end [2025-02-22 16:29:18] Production.INFO: ProcessCDR(1,14533644,1,1,2) [2025-02-22 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533644', 'tblTempUsageDetail_20' ) start [2025-02-22 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533644', 'tblTempUsageDetail_20' ) end [2025-02-22 16:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:29:22] Production.INFO: ==13673== Releasing lock... [2025-02-22 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:29:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:30:06 [end_date_ymd] => 2025-02-22 16:30:06 [RateCDR] => 1 ) [2025-02-22 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:30:06' and `end` < '2025-02-22 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:30:18] Production.INFO: count ==2041 [2025-02-22 16:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 13:30:06 - End Time 2025-02-22 16:30:06 [2025-02-22 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533649', 'tblTempUsageDetail_20' ) start [2025-02-22 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533649', 'tblTempUsageDetail_20' ) end [2025-02-22 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533649', 'tblTempVendorCDR_20' ) start [2025-02-22 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533649', 'tblTempVendorCDR_20' ) end [2025-02-22 16:30:19] Production.INFO: ProcessCDR(1,14533649,1,1,2) [2025-02-22 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533649', 'tblTempUsageDetail_20' ) start [2025-02-22 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533649', 'tblTempUsageDetail_20' ) end [2025-02-22 16:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:30:22] Production.INFO: ==13763== Releasing lock... [2025-02-22 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:30:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:31:05 [end_date_ymd] => 2025-02-22 16:31:05 [RateCDR] => 1 ) [2025-02-22 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:31:05' and `end` < '2025-02-22 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:31:17] Production.INFO: count ==2059 [2025-02-22 16:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:31:05 - End Time 2025-02-22 16:31:05 [2025-02-22 16:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533655', 'tblTempUsageDetail_20' ) start [2025-02-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533655', 'tblTempUsageDetail_20' ) end [2025-02-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533655', 'tblTempVendorCDR_20' ) start [2025-02-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533655', 'tblTempVendorCDR_20' ) end [2025-02-22 16:31:17] Production.INFO: ProcessCDR(1,14533655,1,1,2) [2025-02-22 16:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533655', 'tblTempUsageDetail_20' ) start [2025-02-22 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533655', 'tblTempUsageDetail_20' ) end [2025-02-22 16:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:31:21] Production.INFO: ==13840== Releasing lock... [2025-02-22 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:31:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:32:05 [end_date_ymd] => 2025-02-22 16:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:32:05' and `end` < '2025-02-22 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-02-22 16:32:17] Production.INFO: count ==2047 [2025-02-22 16:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:32:05 - End Time 2025-02-22 16:32:05 [2025-02-22 16:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533660', 'tblTempUsageDetail_20' ) start [2025-02-22 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533660', 'tblTempUsageDetail_20' ) end [2025-02-22 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533660', 'tblTempVendorCDR_20' ) start [2025-02-22 16:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533660', 'tblTempVendorCDR_20' ) end [2025-02-22 16:32:17] Production.INFO: ProcessCDR(1,14533660,1,1,2) [2025-02-22 16:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533660', 'tblTempUsageDetail_20' ) start [2025-02-22 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533660', 'tblTempUsageDetail_20' ) end [2025-02-22 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:32:22] Production.INFO: ==13923== Releasing lock... [2025-02-22 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:32:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:33:04 [end_date_ymd] => 2025-02-22 16:33:04 [RateCDR] => 1 ) [2025-02-22 16: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-02-22 13:33:04' and `end` < '2025-02-22 16: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-02-22 16:33:17] Production.INFO: count ==2047 [2025-02-22 16:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:33:04 - End Time 2025-02-22 16:33:04 [2025-02-22 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533665', 'tblTempUsageDetail_20' ) start [2025-02-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533665', 'tblTempUsageDetail_20' ) end [2025-02-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533665', 'tblTempVendorCDR_20' ) start [2025-02-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533665', 'tblTempVendorCDR_20' ) end [2025-02-22 16:33:17] Production.INFO: ProcessCDR(1,14533665,1,1,2) [2025-02-22 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533665', 'tblTempUsageDetail_20' ) start [2025-02-22 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533665', 'tblTempUsageDetail_20' ) end [2025-02-22 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:33:22] Production.INFO: ==14002== Releasing lock... [2025-02-22 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:33:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:34:05 [end_date_ymd] => 2025-02-22 16:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:34:05' and `end` < '2025-02-22 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-02-22 16:34:17] Production.INFO: count ==2043 [2025-02-22 16:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:34:05 - End Time 2025-02-22 16:34:05 [2025-02-22 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533670', 'tblTempUsageDetail_20' ) start [2025-02-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533670', 'tblTempUsageDetail_20' ) end [2025-02-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533670', 'tblTempVendorCDR_20' ) start [2025-02-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533670', 'tblTempVendorCDR_20' ) end [2025-02-22 16:34:18] Production.INFO: ProcessCDR(1,14533670,1,1,2) [2025-02-22 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533670', 'tblTempUsageDetail_20' ) start [2025-02-22 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533670', 'tblTempUsageDetail_20' ) end [2025-02-22 16:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:34:23] Production.INFO: ==14081== Releasing lock... [2025-02-22 16:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:34:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:35:06 [end_date_ymd] => 2025-02-22 16:35:06 [RateCDR] => 1 ) [2025-02-22 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:35:06' and `end` < '2025-02-22 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:35:18] Production.INFO: count ==2029 [2025-02-22 16:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:35:06 - End Time 2025-02-22 16:35:06 [2025-02-22 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533675', 'tblTempUsageDetail_20' ) start [2025-02-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533675', 'tblTempUsageDetail_20' ) end [2025-02-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533675', 'tblTempVendorCDR_20' ) start [2025-02-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533675', 'tblTempVendorCDR_20' ) end [2025-02-22 16:35:18] Production.INFO: ProcessCDR(1,14533675,1,1,2) [2025-02-22 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533675', 'tblTempUsageDetail_20' ) start [2025-02-22 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533675', 'tblTempUsageDetail_20' ) end [2025-02-22 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:35:23] Production.INFO: ==14197== Releasing lock... [2025-02-22 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:35:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:36:05 [end_date_ymd] => 2025-02-22 16:36:05 [RateCDR] => 1 ) [2025-02-22 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:36:05' and `end` < '2025-02-22 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:36:17] Production.INFO: count ==2028 [2025-02-22 16:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:36:05 - End Time 2025-02-22 16:36:05 [2025-02-22 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533680', 'tblTempUsageDetail_20' ) start [2025-02-22 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533680', 'tblTempUsageDetail_20' ) end [2025-02-22 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533680', 'tblTempVendorCDR_20' ) start [2025-02-22 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533680', 'tblTempVendorCDR_20' ) end [2025-02-22 16:36:18] Production.INFO: ProcessCDR(1,14533680,1,1,2) [2025-02-22 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533680', 'tblTempUsageDetail_20' ) start [2025-02-22 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533680', 'tblTempUsageDetail_20' ) end [2025-02-22 16:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:36:21] Production.INFO: ==14282== Releasing lock... [2025-02-22 16:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:36:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:37:05 [end_date_ymd] => 2025-02-22 16:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:37:05' and `end` < '2025-02-22 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-02-22 16:37:18] Production.INFO: count ==2018 [2025-02-22 16:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:37:05 - End Time 2025-02-22 16:37:05 [2025-02-22 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533685', 'tblTempUsageDetail_20' ) start [2025-02-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533685', 'tblTempUsageDetail_20' ) end [2025-02-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533685', 'tblTempVendorCDR_20' ) start [2025-02-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533685', 'tblTempVendorCDR_20' ) end [2025-02-22 16:37:18] Production.INFO: ProcessCDR(1,14533685,1,1,2) [2025-02-22 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533685', 'tblTempUsageDetail_20' ) start [2025-02-22 16:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533685', 'tblTempUsageDetail_20' ) end [2025-02-22 16:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:37:21] Production.INFO: ==14361== Releasing lock... [2025-02-22 16:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:37:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:38:05 [end_date_ymd] => 2025-02-22 16:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:38:05' and `end` < '2025-02-22 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-02-22 16:38:17] Production.INFO: count ==2026 [2025-02-22 16:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:38:05 - End Time 2025-02-22 16:38:05 [2025-02-22 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533690', 'tblTempUsageDetail_20' ) start [2025-02-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533690', 'tblTempUsageDetail_20' ) end [2025-02-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533690', 'tblTempVendorCDR_20' ) start [2025-02-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533690', 'tblTempVendorCDR_20' ) end [2025-02-22 16:38:17] Production.INFO: ProcessCDR(1,14533690,1,1,2) [2025-02-22 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533690', 'tblTempUsageDetail_20' ) start [2025-02-22 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533690', 'tblTempUsageDetail_20' ) end [2025-02-22 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:38:23] Production.INFO: ==14439== Releasing lock... [2025-02-22 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:38:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:39:05 [end_date_ymd] => 2025-02-22 16:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:39:05' and `end` < '2025-02-22 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-02-22 16:39:18] Production.INFO: count ==2028 [2025-02-22 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:39:05 - End Time 2025-02-22 16:39:05 [2025-02-22 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533695', 'tblTempUsageDetail_20' ) start [2025-02-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533695', 'tblTempUsageDetail_20' ) end [2025-02-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533695', 'tblTempVendorCDR_20' ) start [2025-02-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533695', 'tblTempVendorCDR_20' ) end [2025-02-22 16:39:18] Production.INFO: ProcessCDR(1,14533695,1,1,2) [2025-02-22 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533695', 'tblTempUsageDetail_20' ) start [2025-02-22 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533695', 'tblTempUsageDetail_20' ) end [2025-02-22 16:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:39:24] Production.INFO: ==14520== Releasing lock... [2025-02-22 16:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:39:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:40:05 [end_date_ymd] => 2025-02-22 16:40:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:40:05' and `end` < '2025-02-22 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-02-22 16:40:18] Production.INFO: count ==2043 [2025-02-22 16:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:40:05 - End Time 2025-02-22 16:40:05 [2025-02-22 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533700', 'tblTempUsageDetail_20' ) start [2025-02-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533700', 'tblTempUsageDetail_20' ) end [2025-02-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533700', 'tblTempVendorCDR_20' ) start [2025-02-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533700', 'tblTempVendorCDR_20' ) end [2025-02-22 16:40:18] Production.INFO: ProcessCDR(1,14533700,1,1,2) [2025-02-22 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533700', 'tblTempUsageDetail_20' ) start [2025-02-22 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533700', 'tblTempUsageDetail_20' ) end [2025-02-22 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:40:23] Production.INFO: ==14603== Releasing lock... [2025-02-22 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:40:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:41:05 [end_date_ymd] => 2025-02-22 16:41:05 [RateCDR] => 1 ) [2025-02-22 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:41:05' and `end` < '2025-02-22 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:41:18] Production.INFO: count ==2092 [2025-02-22 16:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:41:05 - End Time 2025-02-22 16:41:05 [2025-02-22 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533706', 'tblTempUsageDetail_20' ) start [2025-02-22 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533706', 'tblTempUsageDetail_20' ) end [2025-02-22 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533706', 'tblTempVendorCDR_20' ) start [2025-02-22 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533706', 'tblTempVendorCDR_20' ) end [2025-02-22 16:41:18] Production.INFO: ProcessCDR(1,14533706,1,1,2) [2025-02-22 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533706', 'tblTempUsageDetail_20' ) start [2025-02-22 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533706', 'tblTempUsageDetail_20' ) end [2025-02-22 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:41:22] Production.INFO: ==14682== Releasing lock... [2025-02-22 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:41:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:42:05 [end_date_ymd] => 2025-02-22 16:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:42:05' and `end` < '2025-02-22 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-02-22 16:42:17] Production.INFO: count ==2107 [2025-02-22 16:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:42:05 - End Time 2025-02-22 16:42:05 [2025-02-22 16:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533711', 'tblTempUsageDetail_20' ) start [2025-02-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533711', 'tblTempUsageDetail_20' ) end [2025-02-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533711', 'tblTempVendorCDR_20' ) start [2025-02-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533711', 'tblTempVendorCDR_20' ) end [2025-02-22 16:42:17] Production.INFO: ProcessCDR(1,14533711,1,1,2) [2025-02-22 16:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533711', 'tblTempUsageDetail_20' ) start [2025-02-22 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533711', 'tblTempUsageDetail_20' ) end [2025-02-22 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:42:23] Production.INFO: ==14764== Releasing lock... [2025-02-22 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:42:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:43:05 [end_date_ymd] => 2025-02-22 16:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:43:05' and `end` < '2025-02-22 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-02-22 16:43:17] Production.INFO: count ==2107 [2025-02-22 16:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:43:05 - End Time 2025-02-22 16:43:05 [2025-02-22 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533716', 'tblTempUsageDetail_20' ) start [2025-02-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533716', 'tblTempUsageDetail_20' ) end [2025-02-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533716', 'tblTempVendorCDR_20' ) start [2025-02-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533716', 'tblTempVendorCDR_20' ) end [2025-02-22 16:43:18] Production.INFO: ProcessCDR(1,14533716,1,1,2) [2025-02-22 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533716', 'tblTempUsageDetail_20' ) start [2025-02-22 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533716', 'tblTempUsageDetail_20' ) end [2025-02-22 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:43:23] Production.INFO: ==14846== Releasing lock... [2025-02-22 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:43:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:44:06 [end_date_ymd] => 2025-02-22 16:44:06 [RateCDR] => 1 ) [2025-02-22 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:44:06' and `end` < '2025-02-22 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:44:18] Production.INFO: count ==2095 [2025-02-22 16:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:44:06 - End Time 2025-02-22 16:44:06 [2025-02-22 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533721', 'tblTempUsageDetail_20' ) start [2025-02-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533721', 'tblTempUsageDetail_20' ) end [2025-02-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533721', 'tblTempVendorCDR_20' ) start [2025-02-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533721', 'tblTempVendorCDR_20' ) end [2025-02-22 16:44:18] Production.INFO: ProcessCDR(1,14533721,1,1,2) [2025-02-22 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533721', 'tblTempUsageDetail_20' ) start [2025-02-22 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533721', 'tblTempUsageDetail_20' ) end [2025-02-22 16:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:44:22] Production.INFO: ==14927== Releasing lock... [2025-02-22 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:44:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:45:05 [end_date_ymd] => 2025-02-22 16:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:45:05' and `end` < '2025-02-22 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-02-22 16:45:17] Production.INFO: count ==2113 [2025-02-22 16:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:45:05 - End Time 2025-02-22 16:45:05 [2025-02-22 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533726', 'tblTempUsageDetail_20' ) start [2025-02-22 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533726', 'tblTempUsageDetail_20' ) end [2025-02-22 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533726', 'tblTempVendorCDR_20' ) start [2025-02-22 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533726', 'tblTempVendorCDR_20' ) end [2025-02-22 16:45:18] Production.INFO: ProcessCDR(1,14533726,1,1,2) [2025-02-22 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533726', 'tblTempUsageDetail_20' ) start [2025-02-22 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533726', 'tblTempUsageDetail_20' ) end [2025-02-22 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:45:21] Production.INFO: ==15015== Releasing lock... [2025-02-22 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:45:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:46:06 [end_date_ymd] => 2025-02-22 16:46:06 [RateCDR] => 1 ) [2025-02-22 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:46:06' and `end` < '2025-02-22 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:46:18] Production.INFO: count ==2127 [2025-02-22 16:46:19] Production.ERROR: pbx CDR StartTime 2025-02-22 13:46:06 - End Time 2025-02-22 16:46:06 [2025-02-22 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533731', 'tblTempUsageDetail_20' ) start [2025-02-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533731', 'tblTempUsageDetail_20' ) end [2025-02-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533731', 'tblTempVendorCDR_20' ) start [2025-02-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533731', 'tblTempVendorCDR_20' ) end [2025-02-22 16:46:19] Production.INFO: ProcessCDR(1,14533731,1,1,2) [2025-02-22 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533731', 'tblTempUsageDetail_20' ) start [2025-02-22 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533731', 'tblTempUsageDetail_20' ) end [2025-02-22 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:46:22] Production.INFO: ==15099== Releasing lock... [2025-02-22 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:46:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:47:05 [end_date_ymd] => 2025-02-22 16:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:47:05' and `end` < '2025-02-22 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-02-22 16:47:17] Production.INFO: count ==2121 [2025-02-22 16:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:47:05 - End Time 2025-02-22 16:47:05 [2025-02-22 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533736', 'tblTempUsageDetail_20' ) start [2025-02-22 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533736', 'tblTempUsageDetail_20' ) end [2025-02-22 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533736', 'tblTempVendorCDR_20' ) start [2025-02-22 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533736', 'tblTempVendorCDR_20' ) end [2025-02-22 16:47:18] Production.INFO: ProcessCDR(1,14533736,1,1,2) [2025-02-22 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533736', 'tblTempUsageDetail_20' ) start [2025-02-22 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533736', 'tblTempUsageDetail_20' ) end [2025-02-22 16:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:47:21] Production.INFO: ==15175== Releasing lock... [2025-02-22 16:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:47:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:48:05 [end_date_ymd] => 2025-02-22 16:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:48:05' and `end` < '2025-02-22 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-02-22 16:48:17] Production.INFO: count ==2111 [2025-02-22 16:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:48:05 - End Time 2025-02-22 16:48:05 [2025-02-22 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533741', 'tblTempUsageDetail_20' ) start [2025-02-22 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533741', 'tblTempUsageDetail_20' ) end [2025-02-22 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533741', 'tblTempVendorCDR_20' ) start [2025-02-22 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533741', 'tblTempVendorCDR_20' ) end [2025-02-22 16:48:18] Production.INFO: ProcessCDR(1,14533741,1,1,2) [2025-02-22 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533741', 'tblTempUsageDetail_20' ) start [2025-02-22 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533741', 'tblTempUsageDetail_20' ) end [2025-02-22 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:48:21] Production.INFO: ==15256== Releasing lock... [2025-02-22 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:48:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:49:05 [end_date_ymd] => 2025-02-22 16:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:49:05' and `end` < '2025-02-22 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-02-22 16:49:17] Production.INFO: count ==2111 [2025-02-22 16:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:49:05 - End Time 2025-02-22 16:49:05 [2025-02-22 16:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533746', 'tblTempUsageDetail_20' ) start [2025-02-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533746', 'tblTempUsageDetail_20' ) end [2025-02-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533746', 'tblTempVendorCDR_20' ) start [2025-02-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533746', 'tblTempVendorCDR_20' ) end [2025-02-22 16:49:17] Production.INFO: ProcessCDR(1,14533746,1,1,2) [2025-02-22 16:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533746', 'tblTempUsageDetail_20' ) start [2025-02-22 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533746', 'tblTempUsageDetail_20' ) end [2025-02-22 16:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:49:22] Production.INFO: ==15335== Releasing lock... [2025-02-22 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:49:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:50:07 [end_date_ymd] => 2025-02-22 16:50:07 [RateCDR] => 1 ) [2025-02-22 16:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:50:07' and `end` < '2025-02-22 16:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:50:19] Production.INFO: count ==2113 [2025-02-22 16:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 13:50:07 - End Time 2025-02-22 16:50:07 [2025-02-22 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533752', 'tblTempUsageDetail_20' ) start [2025-02-22 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533752', 'tblTempUsageDetail_20' ) end [2025-02-22 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533752', 'tblTempVendorCDR_20' ) start [2025-02-22 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533752', 'tblTempVendorCDR_20' ) end [2025-02-22 16:50:19] Production.INFO: ProcessCDR(1,14533752,1,1,2) [2025-02-22 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533752', 'tblTempUsageDetail_20' ) start [2025-02-22 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533752', 'tblTempUsageDetail_20' ) end [2025-02-22 16:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:50:24] Production.INFO: ==15413== Releasing lock... [2025-02-22 16:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:50:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:51:05 [end_date_ymd] => 2025-02-22 16:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:51:05' and `end` < '2025-02-22 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-02-22 16:51:17] Production.INFO: count ==2116 [2025-02-22 16:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:51:05 - End Time 2025-02-22 16:51:05 [2025-02-22 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533757', 'tblTempUsageDetail_20' ) start [2025-02-22 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533757', 'tblTempUsageDetail_20' ) end [2025-02-22 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533757', 'tblTempVendorCDR_20' ) start [2025-02-22 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533757', 'tblTempVendorCDR_20' ) end [2025-02-22 16:51:18] Production.INFO: ProcessCDR(1,14533757,1,1,2) [2025-02-22 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533757', 'tblTempUsageDetail_20' ) start [2025-02-22 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533757', 'tblTempUsageDetail_20' ) end [2025-02-22 16:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:51:21] Production.INFO: ==15535== Releasing lock... [2025-02-22 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:51:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:52:06 [end_date_ymd] => 2025-02-22 16:52:06 [RateCDR] => 1 ) [2025-02-22 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:52:06' and `end` < '2025-02-22 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:52:18] Production.INFO: count ==2104 [2025-02-22 16:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:52:06 - End Time 2025-02-22 16:52:06 [2025-02-22 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533762', 'tblTempUsageDetail_20' ) start [2025-02-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533762', 'tblTempUsageDetail_20' ) end [2025-02-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533762', 'tblTempVendorCDR_20' ) start [2025-02-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533762', 'tblTempVendorCDR_20' ) end [2025-02-22 16:52:18] Production.INFO: ProcessCDR(1,14533762,1,1,2) [2025-02-22 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533762', 'tblTempUsageDetail_20' ) start [2025-02-22 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533762', 'tblTempUsageDetail_20' ) end [2025-02-22 16:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:52:23] Production.INFO: ==15620== Releasing lock... [2025-02-22 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:52:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:53:05 [end_date_ymd] => 2025-02-22 16:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:53:05' and `end` < '2025-02-22 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-02-22 16:53:17] Production.INFO: count ==2105 [2025-02-22 16:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 13:53:05 - End Time 2025-02-22 16:53:05 [2025-02-22 16:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533767', 'tblTempUsageDetail_20' ) start [2025-02-22 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533767', 'tblTempUsageDetail_20' ) end [2025-02-22 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533767', 'tblTempVendorCDR_20' ) start [2025-02-22 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533767', 'tblTempVendorCDR_20' ) end [2025-02-22 16:53:17] Production.INFO: ProcessCDR(1,14533767,1,1,2) [2025-02-22 16:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533767', 'tblTempUsageDetail_20' ) start [2025-02-22 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533767', 'tblTempUsageDetail_20' ) end [2025-02-22 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:53:22] Production.INFO: ==15697== Releasing lock... [2025-02-22 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:53:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:54:05 [end_date_ymd] => 2025-02-22 16:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:54:05' and `end` < '2025-02-22 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-02-22 16:54:17] Production.INFO: count ==2106 [2025-02-22 16:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:54:05 - End Time 2025-02-22 16:54:05 [2025-02-22 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533772', 'tblTempUsageDetail_20' ) start [2025-02-22 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533772', 'tblTempUsageDetail_20' ) end [2025-02-22 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533772', 'tblTempVendorCDR_20' ) start [2025-02-22 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533772', 'tblTempVendorCDR_20' ) end [2025-02-22 16:54:18] Production.INFO: ProcessCDR(1,14533772,1,1,2) [2025-02-22 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533772', 'tblTempUsageDetail_20' ) start [2025-02-22 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533772', 'tblTempUsageDetail_20' ) end [2025-02-22 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:54:22] Production.INFO: ==15784== Releasing lock... [2025-02-22 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:54:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:55:05 [end_date_ymd] => 2025-02-22 16:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:55:05' and `end` < '2025-02-22 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-02-22 16:55:17] Production.INFO: count ==2096 [2025-02-22 16:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:55:05 - End Time 2025-02-22 16:55:05 [2025-02-22 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533777', 'tblTempUsageDetail_20' ) start [2025-02-22 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533777', 'tblTempUsageDetail_20' ) end [2025-02-22 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533777', 'tblTempVendorCDR_20' ) start [2025-02-22 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533777', 'tblTempVendorCDR_20' ) end [2025-02-22 16:55:18] Production.INFO: ProcessCDR(1,14533777,1,1,2) [2025-02-22 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533777', 'tblTempUsageDetail_20' ) start [2025-02-22 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533777', 'tblTempUsageDetail_20' ) end [2025-02-22 16:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:55:21] Production.INFO: ==15889== Releasing lock... [2025-02-22 16:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:55:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:56:05 [end_date_ymd] => 2025-02-22 16:56:05 [RateCDR] => 1 ) [2025-02-22 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 13:56:05' and `end` < '2025-02-22 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 16:56:17] Production.INFO: count ==2097 [2025-02-22 16:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:56:05 - End Time 2025-02-22 16:56:05 [2025-02-22 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533782', 'tblTempUsageDetail_20' ) start [2025-02-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533782', 'tblTempUsageDetail_20' ) end [2025-02-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533782', 'tblTempVendorCDR_20' ) start [2025-02-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533782', 'tblTempVendorCDR_20' ) end [2025-02-22 16:56:18] Production.INFO: ProcessCDR(1,14533782,1,1,2) [2025-02-22 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533782', 'tblTempUsageDetail_20' ) start [2025-02-22 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533782', 'tblTempUsageDetail_20' ) end [2025-02-22 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:56:22] Production.INFO: ==15983== Releasing lock... [2025-02-22 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:56:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:57:05 [end_date_ymd] => 2025-02-22 16:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:57:05' and `end` < '2025-02-22 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-02-22 16:57:17] Production.INFO: count ==2100 [2025-02-22 16:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:57:05 - End Time 2025-02-22 16:57:05 [2025-02-22 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533787', 'tblTempUsageDetail_20' ) start [2025-02-22 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533787', 'tblTempUsageDetail_20' ) end [2025-02-22 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533787', 'tblTempVendorCDR_20' ) start [2025-02-22 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533787', 'tblTempVendorCDR_20' ) end [2025-02-22 16:57:18] Production.INFO: ProcessCDR(1,14533787,1,1,2) [2025-02-22 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533787', 'tblTempUsageDetail_20' ) start [2025-02-22 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533787', 'tblTempUsageDetail_20' ) end [2025-02-22 16:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:57:21] Production.INFO: ==16082== Releasing lock... [2025-02-22 16:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:57:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:58:05 [end_date_ymd] => 2025-02-22 16:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:58:05' and `end` < '2025-02-22 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-02-22 16:58:17] Production.INFO: count ==2103 [2025-02-22 16:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:58:05 - End Time 2025-02-22 16:58:05 [2025-02-22 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533792', 'tblTempUsageDetail_20' ) start [2025-02-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533792', 'tblTempUsageDetail_20' ) end [2025-02-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533792', 'tblTempVendorCDR_20' ) start [2025-02-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533792', 'tblTempVendorCDR_20' ) end [2025-02-22 16:58:18] Production.INFO: ProcessCDR(1,14533792,1,1,2) [2025-02-22 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533792', 'tblTempUsageDetail_20' ) start [2025-02-22 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533792', 'tblTempUsageDetail_20' ) end [2025-02-22 16:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:58:21] Production.INFO: ==16169== Releasing lock... [2025-02-22 16:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:58:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 13:59:05 [end_date_ymd] => 2025-02-22 16:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 13:59:05' and `end` < '2025-02-22 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-02-22 16:59:17] Production.INFO: count ==2102 [2025-02-22 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 13:59:05 - End Time 2025-02-22 16:59:05 [2025-02-22 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533797', 'tblTempUsageDetail_20' ) start [2025-02-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533797', 'tblTempUsageDetail_20' ) end [2025-02-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533797', 'tblTempVendorCDR_20' ) start [2025-02-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533797', 'tblTempVendorCDR_20' ) end [2025-02-22 16:59:18] Production.INFO: ProcessCDR(1,14533797,1,1,2) [2025-02-22 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533797', 'tblTempUsageDetail_20' ) start [2025-02-22 16:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533797', 'tblTempUsageDetail_20' ) end [2025-02-22 16:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 16:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 16:59:22] Production.INFO: ==16269== Releasing lock... [2025-02-22 16:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 16:59:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:00:06 [end_date_ymd] => 2025-02-22 17:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:00:06' and `end` < '2025-02-22 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-02-22 17:00:18] Production.INFO: count ==2097 [2025-02-22 17:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:00:06 - End Time 2025-02-22 17:00:06 [2025-02-22 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533803', 'tblTempUsageDetail_20' ) start [2025-02-22 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533803', 'tblTempUsageDetail_20' ) end [2025-02-22 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533803', 'tblTempVendorCDR_20' ) start [2025-02-22 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533803', 'tblTempVendorCDR_20' ) end [2025-02-22 17:00:19] Production.INFO: ProcessCDR(1,14533803,1,1,2) [2025-02-22 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533803', 'tblTempUsageDetail_20' ) start [2025-02-22 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533803', 'tblTempUsageDetail_20' ) end [2025-02-22 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:00:24] Production.INFO: ==16361== Releasing lock... [2025-02-22 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:00:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:01:05 [end_date_ymd] => 2025-02-22 17:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:01:05' and `end` < '2025-02-22 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-02-22 17:01:17] Production.INFO: count ==2083 [2025-02-22 17:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:01:05 - End Time 2025-02-22 17:01:05 [2025-02-22 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533808', 'tblTempUsageDetail_20' ) start [2025-02-22 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533808', 'tblTempUsageDetail_20' ) end [2025-02-22 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533808', 'tblTempVendorCDR_20' ) start [2025-02-22 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533808', 'tblTempVendorCDR_20' ) end [2025-02-22 17:01:18] Production.INFO: ProcessCDR(1,14533808,1,1,2) [2025-02-22 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533808', 'tblTempUsageDetail_20' ) start [2025-02-22 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533808', 'tblTempUsageDetail_20' ) end [2025-02-22 17:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:01:21] Production.INFO: ==16477== Releasing lock... [2025-02-22 17:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:01:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:02:05 [end_date_ymd] => 2025-02-22 17:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:02:05' and `end` < '2025-02-22 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-02-22 17:02:17] Production.INFO: count ==2083 [2025-02-22 17:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:02:05 - End Time 2025-02-22 17:02:05 [2025-02-22 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533813', 'tblTempUsageDetail_20' ) start [2025-02-22 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533813', 'tblTempUsageDetail_20' ) end [2025-02-22 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533813', 'tblTempVendorCDR_20' ) start [2025-02-22 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533813', 'tblTempVendorCDR_20' ) end [2025-02-22 17:02:18] Production.INFO: ProcessCDR(1,14533813,1,1,2) [2025-02-22 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533813', 'tblTempUsageDetail_20' ) start [2025-02-22 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533813', 'tblTempUsageDetail_20' ) end [2025-02-22 17:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:02:21] Production.INFO: ==16569== Releasing lock... [2025-02-22 17:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:02:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:03:04 [end_date_ymd] => 2025-02-22 17:03:04 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:03:04' and `end` < '2025-02-22 17: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-02-22 17:03:17] Production.INFO: count ==2085 [2025-02-22 17:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:03:04 - End Time 2025-02-22 17:03:04 [2025-02-22 17:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533818', 'tblTempUsageDetail_20' ) start [2025-02-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533818', 'tblTempUsageDetail_20' ) end [2025-02-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533818', 'tblTempVendorCDR_20' ) start [2025-02-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533818', 'tblTempVendorCDR_20' ) end [2025-02-22 17:03:17] Production.INFO: ProcessCDR(1,14533818,1,1,2) [2025-02-22 17:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533818', 'tblTempUsageDetail_20' ) start [2025-02-22 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533818', 'tblTempUsageDetail_20' ) end [2025-02-22 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:03:22] Production.INFO: ==16667== Releasing lock... [2025-02-22 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:03:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:04:05 [end_date_ymd] => 2025-02-22 17:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:04:05' and `end` < '2025-02-22 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-02-22 17:04:17] Production.INFO: count ==2088 [2025-02-22 17:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:04:05 - End Time 2025-02-22 17:04:05 [2025-02-22 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533823', 'tblTempUsageDetail_20' ) start [2025-02-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533823', 'tblTempUsageDetail_20' ) end [2025-02-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533823', 'tblTempVendorCDR_20' ) start [2025-02-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533823', 'tblTempVendorCDR_20' ) end [2025-02-22 17:04:18] Production.INFO: ProcessCDR(1,14533823,1,1,2) [2025-02-22 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533823', 'tblTempUsageDetail_20' ) start [2025-02-22 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533823', 'tblTempUsageDetail_20' ) end [2025-02-22 17:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:04:21] Production.INFO: ==16759== Releasing lock... [2025-02-22 17:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:04:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:05:05 [end_date_ymd] => 2025-02-22 17:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:05:05' and `end` < '2025-02-22 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-02-22 17:05:18] Production.INFO: count ==2090 [2025-02-22 17:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:05:05 - End Time 2025-02-22 17:05:05 [2025-02-22 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533828', 'tblTempUsageDetail_20' ) start [2025-02-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533828', 'tblTempUsageDetail_20' ) end [2025-02-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533828', 'tblTempVendorCDR_20' ) start [2025-02-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533828', 'tblTempVendorCDR_20' ) end [2025-02-22 17:05:18] Production.INFO: ProcessCDR(1,14533828,1,1,2) [2025-02-22 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533828', 'tblTempUsageDetail_20' ) start [2025-02-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533828', 'tblTempUsageDetail_20' ) end [2025-02-22 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:05:22] Production.INFO: ==16859== Releasing lock... [2025-02-22 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:05:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:06:05 [end_date_ymd] => 2025-02-22 17:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:06:05' and `end` < '2025-02-22 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-02-22 17:06:17] Production.INFO: count ==2088 [2025-02-22 17:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:06:05 - End Time 2025-02-22 17:06:05 [2025-02-22 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533833', 'tblTempUsageDetail_20' ) start [2025-02-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533833', 'tblTempUsageDetail_20' ) end [2025-02-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533833', 'tblTempVendorCDR_20' ) start [2025-02-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533833', 'tblTempVendorCDR_20' ) end [2025-02-22 17:06:18] Production.INFO: ProcessCDR(1,14533833,1,1,2) [2025-02-22 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533833', 'tblTempUsageDetail_20' ) start [2025-02-22 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533833', 'tblTempUsageDetail_20' ) end [2025-02-22 17:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:06:23] Production.INFO: ==16991== Releasing lock... [2025-02-22 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:06:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:07:06 [end_date_ymd] => 2025-02-22 17:07:06 [RateCDR] => 1 ) [2025-02-22 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:07:06' and `end` < '2025-02-22 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:07:18] Production.INFO: count ==2088 [2025-02-22 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:07:06 - End Time 2025-02-22 17:07:06 [2025-02-22 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533838', 'tblTempUsageDetail_20' ) start [2025-02-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533838', 'tblTempUsageDetail_20' ) end [2025-02-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533838', 'tblTempVendorCDR_20' ) start [2025-02-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533838', 'tblTempVendorCDR_20' ) end [2025-02-22 17:07:19] Production.INFO: ProcessCDR(1,14533838,1,1,2) [2025-02-22 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533838', 'tblTempUsageDetail_20' ) start [2025-02-22 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533838', 'tblTempUsageDetail_20' ) end [2025-02-22 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:07:22] Production.INFO: ==17083== Releasing lock... [2025-02-22 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:07:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:08:05 [end_date_ymd] => 2025-02-22 17:08:05 [RateCDR] => 1 ) [2025-02-22 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:08:05' and `end` < '2025-02-22 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:08:17] Production.INFO: count ==2088 [2025-02-22 17:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:08:05 - End Time 2025-02-22 17:08:05 [2025-02-22 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533843', 'tblTempUsageDetail_20' ) start [2025-02-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533843', 'tblTempUsageDetail_20' ) end [2025-02-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533843', 'tblTempVendorCDR_20' ) start [2025-02-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533843', 'tblTempVendorCDR_20' ) end [2025-02-22 17:08:18] Production.INFO: ProcessCDR(1,14533843,1,1,2) [2025-02-22 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533843', 'tblTempUsageDetail_20' ) start [2025-02-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533843', 'tblTempUsageDetail_20' ) end [2025-02-22 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:08:23] Production.INFO: ==17176== Releasing lock... [2025-02-22 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:08:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:09:05 [end_date_ymd] => 2025-02-22 17:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:09:05' and `end` < '2025-02-22 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-02-22 17:09:17] Production.INFO: count ==2082 [2025-02-22 17:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:09:05 - End Time 2025-02-22 17:09:05 [2025-02-22 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533848', 'tblTempUsageDetail_20' ) start [2025-02-22 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533848', 'tblTempUsageDetail_20' ) end [2025-02-22 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533848', 'tblTempVendorCDR_20' ) start [2025-02-22 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533848', 'tblTempVendorCDR_20' ) end [2025-02-22 17:09:18] Production.INFO: ProcessCDR(1,14533848,1,1,2) [2025-02-22 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533848', 'tblTempUsageDetail_20' ) start [2025-02-22 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533848', 'tblTempUsageDetail_20' ) end [2025-02-22 17:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:09:21] Production.INFO: ==17266== Releasing lock... [2025-02-22 17:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:09:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:10:05 [end_date_ymd] => 2025-02-22 17:10:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:10:05' and `end` < '2025-02-22 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-02-22 17:10:18] Production.INFO: count ==2083 [2025-02-22 17:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:10:05 - End Time 2025-02-22 17:10:05 [2025-02-22 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533854', 'tblTempUsageDetail_20' ) start [2025-02-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533854', 'tblTempUsageDetail_20' ) end [2025-02-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533854', 'tblTempVendorCDR_20' ) start [2025-02-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533854', 'tblTempVendorCDR_20' ) end [2025-02-22 17:10:19] Production.INFO: ProcessCDR(1,14533854,1,1,2) [2025-02-22 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533854', 'tblTempUsageDetail_20' ) start [2025-02-22 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533854', 'tblTempUsageDetail_20' ) end [2025-02-22 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:10:23] Production.INFO: ==17358== Releasing lock... [2025-02-22 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:10:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:11:05 [end_date_ymd] => 2025-02-22 17:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:11:05' and `end` < '2025-02-22 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-02-22 17:11:18] Production.INFO: count ==2158 [2025-02-22 17:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:11:05 - End Time 2025-02-22 17:11:05 [2025-02-22 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533859', 'tblTempUsageDetail_20' ) start [2025-02-22 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533859', 'tblTempUsageDetail_20' ) end [2025-02-22 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533859', 'tblTempVendorCDR_20' ) start [2025-02-22 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533859', 'tblTempVendorCDR_20' ) end [2025-02-22 17:11:18] Production.INFO: ProcessCDR(1,14533859,1,1,2) [2025-02-22 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533859', 'tblTempUsageDetail_20' ) start [2025-02-22 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533859', 'tblTempUsageDetail_20' ) end [2025-02-22 17:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:11:23] Production.INFO: ==17458== Releasing lock... [2025-02-22 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:11:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:12:04 [end_date_ymd] => 2025-02-22 17:12:04 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:12:04' and `end` < '2025-02-22 17: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-02-22 17:12:17] Production.INFO: count ==2148 [2025-02-22 17:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:12:04 - End Time 2025-02-22 17:12:04 [2025-02-22 17:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533864', 'tblTempUsageDetail_20' ) start [2025-02-22 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533864', 'tblTempUsageDetail_20' ) end [2025-02-22 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533864', 'tblTempVendorCDR_20' ) start [2025-02-22 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533864', 'tblTempVendorCDR_20' ) end [2025-02-22 17:12:18] Production.INFO: ProcessCDR(1,14533864,1,1,2) [2025-02-22 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533864', 'tblTempUsageDetail_20' ) start [2025-02-22 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533864', 'tblTempUsageDetail_20' ) end [2025-02-22 17:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:12:21] Production.INFO: ==17556== Releasing lock... [2025-02-22 17:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:12:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:13:05 [end_date_ymd] => 2025-02-22 17:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:13:05' and `end` < '2025-02-22 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-02-22 17:13:17] Production.INFO: count ==2135 [2025-02-22 17:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:13:05 - End Time 2025-02-22 17:13:05 [2025-02-22 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533869', 'tblTempUsageDetail_20' ) start [2025-02-22 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533869', 'tblTempUsageDetail_20' ) end [2025-02-22 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533869', 'tblTempVendorCDR_20' ) start [2025-02-22 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533869', 'tblTempVendorCDR_20' ) end [2025-02-22 17:13:18] Production.INFO: ProcessCDR(1,14533869,1,1,2) [2025-02-22 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533869', 'tblTempUsageDetail_20' ) start [2025-02-22 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533869', 'tblTempUsageDetail_20' ) end [2025-02-22 17:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:13:21] Production.INFO: ==17640== Releasing lock... [2025-02-22 17:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:13:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:14:05 [end_date_ymd] => 2025-02-22 17:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:14:05' and `end` < '2025-02-22 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-02-22 17:14:17] Production.INFO: count ==2115 [2025-02-22 17:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:14:05 - End Time 2025-02-22 17:14:05 [2025-02-22 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533874', 'tblTempUsageDetail_20' ) start [2025-02-22 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533874', 'tblTempUsageDetail_20' ) end [2025-02-22 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533874', 'tblTempVendorCDR_20' ) start [2025-02-22 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533874', 'tblTempVendorCDR_20' ) end [2025-02-22 17:14:18] Production.INFO: ProcessCDR(1,14533874,1,1,2) [2025-02-22 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533874', 'tblTempUsageDetail_20' ) start [2025-02-22 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533874', 'tblTempUsageDetail_20' ) end [2025-02-22 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:14:22] Production.INFO: ==17735== Releasing lock... [2025-02-22 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:14:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:15:05 [end_date_ymd] => 2025-02-22 17:15:05 [RateCDR] => 1 ) [2025-02-22 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:15:05' and `end` < '2025-02-22 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:15:18] Production.INFO: count ==2111 [2025-02-22 17:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:15:05 - End Time 2025-02-22 17:15:05 [2025-02-22 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533879', 'tblTempUsageDetail_20' ) start [2025-02-22 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533879', 'tblTempUsageDetail_20' ) end [2025-02-22 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533879', 'tblTempVendorCDR_20' ) start [2025-02-22 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533879', 'tblTempVendorCDR_20' ) end [2025-02-22 17:15:18] Production.INFO: ProcessCDR(1,14533879,1,1,2) [2025-02-22 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533879', 'tblTempUsageDetail_20' ) start [2025-02-22 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533879', 'tblTempUsageDetail_20' ) end [2025-02-22 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:15:23] Production.INFO: ==17833== Releasing lock... [2025-02-22 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:15:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:16:06 [end_date_ymd] => 2025-02-22 17:16:06 [RateCDR] => 1 ) [2025-02-22 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:16:06' and `end` < '2025-02-22 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:16:18] Production.INFO: count ==2102 [2025-02-22 17:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:16:06 - End Time 2025-02-22 17:16:06 [2025-02-22 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533884', 'tblTempUsageDetail_20' ) start [2025-02-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533884', 'tblTempUsageDetail_20' ) end [2025-02-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533884', 'tblTempVendorCDR_20' ) start [2025-02-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533884', 'tblTempVendorCDR_20' ) end [2025-02-22 17:16:18] Production.INFO: ProcessCDR(1,14533884,1,1,2) [2025-02-22 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533884', 'tblTempUsageDetail_20' ) start [2025-02-22 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533884', 'tblTempUsageDetail_20' ) end [2025-02-22 17:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:16:22] Production.INFO: ==17920== Releasing lock... [2025-02-22 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:16:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:17:05 [end_date_ymd] => 2025-02-22 17:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:17:05' and `end` < '2025-02-22 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-02-22 17:17:17] Production.INFO: count ==2095 [2025-02-22 17:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:17:05 - End Time 2025-02-22 17:17:05 [2025-02-22 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533889', 'tblTempUsageDetail_20' ) start [2025-02-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533889', 'tblTempUsageDetail_20' ) end [2025-02-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533889', 'tblTempVendorCDR_20' ) start [2025-02-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533889', 'tblTempVendorCDR_20' ) end [2025-02-22 17:17:18] Production.INFO: ProcessCDR(1,14533889,1,1,2) [2025-02-22 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533889', 'tblTempUsageDetail_20' ) start [2025-02-22 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533889', 'tblTempUsageDetail_20' ) end [2025-02-22 17:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:17:21] Production.INFO: ==17992== Releasing lock... [2025-02-22 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:17:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:18:06 [end_date_ymd] => 2025-02-22 17:18:06 [RateCDR] => 1 ) [2025-02-22 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:18:06' and `end` < '2025-02-22 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:18:18] Production.INFO: count ==2083 [2025-02-22 17:18:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:18:06 - End Time 2025-02-22 17:18:06 [2025-02-22 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533894', 'tblTempUsageDetail_20' ) start [2025-02-22 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533894', 'tblTempUsageDetail_20' ) end [2025-02-22 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533894', 'tblTempVendorCDR_20' ) start [2025-02-22 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533894', 'tblTempVendorCDR_20' ) end [2025-02-22 17:18:19] Production.INFO: ProcessCDR(1,14533894,1,1,2) [2025-02-22 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533894', 'tblTempUsageDetail_20' ) start [2025-02-22 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533894', 'tblTempUsageDetail_20' ) end [2025-02-22 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:18:22] Production.INFO: ==18065== Releasing lock... [2025-02-22 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:18:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:19:05 [end_date_ymd] => 2025-02-22 17:19:05 [RateCDR] => 1 ) [2025-02-22 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:19:05' and `end` < '2025-02-22 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:19:17] Production.INFO: count ==2072 [2025-02-22 17:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:19:05 - End Time 2025-02-22 17:19:05 [2025-02-22 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533899', 'tblTempUsageDetail_20' ) start [2025-02-22 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533899', 'tblTempUsageDetail_20' ) end [2025-02-22 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533899', 'tblTempVendorCDR_20' ) start [2025-02-22 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533899', 'tblTempVendorCDR_20' ) end [2025-02-22 17:19:18] Production.INFO: ProcessCDR(1,14533899,1,1,2) [2025-02-22 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533899', 'tblTempUsageDetail_20' ) start [2025-02-22 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533899', 'tblTempUsageDetail_20' ) end [2025-02-22 17:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:19:21] Production.INFO: ==18136== Releasing lock... [2025-02-22 17:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:19:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:20:06 [end_date_ymd] => 2025-02-22 17:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:20:06' and `end` < '2025-02-22 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-02-22 17:20:18] Production.INFO: count ==2077 [2025-02-22 17:20:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:20:06 - End Time 2025-02-22 17:20:06 [2025-02-22 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533904', 'tblTempUsageDetail_20' ) start [2025-02-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533904', 'tblTempUsageDetail_20' ) end [2025-02-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533904', 'tblTempVendorCDR_20' ) start [2025-02-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533904', 'tblTempVendorCDR_20' ) end [2025-02-22 17:20:19] Production.INFO: ProcessCDR(1,14533904,1,1,2) [2025-02-22 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533904', 'tblTempUsageDetail_20' ) start [2025-02-22 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533904', 'tblTempUsageDetail_20' ) end [2025-02-22 17:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:20:22] Production.INFO: ==18211== Releasing lock... [2025-02-22 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:20:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:21:05 [end_date_ymd] => 2025-02-22 17:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:21:05' and `end` < '2025-02-22 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-02-22 17:21:17] Production.INFO: count ==2093 [2025-02-22 17:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:21:05 - End Time 2025-02-22 17:21:05 [2025-02-22 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533910', 'tblTempUsageDetail_20' ) start [2025-02-22 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533910', 'tblTempUsageDetail_20' ) end [2025-02-22 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533910', 'tblTempVendorCDR_20' ) start [2025-02-22 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533910', 'tblTempVendorCDR_20' ) end [2025-02-22 17:21:17] Production.INFO: ProcessCDR(1,14533910,1,1,2) [2025-02-22 17:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533910', 'tblTempUsageDetail_20' ) start [2025-02-22 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533910', 'tblTempUsageDetail_20' ) end [2025-02-22 17:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:21:21] Production.INFO: ==18283== Releasing lock... [2025-02-22 17:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:21:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:22:06 [end_date_ymd] => 2025-02-22 17:22:06 [RateCDR] => 1 ) [2025-02-22 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:22:06' and `end` < '2025-02-22 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:22:18] Production.INFO: count ==2102 [2025-02-22 17:22:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:22:06 - End Time 2025-02-22 17:22:06 [2025-02-22 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533915', 'tblTempUsageDetail_20' ) start [2025-02-22 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533915', 'tblTempUsageDetail_20' ) end [2025-02-22 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533915', 'tblTempVendorCDR_20' ) start [2025-02-22 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533915', 'tblTempVendorCDR_20' ) end [2025-02-22 17:22:19] Production.INFO: ProcessCDR(1,14533915,1,1,2) [2025-02-22 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533915', 'tblTempUsageDetail_20' ) start [2025-02-22 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533915', 'tblTempUsageDetail_20' ) end [2025-02-22 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:22:24] Production.INFO: ==18400== Releasing lock... [2025-02-22 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:22:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:23:04 [end_date_ymd] => 2025-02-22 17:23:04 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:23:04' and `end` < '2025-02-22 17: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-02-22 17:23:17] Production.INFO: count ==2104 [2025-02-22 17:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:23:04 - End Time 2025-02-22 17:23:04 [2025-02-22 17:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533920', 'tblTempUsageDetail_20' ) start [2025-02-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533920', 'tblTempUsageDetail_20' ) end [2025-02-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533920', 'tblTempVendorCDR_20' ) start [2025-02-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533920', 'tblTempVendorCDR_20' ) end [2025-02-22 17:23:17] Production.INFO: ProcessCDR(1,14533920,1,1,2) [2025-02-22 17:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533920', 'tblTempUsageDetail_20' ) start [2025-02-22 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533920', 'tblTempUsageDetail_20' ) end [2025-02-22 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:23:22] Production.INFO: ==18493== Releasing lock... [2025-02-22 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:23:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:24:05 [end_date_ymd] => 2025-02-22 17:24:05 [RateCDR] => 1 ) [2025-02-22 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:24:05' and `end` < '2025-02-22 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:24:18] Production.INFO: count ==2129 [2025-02-22 17:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:24:05 - End Time 2025-02-22 17:24:05 [2025-02-22 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533925', 'tblTempUsageDetail_20' ) start [2025-02-22 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533925', 'tblTempUsageDetail_20' ) end [2025-02-22 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533925', 'tblTempVendorCDR_20' ) start [2025-02-22 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533925', 'tblTempVendorCDR_20' ) end [2025-02-22 17:24:18] Production.INFO: ProcessCDR(1,14533925,1,1,2) [2025-02-22 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533925', 'tblTempUsageDetail_20' ) start [2025-02-22 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533925', 'tblTempUsageDetail_20' ) end [2025-02-22 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:24:23] Production.INFO: ==18591== Releasing lock... [2025-02-22 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:24:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:25:04 [end_date_ymd] => 2025-02-22 17:25:04 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:25:04' and `end` < '2025-02-22 17: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-02-22 17:25:17] Production.INFO: count ==2130 [2025-02-22 17:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:25:04 - End Time 2025-02-22 17:25:04 [2025-02-22 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533930', 'tblTempUsageDetail_20' ) start [2025-02-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533930', 'tblTempUsageDetail_20' ) end [2025-02-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533930', 'tblTempVendorCDR_20' ) start [2025-02-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533930', 'tblTempVendorCDR_20' ) end [2025-02-22 17:25:17] Production.INFO: ProcessCDR(1,14533930,1,1,2) [2025-02-22 17:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533930', 'tblTempUsageDetail_20' ) start [2025-02-22 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533930', 'tblTempUsageDetail_20' ) end [2025-02-22 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:25:22] Production.INFO: ==18686== Releasing lock... [2025-02-22 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:25:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:26:05 [end_date_ymd] => 2025-02-22 17:26:05 [RateCDR] => 1 ) [2025-02-22 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:26:05' and `end` < '2025-02-22 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:26:17] Production.INFO: count ==2070 [2025-02-22 17:26:31] Production.ERROR: pbx CDR StartTime 2025-02-22 14:26:05 - End Time 2025-02-22 17:26:05 [2025-02-22 17:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533935', 'tblTempUsageDetail_20' ) start [2025-02-22 17:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533935', 'tblTempUsageDetail_20' ) end [2025-02-22 17:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533935', 'tblTempVendorCDR_20' ) start [2025-02-22 17:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533935', 'tblTempVendorCDR_20' ) end [2025-02-22 17:26:31] Production.INFO: ProcessCDR(1,14533935,1,1,2) [2025-02-22 17:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:26:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:26:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:26:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:26:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533935', 'tblTempUsageDetail_20' ) start [2025-02-22 17:26:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533935', 'tblTempUsageDetail_20' ) end [2025-02-22 17:26:57] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:26:57] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:26:57] Production.INFO: ==18787== Releasing lock... [2025-02-22 17:26:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:26:57] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:27:37] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:27:37 [end_date_ymd] => 2025-02-22 17:27:37 [RateCDR] => 1 ) [2025-02-22 17:27:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:27:37' and `end` < '2025-02-22 17:27:37' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:27:49] Production.INFO: count ==2034 [2025-02-22 17:27:59] Production.ERROR: pbx CDR StartTime 2025-02-22 14:27:37 - End Time 2025-02-22 17:27:37 [2025-02-22 17:27:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:27:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533939', 'tblTempUsageDetail_20' ) start [2025-02-22 17:28:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533939', 'tblTempUsageDetail_20' ) end [2025-02-22 17:28:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533939', 'tblTempVendorCDR_20' ) start [2025-02-22 17:28:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533939', 'tblTempVendorCDR_20' ) end [2025-02-22 17:28:07] Production.INFO: ProcessCDR(1,14533939,1,1,2) [2025-02-22 17:28:07] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:28:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:28:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533939', 'tblTempUsageDetail_20' ) start [2025-02-22 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533939', 'tblTempUsageDetail_20' ) end [2025-02-22 17:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:28:33] Production.INFO: ==18895== Releasing lock... [2025-02-22 17:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:28:33] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:29:25] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:29:22 [end_date_ymd] => 2025-02-22 17:29:22 [RateCDR] => 1 ) [2025-02-22 17:29:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:29:22' and `end` < '2025-02-22 17:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:29:37] Production.INFO: count ==2035 [2025-02-22 17:29:39] Production.ERROR: pbx CDR StartTime 2025-02-22 14:29:22 - End Time 2025-02-22 17:29:22 [2025-02-22 17:29:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:29:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533947', 'tblTempUsageDetail_20' ) start [2025-02-22 17:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533947', 'tblTempUsageDetail_20' ) end [2025-02-22 17:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533947', 'tblTempVendorCDR_20' ) start [2025-02-22 17:29:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533947', 'tblTempVendorCDR_20' ) end [2025-02-22 17:29:43] Production.INFO: ProcessCDR(1,14533947,1,1,2) [2025-02-22 17:29:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:29:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:29:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533947', 'tblTempUsageDetail_20' ) start [2025-02-22 17:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533947', 'tblTempUsageDetail_20' ) end [2025-02-22 17:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:30:36] Production.INFO: ==19044== Releasing lock... [2025-02-22 17:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:30:36] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:31:15] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:31:15 [end_date_ymd] => 2025-02-22 17:31:15 [RateCDR] => 1 ) [2025-02-22 17:31:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:31:15' and `end` < '2025-02-22 17:31:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:31:27] Production.INFO: count ==2050 [2025-02-22 17:31:38] Production.ERROR: pbx CDR StartTime 2025-02-22 14:31:15 - End Time 2025-02-22 17:31:15 [2025-02-22 17:31:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533955', 'tblTempUsageDetail_20' ) start [2025-02-22 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533955', 'tblTempUsageDetail_20' ) end [2025-02-22 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533955', 'tblTempVendorCDR_20' ) start [2025-02-22 17:31:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533955', 'tblTempVendorCDR_20' ) end [2025-02-22 17:31:38] Production.INFO: ProcessCDR(1,14533955,1,1,2) [2025-02-22 17:31:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:31:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533955', 'tblTempUsageDetail_20' ) start [2025-02-22 17:31:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533955', 'tblTempUsageDetail_20' ) end [2025-02-22 17:31:51] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:31:51] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:31:51] Production.INFO: ==19184== Releasing lock... [2025-02-22 17:31:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:31:51] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:32:05 [end_date_ymd] => 2025-02-22 17:32:05 [RateCDR] => 1 ) [2025-02-22 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:32:05' and `end` < '2025-02-22 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:32:18] Production.INFO: count ==2057 [2025-02-22 17:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:32:05 - End Time 2025-02-22 17:32:05 [2025-02-22 17:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533960', 'tblTempUsageDetail_20' ) start [2025-02-22 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533960', 'tblTempUsageDetail_20' ) end [2025-02-22 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533960', 'tblTempVendorCDR_20' ) start [2025-02-22 17:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533960', 'tblTempVendorCDR_20' ) end [2025-02-22 17:32:18] Production.INFO: ProcessCDR(1,14533960,1,1,2) [2025-02-22 17:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533960', 'tblTempUsageDetail_20' ) start [2025-02-22 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533960', 'tblTempUsageDetail_20' ) end [2025-02-22 17:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:32:23] Production.INFO: ==19259== Releasing lock... [2025-02-22 17:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:32:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:33:05 [end_date_ymd] => 2025-02-22 17:33:05 [RateCDR] => 1 ) [2025-02-22 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:33:05' and `end` < '2025-02-22 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:33:17] Production.INFO: count ==2061 [2025-02-22 17:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:33:05 - End Time 2025-02-22 17:33:05 [2025-02-22 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533965', 'tblTempUsageDetail_20' ) start [2025-02-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533965', 'tblTempUsageDetail_20' ) end [2025-02-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533965', 'tblTempVendorCDR_20' ) start [2025-02-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533965', 'tblTempVendorCDR_20' ) end [2025-02-22 17:33:18] Production.INFO: ProcessCDR(1,14533965,1,1,2) [2025-02-22 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533965', 'tblTempUsageDetail_20' ) start [2025-02-22 17:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533965', 'tblTempUsageDetail_20' ) end [2025-02-22 17:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:33:21] Production.INFO: ==19329== Releasing lock... [2025-02-22 17:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:33:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:34:05 [end_date_ymd] => 2025-02-22 17:34:05 [RateCDR] => 1 ) [2025-02-22 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:34:05' and `end` < '2025-02-22 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:34:17] Production.INFO: count ==2060 [2025-02-22 17:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:34:05 - End Time 2025-02-22 17:34:05 [2025-02-22 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533970', 'tblTempUsageDetail_20' ) start [2025-02-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533970', 'tblTempUsageDetail_20' ) end [2025-02-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533970', 'tblTempVendorCDR_20' ) start [2025-02-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533970', 'tblTempVendorCDR_20' ) end [2025-02-22 17:34:18] Production.INFO: ProcessCDR(1,14533970,1,1,2) [2025-02-22 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533970', 'tblTempUsageDetail_20' ) start [2025-02-22 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533970', 'tblTempUsageDetail_20' ) end [2025-02-22 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:34:22] Production.INFO: ==19418== Releasing lock... [2025-02-22 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:34:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:35:05 [end_date_ymd] => 2025-02-22 17:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:35:05' and `end` < '2025-02-22 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-02-22 17:35:17] Production.INFO: count ==2104 [2025-02-22 17:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:35:05 - End Time 2025-02-22 17:35:05 [2025-02-22 17:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533975', 'tblTempUsageDetail_20' ) start [2025-02-22 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533975', 'tblTempUsageDetail_20' ) end [2025-02-22 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533975', 'tblTempVendorCDR_20' ) start [2025-02-22 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533975', 'tblTempVendorCDR_20' ) end [2025-02-22 17:35:17] Production.INFO: ProcessCDR(1,14533975,1,1,2) [2025-02-22 17:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533975', 'tblTempUsageDetail_20' ) start [2025-02-22 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533975', 'tblTempUsageDetail_20' ) end [2025-02-22 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:35:22] Production.INFO: ==19497== Releasing lock... [2025-02-22 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:35:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:36:05 [end_date_ymd] => 2025-02-22 17:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:36:05' and `end` < '2025-02-22 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-02-22 17:36:17] Production.INFO: count ==2102 [2025-02-22 17:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:36:05 - End Time 2025-02-22 17:36:05 [2025-02-22 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533980', 'tblTempUsageDetail_20' ) start [2025-02-22 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533980', 'tblTempUsageDetail_20' ) end [2025-02-22 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533980', 'tblTempVendorCDR_20' ) start [2025-02-22 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533980', 'tblTempVendorCDR_20' ) end [2025-02-22 17:36:18] Production.INFO: ProcessCDR(1,14533980,1,1,2) [2025-02-22 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533980', 'tblTempUsageDetail_20' ) start [2025-02-22 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533980', 'tblTempUsageDetail_20' ) end [2025-02-22 17:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:36:21] Production.INFO: ==19568== Releasing lock... [2025-02-22 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:36:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:37:05 [end_date_ymd] => 2025-02-22 17:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:37:05' and `end` < '2025-02-22 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-02-22 17:37:18] Production.INFO: count ==2030 [2025-02-22 17:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:37:05 - End Time 2025-02-22 17:37:05 [2025-02-22 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533985', 'tblTempUsageDetail_20' ) start [2025-02-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533985', 'tblTempUsageDetail_20' ) end [2025-02-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533985', 'tblTempVendorCDR_20' ) start [2025-02-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533985', 'tblTempVendorCDR_20' ) end [2025-02-22 17:37:18] Production.INFO: ProcessCDR(1,14533985,1,1,2) [2025-02-22 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533985', 'tblTempUsageDetail_20' ) start [2025-02-22 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533985', 'tblTempUsageDetail_20' ) end [2025-02-22 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:37:23] Production.INFO: ==19679== Releasing lock... [2025-02-22 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:37:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:38:05 [end_date_ymd] => 2025-02-22 17:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:38:05' and `end` < '2025-02-22 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-02-22 17:38:17] Production.INFO: count ==2024 [2025-02-22 17:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:38:05 - End Time 2025-02-22 17:38:05 [2025-02-22 17:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533990', 'tblTempUsageDetail_20' ) start [2025-02-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533990', 'tblTempUsageDetail_20' ) end [2025-02-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533990', 'tblTempVendorCDR_20' ) start [2025-02-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533990', 'tblTempVendorCDR_20' ) end [2025-02-22 17:38:17] Production.INFO: ProcessCDR(1,14533990,1,1,2) [2025-02-22 17:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533990', 'tblTempUsageDetail_20' ) start [2025-02-22 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533990', 'tblTempUsageDetail_20' ) end [2025-02-22 17:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:38:21] Production.INFO: ==19759== Releasing lock... [2025-02-22 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:38:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:39:06 [end_date_ymd] => 2025-02-22 17:39:06 [RateCDR] => 1 ) [2025-02-22 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:39:06' and `end` < '2025-02-22 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:39:18] Production.INFO: count ==2041 [2025-02-22 17:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:39:06 - End Time 2025-02-22 17:39:06 [2025-02-22 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533995', 'tblTempUsageDetail_20' ) start [2025-02-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14533995', 'tblTempUsageDetail_20' ) end [2025-02-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533995', 'tblTempVendorCDR_20' ) start [2025-02-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14533995', 'tblTempVendorCDR_20' ) end [2025-02-22 17:39:18] Production.INFO: ProcessCDR(1,14533995,1,1,2) [2025-02-22 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14533995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14533995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14533995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14533995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533995', 'tblTempUsageDetail_20' ) start [2025-02-22 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14533995', 'tblTempUsageDetail_20' ) end [2025-02-22 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:39:23] Production.INFO: ==19835== Releasing lock... [2025-02-22 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:39:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:40:06 [end_date_ymd] => 2025-02-22 17:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:40:06' and `end` < '2025-02-22 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-02-22 17:40:18] Production.INFO: count ==2027 [2025-02-22 17:40:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:40:06 - End Time 2025-02-22 17:40:06 [2025-02-22 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534001', 'tblTempUsageDetail_20' ) start [2025-02-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534001', 'tblTempUsageDetail_20' ) end [2025-02-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534001', 'tblTempVendorCDR_20' ) start [2025-02-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534001', 'tblTempVendorCDR_20' ) end [2025-02-22 17:40:19] Production.INFO: ProcessCDR(1,14534001,1,1,2) [2025-02-22 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534001', 'tblTempUsageDetail_20' ) start [2025-02-22 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534001', 'tblTempUsageDetail_20' ) end [2025-02-22 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:40:24] Production.INFO: ==19909== Releasing lock... [2025-02-22 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:40:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:41:05 [end_date_ymd] => 2025-02-22 17:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:41:05' and `end` < '2025-02-22 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-02-22 17:41:17] Production.INFO: count ==2023 [2025-02-22 17:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:41:05 - End Time 2025-02-22 17:41:05 [2025-02-22 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534006', 'tblTempUsageDetail_20' ) start [2025-02-22 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534006', 'tblTempUsageDetail_20' ) end [2025-02-22 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534006', 'tblTempVendorCDR_20' ) start [2025-02-22 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534006', 'tblTempVendorCDR_20' ) end [2025-02-22 17:41:18] Production.INFO: ProcessCDR(1,14534006,1,1,2) [2025-02-22 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534006', 'tblTempUsageDetail_20' ) start [2025-02-22 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534006', 'tblTempUsageDetail_20' ) end [2025-02-22 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:41:23] Production.INFO: ==19986== Releasing lock... [2025-02-22 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:42:05 [end_date_ymd] => 2025-02-22 17:42:05 [RateCDR] => 1 ) [2025-02-22 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:42:05' and `end` < '2025-02-22 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:42:17] Production.INFO: count ==2018 [2025-02-22 17:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:42:05 - End Time 2025-02-22 17:42:05 [2025-02-22 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534011', 'tblTempUsageDetail_20' ) start [2025-02-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534011', 'tblTempUsageDetail_20' ) end [2025-02-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534011', 'tblTempVendorCDR_20' ) start [2025-02-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534011', 'tblTempVendorCDR_20' ) end [2025-02-22 17:42:18] Production.INFO: ProcessCDR(1,14534011,1,1,2) [2025-02-22 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534011', 'tblTempUsageDetail_20' ) start [2025-02-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534011', 'tblTempUsageDetail_20' ) end [2025-02-22 17:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:42:21] Production.INFO: ==20062== Releasing lock... [2025-02-22 17:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:42:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:43:05 [end_date_ymd] => 2025-02-22 17:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:43:05' and `end` < '2025-02-22 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-02-22 17:43:17] Production.INFO: count ==2018 [2025-02-22 17:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:43:05 - End Time 2025-02-22 17:43:05 [2025-02-22 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534016', 'tblTempUsageDetail_20' ) start [2025-02-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534016', 'tblTempUsageDetail_20' ) end [2025-02-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534016', 'tblTempVendorCDR_20' ) start [2025-02-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534016', 'tblTempVendorCDR_20' ) end [2025-02-22 17:43:18] Production.INFO: ProcessCDR(1,14534016,1,1,2) [2025-02-22 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534016', 'tblTempUsageDetail_20' ) start [2025-02-22 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534016', 'tblTempUsageDetail_20' ) end [2025-02-22 17:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:43:21] Production.INFO: ==20142== Releasing lock... [2025-02-22 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:43:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:44:05 [end_date_ymd] => 2025-02-22 17:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:44:05' and `end` < '2025-02-22 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-02-22 17:44:17] Production.INFO: count ==2021 [2025-02-22 17:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:44:05 - End Time 2025-02-22 17:44:05 [2025-02-22 17:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534021', 'tblTempUsageDetail_20' ) start [2025-02-22 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534021', 'tblTempUsageDetail_20' ) end [2025-02-22 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534021', 'tblTempVendorCDR_20' ) start [2025-02-22 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534021', 'tblTempVendorCDR_20' ) end [2025-02-22 17:44:17] Production.INFO: ProcessCDR(1,14534021,1,1,2) [2025-02-22 17:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534021', 'tblTempUsageDetail_20' ) start [2025-02-22 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534021', 'tblTempUsageDetail_20' ) end [2025-02-22 17:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:44:21] Production.INFO: ==20216== Releasing lock... [2025-02-22 17:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:44:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:45:05 [end_date_ymd] => 2025-02-22 17:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:45:05' and `end` < '2025-02-22 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-02-22 17:45:17] Production.INFO: count ==2021 [2025-02-22 17:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:45:05 - End Time 2025-02-22 17:45:05 [2025-02-22 17:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534026', 'tblTempUsageDetail_20' ) start [2025-02-22 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534026', 'tblTempUsageDetail_20' ) end [2025-02-22 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534026', 'tblTempVendorCDR_20' ) start [2025-02-22 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534026', 'tblTempVendorCDR_20' ) end [2025-02-22 17:45:18] Production.INFO: ProcessCDR(1,14534026,1,1,2) [2025-02-22 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534026', 'tblTempUsageDetail_20' ) start [2025-02-22 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534026', 'tblTempUsageDetail_20' ) end [2025-02-22 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:45:22] Production.INFO: ==20288== Releasing lock... [2025-02-22 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:45:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:46:06 [end_date_ymd] => 2025-02-22 17:46:06 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:46:06' and `end` < '2025-02-22 17: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-02-22 17:46:18] Production.INFO: count ==2020 [2025-02-22 17:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:46:06 - End Time 2025-02-22 17:46:06 [2025-02-22 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534031', 'tblTempUsageDetail_20' ) start [2025-02-22 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534031', 'tblTempUsageDetail_20' ) end [2025-02-22 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534031', 'tblTempVendorCDR_20' ) start [2025-02-22 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534031', 'tblTempVendorCDR_20' ) end [2025-02-22 17:46:19] Production.INFO: ProcessCDR(1,14534031,1,1,2) [2025-02-22 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534031', 'tblTempUsageDetail_20' ) start [2025-02-22 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534031', 'tblTempUsageDetail_20' ) end [2025-02-22 17:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:46:22] Production.INFO: ==20374== Releasing lock... [2025-02-22 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:46:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:47:05 [end_date_ymd] => 2025-02-22 17:47:05 [RateCDR] => 1 ) [2025-02-22 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:47:05' and `end` < '2025-02-22 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:47:17] Production.INFO: count ==2025 [2025-02-22 17:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:47:05 - End Time 2025-02-22 17:47:05 [2025-02-22 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534036', 'tblTempUsageDetail_20' ) start [2025-02-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534036', 'tblTempUsageDetail_20' ) end [2025-02-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534036', 'tblTempVendorCDR_20' ) start [2025-02-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534036', 'tblTempVendorCDR_20' ) end [2025-02-22 17:47:18] Production.INFO: ProcessCDR(1,14534036,1,1,2) [2025-02-22 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534036', 'tblTempUsageDetail_20' ) start [2025-02-22 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534036', 'tblTempUsageDetail_20' ) end [2025-02-22 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:47:23] Production.INFO: ==20454== Releasing lock... [2025-02-22 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:47:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:48:06 [end_date_ymd] => 2025-02-22 17:48:06 [RateCDR] => 1 ) [2025-02-22 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:48:06' and `end` < '2025-02-22 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:48:18] Production.INFO: count ==2026 [2025-02-22 17:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:48:06 - End Time 2025-02-22 17:48:06 [2025-02-22 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534041', 'tblTempUsageDetail_20' ) start [2025-02-22 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534041', 'tblTempUsageDetail_20' ) end [2025-02-22 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534041', 'tblTempVendorCDR_20' ) start [2025-02-22 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534041', 'tblTempVendorCDR_20' ) end [2025-02-22 17:48:18] Production.INFO: ProcessCDR(1,14534041,1,1,2) [2025-02-22 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534041', 'tblTempUsageDetail_20' ) start [2025-02-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534041', 'tblTempUsageDetail_20' ) end [2025-02-22 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:48:23] Production.INFO: ==20533== Releasing lock... [2025-02-22 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:48:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:49:05 [end_date_ymd] => 2025-02-22 17:49:05 [RateCDR] => 1 ) [2025-02-22 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:49:05' and `end` < '2025-02-22 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:49:17] Production.INFO: count ==2030 [2025-02-22 17:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:49:05 - End Time 2025-02-22 17:49:05 [2025-02-22 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534046', 'tblTempUsageDetail_20' ) start [2025-02-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534046', 'tblTempUsageDetail_20' ) end [2025-02-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534046', 'tblTempVendorCDR_20' ) start [2025-02-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534046', 'tblTempVendorCDR_20' ) end [2025-02-22 17:49:18] Production.INFO: ProcessCDR(1,14534046,1,1,2) [2025-02-22 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534046', 'tblTempUsageDetail_20' ) start [2025-02-22 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534046', 'tblTempUsageDetail_20' ) end [2025-02-22 17:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:49:21] Production.INFO: ==20640== Releasing lock... [2025-02-22 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:49:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:50:06 [end_date_ymd] => 2025-02-22 17:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:50:06' and `end` < '2025-02-22 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-02-22 17:50:18] Production.INFO: count ==2027 [2025-02-22 17:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 14:50:06 - End Time 2025-02-22 17:50:06 [2025-02-22 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534051', 'tblTempUsageDetail_20' ) start [2025-02-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534051', 'tblTempUsageDetail_20' ) end [2025-02-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534051', 'tblTempVendorCDR_20' ) start [2025-02-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534051', 'tblTempVendorCDR_20' ) end [2025-02-22 17:50:19] Production.INFO: ProcessCDR(1,14534051,1,1,2) [2025-02-22 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534051', 'tblTempUsageDetail_20' ) start [2025-02-22 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534051', 'tblTempUsageDetail_20' ) end [2025-02-22 17:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:50:22] Production.INFO: ==20724== Releasing lock... [2025-02-22 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:50:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:51:05 [end_date_ymd] => 2025-02-22 17:51:05 [RateCDR] => 1 ) [2025-02-22 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:51:05' and `end` < '2025-02-22 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:51:17] Production.INFO: count ==2048 [2025-02-22 17:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:51:05 - End Time 2025-02-22 17:51:05 [2025-02-22 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534057', 'tblTempUsageDetail_20' ) start [2025-02-22 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534057', 'tblTempUsageDetail_20' ) end [2025-02-22 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534057', 'tblTempVendorCDR_20' ) start [2025-02-22 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534057', 'tblTempVendorCDR_20' ) end [2025-02-22 17:51:18] Production.INFO: ProcessCDR(1,14534057,1,1,2) [2025-02-22 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534057', 'tblTempUsageDetail_20' ) start [2025-02-22 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534057', 'tblTempUsageDetail_20' ) end [2025-02-22 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:51:23] Production.INFO: ==20801== Releasing lock... [2025-02-22 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:51:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:52:06 [end_date_ymd] => 2025-02-22 17:52:06 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:52:06' and `end` < '2025-02-22 17: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-02-22 17:52:18] Production.INFO: count ==2049 [2025-02-22 17:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:52:06 - End Time 2025-02-22 17:52:06 [2025-02-22 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534062', 'tblTempUsageDetail_20' ) start [2025-02-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534062', 'tblTempUsageDetail_20' ) end [2025-02-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534062', 'tblTempVendorCDR_20' ) start [2025-02-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534062', 'tblTempVendorCDR_20' ) end [2025-02-22 17:52:18] Production.INFO: ProcessCDR(1,14534062,1,1,2) [2025-02-22 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534062', 'tblTempUsageDetail_20' ) start [2025-02-22 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534062', 'tblTempUsageDetail_20' ) end [2025-02-22 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:52:23] Production.INFO: ==20915== Releasing lock... [2025-02-22 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:52:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:53:05 [end_date_ymd] => 2025-02-22 17:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:53:05' and `end` < '2025-02-22 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-02-22 17:53:17] Production.INFO: count ==2041 [2025-02-22 17:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:53:05 - End Time 2025-02-22 17:53:05 [2025-02-22 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534067', 'tblTempUsageDetail_20' ) start [2025-02-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534067', 'tblTempUsageDetail_20' ) end [2025-02-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534067', 'tblTempVendorCDR_20' ) start [2025-02-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534067', 'tblTempVendorCDR_20' ) end [2025-02-22 17:53:18] Production.INFO: ProcessCDR(1,14534067,1,1,2) [2025-02-22 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534067', 'tblTempUsageDetail_20' ) start [2025-02-22 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534067', 'tblTempUsageDetail_20' ) end [2025-02-22 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:53:23] Production.INFO: ==20996== Releasing lock... [2025-02-22 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:54:06 [end_date_ymd] => 2025-02-22 17:54:06 [RateCDR] => 1 ) [2025-02-22 17: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-02-22 14:54:06' and `end` < '2025-02-22 17: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-02-22 17:54:18] Production.INFO: count ==2026 [2025-02-22 17:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:54:06 - End Time 2025-02-22 17:54:06 [2025-02-22 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534072', 'tblTempUsageDetail_20' ) start [2025-02-22 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534072', 'tblTempUsageDetail_20' ) end [2025-02-22 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534072', 'tblTempVendorCDR_20' ) start [2025-02-22 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534072', 'tblTempVendorCDR_20' ) end [2025-02-22 17:54:18] Production.INFO: ProcessCDR(1,14534072,1,1,2) [2025-02-22 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534072', 'tblTempUsageDetail_20' ) start [2025-02-22 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534072', 'tblTempUsageDetail_20' ) end [2025-02-22 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:54:22] Production.INFO: ==21071== Releasing lock... [2025-02-22 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:54:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:55:05 [end_date_ymd] => 2025-02-22 17:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:55:05' and `end` < '2025-02-22 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-02-22 17:55:17] Production.INFO: count ==2025 [2025-02-22 17:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:55:05 - End Time 2025-02-22 17:55:05 [2025-02-22 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534077', 'tblTempUsageDetail_20' ) start [2025-02-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534077', 'tblTempUsageDetail_20' ) end [2025-02-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534077', 'tblTempVendorCDR_20' ) start [2025-02-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534077', 'tblTempVendorCDR_20' ) end [2025-02-22 17:55:18] Production.INFO: ProcessCDR(1,14534077,1,1,2) [2025-02-22 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534077', 'tblTempUsageDetail_20' ) start [2025-02-22 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534077', 'tblTempUsageDetail_20' ) end [2025-02-22 17:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:55:21] Production.INFO: ==21147== Releasing lock... [2025-02-22 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:55:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:56:05 [end_date_ymd] => 2025-02-22 17:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:56:05' and `end` < '2025-02-22 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-02-22 17:56:17] Production.INFO: count ==2005 [2025-02-22 17:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:56:05 - End Time 2025-02-22 17:56:05 [2025-02-22 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534082', 'tblTempUsageDetail_20' ) start [2025-02-22 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534082', 'tblTempUsageDetail_20' ) end [2025-02-22 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534082', 'tblTempVendorCDR_20' ) start [2025-02-22 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534082', 'tblTempVendorCDR_20' ) end [2025-02-22 17:56:18] Production.INFO: ProcessCDR(1,14534082,1,1,2) [2025-02-22 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534082', 'tblTempUsageDetail_20' ) start [2025-02-22 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534082', 'tblTempUsageDetail_20' ) end [2025-02-22 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:56:23] Production.INFO: ==21221== Releasing lock... [2025-02-22 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:56:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:57:05 [end_date_ymd] => 2025-02-22 17:57:05 [RateCDR] => 1 ) [2025-02-22 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 14:57:05' and `end` < '2025-02-22 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 17:57:17] Production.INFO: count ==1996 [2025-02-22 17:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 14:57:05 - End Time 2025-02-22 17:57:05 [2025-02-22 17:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534087', 'tblTempUsageDetail_20' ) start [2025-02-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534087', 'tblTempUsageDetail_20' ) end [2025-02-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534087', 'tblTempVendorCDR_20' ) start [2025-02-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534087', 'tblTempVendorCDR_20' ) end [2025-02-22 17:57:17] Production.INFO: ProcessCDR(1,14534087,1,1,2) [2025-02-22 17:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534087', 'tblTempUsageDetail_20' ) start [2025-02-22 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534087', 'tblTempUsageDetail_20' ) end [2025-02-22 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:57:22] Production.INFO: ==21300== Releasing lock... [2025-02-22 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:57:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:58:05 [end_date_ymd] => 2025-02-22 17:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:58:05' and `end` < '2025-02-22 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-02-22 17:58:17] Production.INFO: count ==2003 [2025-02-22 17:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:58:05 - End Time 2025-02-22 17:58:05 [2025-02-22 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534092', 'tblTempUsageDetail_20' ) start [2025-02-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534092', 'tblTempUsageDetail_20' ) end [2025-02-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534092', 'tblTempVendorCDR_20' ) start [2025-02-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534092', 'tblTempVendorCDR_20' ) end [2025-02-22 17:58:18] Production.INFO: ProcessCDR(1,14534092,1,1,2) [2025-02-22 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534092', 'tblTempUsageDetail_20' ) start [2025-02-22 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534092', 'tblTempUsageDetail_20' ) end [2025-02-22 17:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:58:21] Production.INFO: ==21387== Releasing lock... [2025-02-22 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:58:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 14:59:05 [end_date_ymd] => 2025-02-22 17:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 14:59:05' and `end` < '2025-02-22 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-02-22 17:59:17] Production.INFO: count ==2010 [2025-02-22 17:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 14:59:05 - End Time 2025-02-22 17:59:05 [2025-02-22 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534097', 'tblTempUsageDetail_20' ) start [2025-02-22 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534097', 'tblTempUsageDetail_20' ) end [2025-02-22 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534097', 'tblTempVendorCDR_20' ) start [2025-02-22 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534097', 'tblTempVendorCDR_20' ) end [2025-02-22 17:59:18] Production.INFO: ProcessCDR(1,14534097,1,1,2) [2025-02-22 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534097', 'tblTempUsageDetail_20' ) start [2025-02-22 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534097', 'tblTempUsageDetail_20' ) end [2025-02-22 17:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 17:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 17:59:21] Production.INFO: ==21467== Releasing lock... [2025-02-22 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 17:59:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:00:07 [end_date_ymd] => 2025-02-22 18:00:07 [RateCDR] => 1 ) [2025-02-22 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:00:07' and `end` < '2025-02-22 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:00:19] Production.INFO: count ==2017 [2025-02-22 18:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 15:00:07 - End Time 2025-02-22 18:00:07 [2025-02-22 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534103', 'tblTempUsageDetail_20' ) start [2025-02-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534103', 'tblTempUsageDetail_20' ) end [2025-02-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534103', 'tblTempVendorCDR_20' ) start [2025-02-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534103', 'tblTempVendorCDR_20' ) end [2025-02-22 18:00:20] Production.INFO: ProcessCDR(1,14534103,1,1,2) [2025-02-22 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534103', 'tblTempUsageDetail_20' ) start [2025-02-22 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534103', 'tblTempUsageDetail_20' ) end [2025-02-22 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:00:25] Production.INFO: ==21548== Releasing lock... [2025-02-22 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:00:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:01:05 [end_date_ymd] => 2025-02-22 18:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:01:05' and `end` < '2025-02-22 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-02-22 18:01:17] Production.INFO: count ==2036 [2025-02-22 18:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:01:05 - End Time 2025-02-22 18:01:05 [2025-02-22 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534108', 'tblTempUsageDetail_20' ) start [2025-02-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534108', 'tblTempUsageDetail_20' ) end [2025-02-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534108', 'tblTempVendorCDR_20' ) start [2025-02-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534108', 'tblTempVendorCDR_20' ) end [2025-02-22 18:01:18] Production.INFO: ProcessCDR(1,14534108,1,1,2) [2025-02-22 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534108', 'tblTempUsageDetail_20' ) start [2025-02-22 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534108', 'tblTempUsageDetail_20' ) end [2025-02-22 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:01:22] Production.INFO: ==21636== Releasing lock... [2025-02-22 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:01:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:02:06 [end_date_ymd] => 2025-02-22 18:02:06 [RateCDR] => 1 ) [2025-02-22 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:02:06' and `end` < '2025-02-22 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:02:18] Production.INFO: count ==2035 [2025-02-22 18:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:02:06 - End Time 2025-02-22 18:02:06 [2025-02-22 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534113', 'tblTempUsageDetail_20' ) start [2025-02-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534113', 'tblTempUsageDetail_20' ) end [2025-02-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534113', 'tblTempVendorCDR_20' ) start [2025-02-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534113', 'tblTempVendorCDR_20' ) end [2025-02-22 18:02:19] Production.INFO: ProcessCDR(1,14534113,1,1,2) [2025-02-22 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534113', 'tblTempUsageDetail_20' ) start [2025-02-22 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534113', 'tblTempUsageDetail_20' ) end [2025-02-22 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:02:24] Production.INFO: ==21718== Releasing lock... [2025-02-22 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:02:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:03:05 [end_date_ymd] => 2025-02-22 18:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:03:05' and `end` < '2025-02-22 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-02-22 18:03:17] Production.INFO: count ==2038 [2025-02-22 18:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:03:05 - End Time 2025-02-22 18:03:05 [2025-02-22 18:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534118', 'tblTempUsageDetail_20' ) start [2025-02-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534118', 'tblTempUsageDetail_20' ) end [2025-02-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534118', 'tblTempVendorCDR_20' ) start [2025-02-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534118', 'tblTempVendorCDR_20' ) end [2025-02-22 18:03:18] Production.INFO: ProcessCDR(1,14534118,1,1,2) [2025-02-22 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534118', 'tblTempUsageDetail_20' ) start [2025-02-22 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534118', 'tblTempUsageDetail_20' ) end [2025-02-22 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:03:21] Production.INFO: ==21793== Releasing lock... [2025-02-22 18:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:03:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:04:05 [end_date_ymd] => 2025-02-22 18:04:05 [RateCDR] => 1 ) [2025-02-22 18: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-02-22 15:04:05' and `end` < '2025-02-22 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:04:17] Production.INFO: count ==2036 [2025-02-22 18:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:04:05 - End Time 2025-02-22 18:04:05 [2025-02-22 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534123', 'tblTempUsageDetail_20' ) start [2025-02-22 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534123', 'tblTempUsageDetail_20' ) end [2025-02-22 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534123', 'tblTempVendorCDR_20' ) start [2025-02-22 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534123', 'tblTempVendorCDR_20' ) end [2025-02-22 18:04:18] Production.INFO: ProcessCDR(1,14534123,1,1,2) [2025-02-22 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534123', 'tblTempUsageDetail_20' ) start [2025-02-22 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534123', 'tblTempUsageDetail_20' ) end [2025-02-22 18:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:04:21] Production.INFO: ==21868== Releasing lock... [2025-02-22 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:04:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:05:05 [end_date_ymd] => 2025-02-22 18:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:05:05' and `end` < '2025-02-22 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-02-22 18:05:17] Production.INFO: count ==2028 [2025-02-22 18:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:05:05 - End Time 2025-02-22 18:05:05 [2025-02-22 18:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534128', 'tblTempUsageDetail_20' ) start [2025-02-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534128', 'tblTempUsageDetail_20' ) end [2025-02-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534128', 'tblTempVendorCDR_20' ) start [2025-02-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534128', 'tblTempVendorCDR_20' ) end [2025-02-22 18:05:17] Production.INFO: ProcessCDR(1,14534128,1,1,2) [2025-02-22 18:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534128', 'tblTempUsageDetail_20' ) start [2025-02-22 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534128', 'tblTempUsageDetail_20' ) end [2025-02-22 18:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:05:21] Production.INFO: ==21939== Releasing lock... [2025-02-22 18:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:05:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:06:05 [end_date_ymd] => 2025-02-22 18:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:06:05' and `end` < '2025-02-22 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-02-22 18:06:17] Production.INFO: count ==2013 [2025-02-22 18:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:06:05 - End Time 2025-02-22 18:06:05 [2025-02-22 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534133', 'tblTempUsageDetail_20' ) start [2025-02-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534133', 'tblTempUsageDetail_20' ) end [2025-02-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534133', 'tblTempVendorCDR_20' ) start [2025-02-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534133', 'tblTempVendorCDR_20' ) end [2025-02-22 18:06:18] Production.INFO: ProcessCDR(1,14534133,1,1,2) [2025-02-22 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534133', 'tblTempUsageDetail_20' ) start [2025-02-22 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534133', 'tblTempUsageDetail_20' ) end [2025-02-22 18:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:06:23] Production.INFO: ==22013== Releasing lock... [2025-02-22 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:06:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:07:05 [end_date_ymd] => 2025-02-22 18:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:07:05' and `end` < '2025-02-22 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-02-22 18:07:17] Production.INFO: count ==2010 [2025-02-22 18:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:07:05 - End Time 2025-02-22 18:07:05 [2025-02-22 18:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534138', 'tblTempUsageDetail_20' ) start [2025-02-22 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534138', 'tblTempUsageDetail_20' ) end [2025-02-22 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534138', 'tblTempVendorCDR_20' ) start [2025-02-22 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534138', 'tblTempVendorCDR_20' ) end [2025-02-22 18:07:17] Production.INFO: ProcessCDR(1,14534138,1,1,2) [2025-02-22 18:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534138', 'tblTempUsageDetail_20' ) start [2025-02-22 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534138', 'tblTempUsageDetail_20' ) end [2025-02-22 18:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:07:21] Production.INFO: ==22087== Releasing lock... [2025-02-22 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:07:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:08:05 [end_date_ymd] => 2025-02-22 18:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:08:05' and `end` < '2025-02-22 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-02-22 18:08:17] Production.INFO: count ==2010 [2025-02-22 18:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:08:05 - End Time 2025-02-22 18:08:05 [2025-02-22 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534143', 'tblTempUsageDetail_20' ) start [2025-02-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534143', 'tblTempUsageDetail_20' ) end [2025-02-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534143', 'tblTempVendorCDR_20' ) start [2025-02-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534143', 'tblTempVendorCDR_20' ) end [2025-02-22 18:08:18] Production.INFO: ProcessCDR(1,14534143,1,1,2) [2025-02-22 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534143', 'tblTempUsageDetail_20' ) start [2025-02-22 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534143', 'tblTempUsageDetail_20' ) end [2025-02-22 18:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:08:21] Production.INFO: ==22202== Releasing lock... [2025-02-22 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:08:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:09:05 [end_date_ymd] => 2025-02-22 18:09:05 [RateCDR] => 1 ) [2025-02-22 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:09:05' and `end` < '2025-02-22 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:09:17] Production.INFO: count ==2004 [2025-02-22 18:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:09:05 - End Time 2025-02-22 18:09:05 [2025-02-22 18:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534148', 'tblTempUsageDetail_20' ) start [2025-02-22 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534148', 'tblTempUsageDetail_20' ) end [2025-02-22 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534148', 'tblTempVendorCDR_20' ) start [2025-02-22 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534148', 'tblTempVendorCDR_20' ) end [2025-02-22 18:09:17] Production.INFO: ProcessCDR(1,14534148,1,1,2) [2025-02-22 18:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534148', 'tblTempUsageDetail_20' ) start [2025-02-22 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534148', 'tblTempUsageDetail_20' ) end [2025-02-22 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:09:21] Production.INFO: ==22275== Releasing lock... [2025-02-22 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:09:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:10:06 [end_date_ymd] => 2025-02-22 18:10:06 [RateCDR] => 1 ) [2025-02-22 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:10:06' and `end` < '2025-02-22 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:10:18] Production.INFO: count ==2003 [2025-02-22 18:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 15:10:06 - End Time 2025-02-22 18:10:06 [2025-02-22 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534154', 'tblTempUsageDetail_20' ) start [2025-02-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534154', 'tblTempUsageDetail_20' ) end [2025-02-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534154', 'tblTempVendorCDR_20' ) start [2025-02-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534154', 'tblTempVendorCDR_20' ) end [2025-02-22 18:10:19] Production.INFO: ProcessCDR(1,14534154,1,1,2) [2025-02-22 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534154', 'tblTempUsageDetail_20' ) start [2025-02-22 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534154', 'tblTempUsageDetail_20' ) end [2025-02-22 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:10:23] Production.INFO: ==22352== Releasing lock... [2025-02-22 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:10:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:11:06 [end_date_ymd] => 2025-02-22 18:11:06 [RateCDR] => 1 ) [2025-02-22 18: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-02-22 15:11:06' and `end` < '2025-02-22 18: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-02-22 18:11:18] Production.INFO: count ==2062 [2025-02-22 18:11:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:11:06 - End Time 2025-02-22 18:11:06 [2025-02-22 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534159', 'tblTempUsageDetail_20' ) start [2025-02-22 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534159', 'tblTempUsageDetail_20' ) end [2025-02-22 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534159', 'tblTempVendorCDR_20' ) start [2025-02-22 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534159', 'tblTempVendorCDR_20' ) end [2025-02-22 18:11:18] Production.INFO: ProcessCDR(1,14534159,1,1,2) [2025-02-22 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534159', 'tblTempUsageDetail_20' ) start [2025-02-22 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534159', 'tblTempUsageDetail_20' ) end [2025-02-22 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:11:23] Production.INFO: ==22431== Releasing lock... [2025-02-22 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:11:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:12:05 [end_date_ymd] => 2025-02-22 18:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:12:05' and `end` < '2025-02-22 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-02-22 18:12:17] Production.INFO: count ==2057 [2025-02-22 18:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:12:05 - End Time 2025-02-22 18:12:05 [2025-02-22 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534164', 'tblTempUsageDetail_20' ) start [2025-02-22 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534164', 'tblTempUsageDetail_20' ) end [2025-02-22 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534164', 'tblTempVendorCDR_20' ) start [2025-02-22 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534164', 'tblTempVendorCDR_20' ) end [2025-02-22 18:12:18] Production.INFO: ProcessCDR(1,14534164,1,1,2) [2025-02-22 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534164', 'tblTempUsageDetail_20' ) start [2025-02-22 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534164', 'tblTempUsageDetail_20' ) end [2025-02-22 18:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:12:22] Production.INFO: ==22517== Releasing lock... [2025-02-22 18:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:12:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:13:05 [end_date_ymd] => 2025-02-22 18:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:13:05' and `end` < '2025-02-22 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-02-22 18:13:18] Production.INFO: count ==2053 [2025-02-22 18:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:13:05 - End Time 2025-02-22 18:13:05 [2025-02-22 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534169', 'tblTempUsageDetail_20' ) start [2025-02-22 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534169', 'tblTempUsageDetail_20' ) end [2025-02-22 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534169', 'tblTempVendorCDR_20' ) start [2025-02-22 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534169', 'tblTempVendorCDR_20' ) end [2025-02-22 18:13:18] Production.INFO: ProcessCDR(1,14534169,1,1,2) [2025-02-22 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534169', 'tblTempUsageDetail_20' ) start [2025-02-22 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534169', 'tblTempUsageDetail_20' ) end [2025-02-22 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:13:22] Production.INFO: ==22603== Releasing lock... [2025-02-22 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:13:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:14:05 [end_date_ymd] => 2025-02-22 18:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:14:05' and `end` < '2025-02-22 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-02-22 18:14:17] Production.INFO: count ==2053 [2025-02-22 18:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:14:05 - End Time 2025-02-22 18:14:05 [2025-02-22 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534174', 'tblTempUsageDetail_20' ) start [2025-02-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534174', 'tblTempUsageDetail_20' ) end [2025-02-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534174', 'tblTempVendorCDR_20' ) start [2025-02-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534174', 'tblTempVendorCDR_20' ) end [2025-02-22 18:14:18] Production.INFO: ProcessCDR(1,14534174,1,1,2) [2025-02-22 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534174', 'tblTempUsageDetail_20' ) start [2025-02-22 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534174', 'tblTempUsageDetail_20' ) end [2025-02-22 18:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:14:21] Production.INFO: ==22681== Releasing lock... [2025-02-22 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:14:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:15:05 [end_date_ymd] => 2025-02-22 18:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:15:05' and `end` < '2025-02-22 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-02-22 18:15:17] Production.INFO: count ==2050 [2025-02-22 18:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:15:05 - End Time 2025-02-22 18:15:05 [2025-02-22 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534179', 'tblTempUsageDetail_20' ) start [2025-02-22 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534179', 'tblTempUsageDetail_20' ) end [2025-02-22 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534179', 'tblTempVendorCDR_20' ) start [2025-02-22 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534179', 'tblTempVendorCDR_20' ) end [2025-02-22 18:15:18] Production.INFO: ProcessCDR(1,14534179,1,1,2) [2025-02-22 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534179', 'tblTempUsageDetail_20' ) start [2025-02-22 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534179', 'tblTempUsageDetail_20' ) end [2025-02-22 18:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:15:21] Production.INFO: ==22755== Releasing lock... [2025-02-22 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:15:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:16:05 [end_date_ymd] => 2025-02-22 18:16:05 [RateCDR] => 1 ) [2025-02-22 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:16:05' and `end` < '2025-02-22 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:16:17] Production.INFO: count ==2051 [2025-02-22 18:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:16:05 - End Time 2025-02-22 18:16:05 [2025-02-22 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534184', 'tblTempUsageDetail_20' ) start [2025-02-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534184', 'tblTempUsageDetail_20' ) end [2025-02-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534184', 'tblTempVendorCDR_20' ) start [2025-02-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534184', 'tblTempVendorCDR_20' ) end [2025-02-22 18:16:18] Production.INFO: ProcessCDR(1,14534184,1,1,2) [2025-02-22 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534184', 'tblTempUsageDetail_20' ) start [2025-02-22 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534184', 'tblTempUsageDetail_20' ) end [2025-02-22 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:16:22] Production.INFO: ==22834== Releasing lock... [2025-02-22 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:16:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:17:05 [end_date_ymd] => 2025-02-22 18:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:17:05' and `end` < '2025-02-22 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-02-22 18:17:17] Production.INFO: count ==2042 [2025-02-22 18:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:17:05 - End Time 2025-02-22 18:17:05 [2025-02-22 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534189', 'tblTempUsageDetail_20' ) start [2025-02-22 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534189', 'tblTempUsageDetail_20' ) end [2025-02-22 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534189', 'tblTempVendorCDR_20' ) start [2025-02-22 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534189', 'tblTempVendorCDR_20' ) end [2025-02-22 18:17:18] Production.INFO: ProcessCDR(1,14534189,1,1,2) [2025-02-22 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534189', 'tblTempUsageDetail_20' ) start [2025-02-22 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534189', 'tblTempUsageDetail_20' ) end [2025-02-22 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:17:21] Production.INFO: ==22907== Releasing lock... [2025-02-22 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:17:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:18:05 [end_date_ymd] => 2025-02-22 18:18:05 [RateCDR] => 1 ) [2025-02-22 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:18:05' and `end` < '2025-02-22 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:18:17] Production.INFO: count ==2035 [2025-02-22 18:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:18:05 - End Time 2025-02-22 18:18:05 [2025-02-22 18:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534194', 'tblTempUsageDetail_20' ) start [2025-02-22 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534194', 'tblTempUsageDetail_20' ) end [2025-02-22 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534194', 'tblTempVendorCDR_20' ) start [2025-02-22 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534194', 'tblTempVendorCDR_20' ) end [2025-02-22 18:18:17] Production.INFO: ProcessCDR(1,14534194,1,1,2) [2025-02-22 18:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534194', 'tblTempUsageDetail_20' ) start [2025-02-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534194', 'tblTempUsageDetail_20' ) end [2025-02-22 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:18:22] Production.INFO: ==22979== Releasing lock... [2025-02-22 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:18:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:19:05 [end_date_ymd] => 2025-02-22 18:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:19:05' and `end` < '2025-02-22 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-02-22 18:19:18] Production.INFO: count ==2040 [2025-02-22 18:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:19:05 - End Time 2025-02-22 18:19:05 [2025-02-22 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534199', 'tblTempUsageDetail_20' ) start [2025-02-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534199', 'tblTempUsageDetail_20' ) end [2025-02-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534199', 'tblTempVendorCDR_20' ) start [2025-02-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534199', 'tblTempVendorCDR_20' ) end [2025-02-22 18:19:18] Production.INFO: ProcessCDR(1,14534199,1,1,2) [2025-02-22 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534199', 'tblTempUsageDetail_20' ) start [2025-02-22 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534199', 'tblTempUsageDetail_20' ) end [2025-02-22 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:19:23] Production.INFO: ==23070== Releasing lock... [2025-02-22 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:19:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:20:06 [end_date_ymd] => 2025-02-22 18:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:20:06' and `end` < '2025-02-22 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-02-22 18:20:18] Production.INFO: count ==2046 [2025-02-22 18:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:20:06 - End Time 2025-02-22 18:20:06 [2025-02-22 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534205', 'tblTempUsageDetail_20' ) start [2025-02-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534205', 'tblTempUsageDetail_20' ) end [2025-02-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534205', 'tblTempVendorCDR_20' ) start [2025-02-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534205', 'tblTempVendorCDR_20' ) end [2025-02-22 18:20:18] Production.INFO: ProcessCDR(1,14534205,1,1,2) [2025-02-22 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534205', 'tblTempUsageDetail_20' ) start [2025-02-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534205', 'tblTempUsageDetail_20' ) end [2025-02-22 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:20:22] Production.INFO: ==23171== Releasing lock... [2025-02-22 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:20:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:21:05 [end_date_ymd] => 2025-02-22 18:21:05 [RateCDR] => 1 ) [2025-02-22 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:21:05' and `end` < '2025-02-22 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:21:17] Production.INFO: count ==2046 [2025-02-22 18:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:21:05 - End Time 2025-02-22 18:21:05 [2025-02-22 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534210', 'tblTempUsageDetail_20' ) start [2025-02-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534210', 'tblTempUsageDetail_20' ) end [2025-02-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534210', 'tblTempVendorCDR_20' ) start [2025-02-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534210', 'tblTempVendorCDR_20' ) end [2025-02-22 18:21:18] Production.INFO: ProcessCDR(1,14534210,1,1,2) [2025-02-22 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534210', 'tblTempUsageDetail_20' ) start [2025-02-22 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534210', 'tblTempUsageDetail_20' ) end [2025-02-22 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:21:21] Production.INFO: ==23272== Releasing lock... [2025-02-22 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:21:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:22:05 [end_date_ymd] => 2025-02-22 18:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:22:05' and `end` < '2025-02-22 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-02-22 18:22:17] Production.INFO: count ==2049 [2025-02-22 18:22:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:22:05 - End Time 2025-02-22 18:22:05 [2025-02-22 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534215', 'tblTempUsageDetail_20' ) start [2025-02-22 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534215', 'tblTempUsageDetail_20' ) end [2025-02-22 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534215', 'tblTempVendorCDR_20' ) start [2025-02-22 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534215', 'tblTempVendorCDR_20' ) end [2025-02-22 18:22:18] Production.INFO: ProcessCDR(1,14534215,1,1,2) [2025-02-22 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534215', 'tblTempUsageDetail_20' ) start [2025-02-22 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534215', 'tblTempUsageDetail_20' ) end [2025-02-22 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:22:21] Production.INFO: ==23373== Releasing lock... [2025-02-22 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:22:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:23:05 [end_date_ymd] => 2025-02-22 18:23:05 [RateCDR] => 1 ) [2025-02-22 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:23:05' and `end` < '2025-02-22 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:23:17] Production.INFO: count ==2048 [2025-02-22 18:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:23:05 - End Time 2025-02-22 18:23:05 [2025-02-22 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534220', 'tblTempUsageDetail_20' ) start [2025-02-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534220', 'tblTempUsageDetail_20' ) end [2025-02-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534220', 'tblTempVendorCDR_20' ) start [2025-02-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534220', 'tblTempVendorCDR_20' ) end [2025-02-22 18:23:18] Production.INFO: ProcessCDR(1,14534220,1,1,2) [2025-02-22 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534220', 'tblTempUsageDetail_20' ) start [2025-02-22 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534220', 'tblTempUsageDetail_20' ) end [2025-02-22 18:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:23:21] Production.INFO: ==23516== Releasing lock... [2025-02-22 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:23:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:24:05 [end_date_ymd] => 2025-02-22 18:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:24:05' and `end` < '2025-02-22 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-02-22 18:24:18] Production.INFO: count ==2027 [2025-02-22 18:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:24:05 - End Time 2025-02-22 18:24:05 [2025-02-22 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534225', 'tblTempUsageDetail_20' ) start [2025-02-22 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534225', 'tblTempUsageDetail_20' ) end [2025-02-22 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534225', 'tblTempVendorCDR_20' ) start [2025-02-22 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534225', 'tblTempVendorCDR_20' ) end [2025-02-22 18:24:18] Production.INFO: ProcessCDR(1,14534225,1,1,2) [2025-02-22 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534225', 'tblTempUsageDetail_20' ) start [2025-02-22 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534225', 'tblTempUsageDetail_20' ) end [2025-02-22 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:24:23] Production.INFO: ==23625== Releasing lock... [2025-02-22 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:24:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:25:05 [end_date_ymd] => 2025-02-22 18:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:25:05' and `end` < '2025-02-22 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-02-22 18:25:17] Production.INFO: count ==2020 [2025-02-22 18:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:25:05 - End Time 2025-02-22 18:25:05 [2025-02-22 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534230', 'tblTempUsageDetail_20' ) start [2025-02-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534230', 'tblTempUsageDetail_20' ) end [2025-02-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534230', 'tblTempVendorCDR_20' ) start [2025-02-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534230', 'tblTempVendorCDR_20' ) end [2025-02-22 18:25:17] Production.INFO: ProcessCDR(1,14534230,1,1,2) [2025-02-22 18:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534230', 'tblTempUsageDetail_20' ) start [2025-02-22 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534230', 'tblTempUsageDetail_20' ) end [2025-02-22 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:25:22] Production.INFO: ==23766== Releasing lock... [2025-02-22 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:25:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:26:05 [end_date_ymd] => 2025-02-22 18:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:26:05' and `end` < '2025-02-22 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-02-22 18:26:17] Production.INFO: count ==2011 [2025-02-22 18:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:26:05 - End Time 2025-02-22 18:26:05 [2025-02-22 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534235', 'tblTempUsageDetail_20' ) start [2025-02-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534235', 'tblTempUsageDetail_20' ) end [2025-02-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534235', 'tblTempVendorCDR_20' ) start [2025-02-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534235', 'tblTempVendorCDR_20' ) end [2025-02-22 18:26:18] Production.INFO: ProcessCDR(1,14534235,1,1,2) [2025-02-22 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534235', 'tblTempUsageDetail_20' ) start [2025-02-22 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534235', 'tblTempUsageDetail_20' ) end [2025-02-22 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:26:22] Production.INFO: ==23908== Releasing lock... [2025-02-22 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:26:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:27:05 [end_date_ymd] => 2025-02-22 18:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:27:05' and `end` < '2025-02-22 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-02-22 18:27:17] Production.INFO: count ==2007 [2025-02-22 18:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:27:05 - End Time 2025-02-22 18:27:05 [2025-02-22 18:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534240', 'tblTempUsageDetail_20' ) start [2025-02-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534240', 'tblTempUsageDetail_20' ) end [2025-02-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534240', 'tblTempVendorCDR_20' ) start [2025-02-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534240', 'tblTempVendorCDR_20' ) end [2025-02-22 18:27:17] Production.INFO: ProcessCDR(1,14534240,1,1,2) [2025-02-22 18:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534240', 'tblTempUsageDetail_20' ) start [2025-02-22 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534240', 'tblTempUsageDetail_20' ) end [2025-02-22 18:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:27:21] Production.INFO: ==24041== Releasing lock... [2025-02-22 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:27:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:28:05 [end_date_ymd] => 2025-02-22 18:28:05 [RateCDR] => 1 ) [2025-02-22 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:28:05' and `end` < '2025-02-22 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:28:17] Production.INFO: count ==1993 [2025-02-22 18:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:28:05 - End Time 2025-02-22 18:28:05 [2025-02-22 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534245', 'tblTempUsageDetail_20' ) start [2025-02-22 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534245', 'tblTempUsageDetail_20' ) end [2025-02-22 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534245', 'tblTempVendorCDR_20' ) start [2025-02-22 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534245', 'tblTempVendorCDR_20' ) end [2025-02-22 18:28:18] Production.INFO: ProcessCDR(1,14534245,1,1,2) [2025-02-22 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534245', 'tblTempUsageDetail_20' ) start [2025-02-22 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534245', 'tblTempUsageDetail_20' ) end [2025-02-22 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:28:22] Production.INFO: ==24180== Releasing lock... [2025-02-22 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:28:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:29:05 [end_date_ymd] => 2025-02-22 18:29:05 [RateCDR] => 1 ) [2025-02-22 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:29:05' and `end` < '2025-02-22 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:29:17] Production.INFO: count ==1983 [2025-02-22 18:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:29:05 - End Time 2025-02-22 18:29:05 [2025-02-22 18:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534250', 'tblTempUsageDetail_20' ) start [2025-02-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534250', 'tblTempUsageDetail_20' ) end [2025-02-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534250', 'tblTempVendorCDR_20' ) start [2025-02-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534250', 'tblTempVendorCDR_20' ) end [2025-02-22 18:29:17] Production.INFO: ProcessCDR(1,14534250,1,1,2) [2025-02-22 18:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534250', 'tblTempUsageDetail_20' ) start [2025-02-22 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534250', 'tblTempUsageDetail_20' ) end [2025-02-22 18:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:29:21] Production.INFO: ==24313== Releasing lock... [2025-02-22 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:29:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:30:06 [end_date_ymd] => 2025-02-22 18:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:30:06' and `end` < '2025-02-22 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-02-22 18:30:18] Production.INFO: count ==1974 [2025-02-22 18:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 15:30:06 - End Time 2025-02-22 18:30:06 [2025-02-22 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534256', 'tblTempUsageDetail_20' ) start [2025-02-22 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534256', 'tblTempUsageDetail_20' ) end [2025-02-22 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534256', 'tblTempVendorCDR_20' ) start [2025-02-22 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534256', 'tblTempVendorCDR_20' ) end [2025-02-22 18:30:19] Production.INFO: ProcessCDR(1,14534256,1,1,2) [2025-02-22 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534256', 'tblTempUsageDetail_20' ) start [2025-02-22 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534256', 'tblTempUsageDetail_20' ) end [2025-02-22 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:30:22] Production.INFO: ==24450== Releasing lock... [2025-02-22 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:30:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:31:04 [end_date_ymd] => 2025-02-22 18:31:04 [RateCDR] => 1 ) [2025-02-22 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:31:04' and `end` < '2025-02-22 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-02-22 18:31:17] Production.INFO: count ==1980 [2025-02-22 18:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:31:04 - End Time 2025-02-22 18:31:04 [2025-02-22 18:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534261', 'tblTempUsageDetail_20' ) start [2025-02-22 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534261', 'tblTempUsageDetail_20' ) end [2025-02-22 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534261', 'tblTempVendorCDR_20' ) start [2025-02-22 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534261', 'tblTempVendorCDR_20' ) end [2025-02-22 18:31:17] Production.INFO: ProcessCDR(1,14534261,1,1,2) [2025-02-22 18:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534261', 'tblTempUsageDetail_20' ) start [2025-02-22 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534261', 'tblTempUsageDetail_20' ) end [2025-02-22 18:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:31:20] Production.INFO: ==24583== Releasing lock... [2025-02-22 18:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:31:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:32:05 [end_date_ymd] => 2025-02-22 18:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:32:05' and `end` < '2025-02-22 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-02-22 18:32:17] Production.INFO: count ==1977 [2025-02-22 18:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:32:05 - End Time 2025-02-22 18:32:05 [2025-02-22 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534266', 'tblTempUsageDetail_20' ) start [2025-02-22 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534266', 'tblTempUsageDetail_20' ) end [2025-02-22 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534266', 'tblTempVendorCDR_20' ) start [2025-02-22 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534266', 'tblTempVendorCDR_20' ) end [2025-02-22 18:32:18] Production.INFO: ProcessCDR(1,14534266,1,1,2) [2025-02-22 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534266', 'tblTempUsageDetail_20' ) start [2025-02-22 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534266', 'tblTempUsageDetail_20' ) end [2025-02-22 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:32:23] Production.INFO: ==24720== Releasing lock... [2025-02-22 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:32:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:33:05 [end_date_ymd] => 2025-02-22 18:33:05 [RateCDR] => 1 ) [2025-02-22 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:33:05' and `end` < '2025-02-22 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:33:17] Production.INFO: count ==1967 [2025-02-22 18:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:33:05 - End Time 2025-02-22 18:33:05 [2025-02-22 18:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534271', 'tblTempUsageDetail_20' ) start [2025-02-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534271', 'tblTempUsageDetail_20' ) end [2025-02-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534271', 'tblTempVendorCDR_20' ) start [2025-02-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534271', 'tblTempVendorCDR_20' ) end [2025-02-22 18:33:17] Production.INFO: ProcessCDR(1,14534271,1,1,2) [2025-02-22 18:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534271', 'tblTempUsageDetail_20' ) start [2025-02-22 18:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534271', 'tblTempUsageDetail_20' ) end [2025-02-22 18:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:33:20] Production.INFO: ==24856== Releasing lock... [2025-02-22 18:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:33:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:34:05 [end_date_ymd] => 2025-02-22 18:34:05 [RateCDR] => 1 ) [2025-02-22 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:34:05' and `end` < '2025-02-22 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:34:17] Production.INFO: count ==1960 [2025-02-22 18:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:34:05 - End Time 2025-02-22 18:34:05 [2025-02-22 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534276', 'tblTempUsageDetail_20' ) start [2025-02-22 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534276', 'tblTempUsageDetail_20' ) end [2025-02-22 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534276', 'tblTempVendorCDR_20' ) start [2025-02-22 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534276', 'tblTempVendorCDR_20' ) end [2025-02-22 18:34:18] Production.INFO: ProcessCDR(1,14534276,1,1,2) [2025-02-22 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534276', 'tblTempUsageDetail_20' ) start [2025-02-22 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534276', 'tblTempUsageDetail_20' ) end [2025-02-22 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:34:21] Production.INFO: ==24995== Releasing lock... [2025-02-22 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:34:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:35:06 [end_date_ymd] => 2025-02-22 18:35:06 [RateCDR] => 1 ) [2025-02-22 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:35:06' and `end` < '2025-02-22 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:35:18] Production.INFO: count ==1955 [2025-02-22 18:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:35:06 - End Time 2025-02-22 18:35:06 [2025-02-22 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534281', 'tblTempUsageDetail_20' ) start [2025-02-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534281', 'tblTempUsageDetail_20' ) end [2025-02-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534281', 'tblTempVendorCDR_20' ) start [2025-02-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534281', 'tblTempVendorCDR_20' ) end [2025-02-22 18:35:18] Production.INFO: ProcessCDR(1,14534281,1,1,2) [2025-02-22 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534281', 'tblTempUsageDetail_20' ) start [2025-02-22 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534281', 'tblTempUsageDetail_20' ) end [2025-02-22 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:35:23] Production.INFO: ==25132== Releasing lock... [2025-02-22 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:35:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:36:05 [end_date_ymd] => 2025-02-22 18:36:05 [RateCDR] => 1 ) [2025-02-22 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:36:05' and `end` < '2025-02-22 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:36:17] Production.INFO: count ==1932 [2025-02-22 18:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:36:05 - End Time 2025-02-22 18:36:05 [2025-02-22 18:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534286', 'tblTempUsageDetail_20' ) start [2025-02-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534286', 'tblTempUsageDetail_20' ) end [2025-02-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534286', 'tblTempVendorCDR_20' ) start [2025-02-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534286', 'tblTempVendorCDR_20' ) end [2025-02-22 18:36:17] Production.INFO: ProcessCDR(1,14534286,1,1,2) [2025-02-22 18:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534286', 'tblTempUsageDetail_20' ) start [2025-02-22 18:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534286', 'tblTempUsageDetail_20' ) end [2025-02-22 18:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:36:20] Production.INFO: ==25269== Releasing lock... [2025-02-22 18:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:36:20] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:37:05 [end_date_ymd] => 2025-02-22 18:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:37:05' and `end` < '2025-02-22 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-02-22 18:37:17] Production.INFO: count ==1924 [2025-02-22 18:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:37:05 - End Time 2025-02-22 18:37:05 [2025-02-22 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534291', 'tblTempUsageDetail_20' ) start [2025-02-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534291', 'tblTempUsageDetail_20' ) end [2025-02-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534291', 'tblTempVendorCDR_20' ) start [2025-02-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534291', 'tblTempVendorCDR_20' ) end [2025-02-22 18:37:18] Production.INFO: ProcessCDR(1,14534291,1,1,2) [2025-02-22 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534291', 'tblTempUsageDetail_20' ) start [2025-02-22 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534291', 'tblTempUsageDetail_20' ) end [2025-02-22 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:37:22] Production.INFO: ==25388== Releasing lock... [2025-02-22 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:37:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:38:05 [end_date_ymd] => 2025-02-22 18:38:05 [RateCDR] => 1 ) [2025-02-22 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:38:05' and `end` < '2025-02-22 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:38:17] Production.INFO: count ==1914 [2025-02-22 18:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:38:05 - End Time 2025-02-22 18:38:05 [2025-02-22 18:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534296', 'tblTempUsageDetail_20' ) start [2025-02-22 18:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534296', 'tblTempUsageDetail_20' ) end [2025-02-22 18:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534296', 'tblTempVendorCDR_20' ) start [2025-02-22 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534296', 'tblTempVendorCDR_20' ) end [2025-02-22 18:38:18] Production.INFO: ProcessCDR(1,14534296,1,1,2) [2025-02-22 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534296', 'tblTempUsageDetail_20' ) start [2025-02-22 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534296', 'tblTempUsageDetail_20' ) end [2025-02-22 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:38:22] Production.INFO: ==25503== Releasing lock... [2025-02-22 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:38:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:39:05 [end_date_ymd] => 2025-02-22 18:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:39:05' and `end` < '2025-02-22 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-02-22 18:39:17] Production.INFO: count ==1894 [2025-02-22 18:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:39:05 - End Time 2025-02-22 18:39:05 [2025-02-22 18:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534301', 'tblTempUsageDetail_20' ) start [2025-02-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534301', 'tblTempUsageDetail_20' ) end [2025-02-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534301', 'tblTempVendorCDR_20' ) start [2025-02-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534301', 'tblTempVendorCDR_20' ) end [2025-02-22 18:39:17] Production.INFO: ProcessCDR(1,14534301,1,1,2) [2025-02-22 18:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534301', 'tblTempUsageDetail_20' ) start [2025-02-22 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534301', 'tblTempUsageDetail_20' ) end [2025-02-22 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:39:22] Production.INFO: ==25656== Releasing lock... [2025-02-22 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:40:06 [end_date_ymd] => 2025-02-22 18:40:06 [RateCDR] => 1 ) [2025-02-22 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:40:06' and `end` < '2025-02-22 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:40:18] Production.INFO: count ==1890 [2025-02-22 18:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:40:06 - End Time 2025-02-22 18:40:06 [2025-02-22 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534306', 'tblTempUsageDetail_20' ) start [2025-02-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534306', 'tblTempUsageDetail_20' ) end [2025-02-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534306', 'tblTempVendorCDR_20' ) start [2025-02-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534306', 'tblTempVendorCDR_20' ) end [2025-02-22 18:40:18] Production.INFO: ProcessCDR(1,14534306,1,1,2) [2025-02-22 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534306', 'tblTempUsageDetail_20' ) start [2025-02-22 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534306', 'tblTempUsageDetail_20' ) end [2025-02-22 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:40:22] Production.INFO: ==25770== Releasing lock... [2025-02-22 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:40:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:41:05 [end_date_ymd] => 2025-02-22 18:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:41:05' and `end` < '2025-02-22 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-02-22 18:41:17] Production.INFO: count ==1917 [2025-02-22 18:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:41:05 - End Time 2025-02-22 18:41:05 [2025-02-22 18:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534312', 'tblTempUsageDetail_20' ) start [2025-02-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534312', 'tblTempUsageDetail_20' ) end [2025-02-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534312', 'tblTempVendorCDR_20' ) start [2025-02-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534312', 'tblTempVendorCDR_20' ) end [2025-02-22 18:41:17] Production.INFO: ProcessCDR(1,14534312,1,1,2) [2025-02-22 18:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534312', 'tblTempUsageDetail_20' ) start [2025-02-22 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534312', 'tblTempUsageDetail_20' ) end [2025-02-22 18:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:41:21] Production.INFO: ==25880== Releasing lock... [2025-02-22 18:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:41:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:42:05 [end_date_ymd] => 2025-02-22 18:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:42:05' and `end` < '2025-02-22 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-02-22 18:42:17] Production.INFO: count ==1918 [2025-02-22 18:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:42:05 - End Time 2025-02-22 18:42:05 [2025-02-22 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534317', 'tblTempUsageDetail_20' ) start [2025-02-22 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534317', 'tblTempUsageDetail_20' ) end [2025-02-22 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534317', 'tblTempVendorCDR_20' ) start [2025-02-22 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534317', 'tblTempVendorCDR_20' ) end [2025-02-22 18:42:18] Production.INFO: ProcessCDR(1,14534317,1,1,2) [2025-02-22 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534317', 'tblTempUsageDetail_20' ) start [2025-02-22 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534317', 'tblTempUsageDetail_20' ) end [2025-02-22 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:42:23] Production.INFO: ==26002== Releasing lock... [2025-02-22 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:42:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:43:05 [end_date_ymd] => 2025-02-22 18:43:05 [RateCDR] => 1 ) [2025-02-22 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:43:05' and `end` < '2025-02-22 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:43:17] Production.INFO: count ==2005 [2025-02-22 18:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:43:05 - End Time 2025-02-22 18:43:05 [2025-02-22 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534322', 'tblTempUsageDetail_20' ) start [2025-02-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534322', 'tblTempUsageDetail_20' ) end [2025-02-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534322', 'tblTempVendorCDR_20' ) start [2025-02-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534322', 'tblTempVendorCDR_20' ) end [2025-02-22 18:43:18] Production.INFO: ProcessCDR(1,14534322,1,1,2) [2025-02-22 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534322', 'tblTempUsageDetail_20' ) start [2025-02-22 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534322', 'tblTempUsageDetail_20' ) end [2025-02-22 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:43:22] Production.INFO: ==26125== Releasing lock... [2025-02-22 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:43:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:44:05 [end_date_ymd] => 2025-02-22 18:44:05 [RateCDR] => 1 ) [2025-02-22 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:44:05' and `end` < '2025-02-22 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:44:18] Production.INFO: count ==2004 [2025-02-22 18:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:44:05 - End Time 2025-02-22 18:44:05 [2025-02-22 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534327', 'tblTempUsageDetail_20' ) start [2025-02-22 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534327', 'tblTempUsageDetail_20' ) end [2025-02-22 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534327', 'tblTempVendorCDR_20' ) start [2025-02-22 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534327', 'tblTempVendorCDR_20' ) end [2025-02-22 18:44:18] Production.INFO: ProcessCDR(1,14534327,1,1,2) [2025-02-22 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534327', 'tblTempUsageDetail_20' ) start [2025-02-22 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534327', 'tblTempUsageDetail_20' ) end [2025-02-22 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:44:23] Production.INFO: ==26240== Releasing lock... [2025-02-22 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:44:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:45:04 [end_date_ymd] => 2025-02-22 18:45:04 [RateCDR] => 1 ) [2025-02-22 18:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:45:04' and `end` < '2025-02-22 18:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:45:17] Production.INFO: count ==2007 [2025-02-22 18:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:45:04 - End Time 2025-02-22 18:45:04 [2025-02-22 18:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534332', 'tblTempUsageDetail_20' ) start [2025-02-22 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534332', 'tblTempUsageDetail_20' ) end [2025-02-22 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534332', 'tblTempVendorCDR_20' ) start [2025-02-22 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534332', 'tblTempVendorCDR_20' ) end [2025-02-22 18:45:17] Production.INFO: ProcessCDR(1,14534332,1,1,2) [2025-02-22 18:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534332', 'tblTempUsageDetail_20' ) start [2025-02-22 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534332', 'tblTempUsageDetail_20' ) end [2025-02-22 18:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:45:21] Production.INFO: ==26374== Releasing lock... [2025-02-22 18:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:45:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:46:05 [end_date_ymd] => 2025-02-22 18:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:46:05' and `end` < '2025-02-22 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-02-22 18:46:17] Production.INFO: count ==2012 [2025-02-22 18:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:46:05 - End Time 2025-02-22 18:46:05 [2025-02-22 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534337', 'tblTempUsageDetail_20' ) start [2025-02-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534337', 'tblTempUsageDetail_20' ) end [2025-02-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534337', 'tblTempVendorCDR_20' ) start [2025-02-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534337', 'tblTempVendorCDR_20' ) end [2025-02-22 18:46:18] Production.INFO: ProcessCDR(1,14534337,1,1,2) [2025-02-22 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534337', 'tblTempUsageDetail_20' ) start [2025-02-22 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534337', 'tblTempUsageDetail_20' ) end [2025-02-22 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:46:22] Production.INFO: ==26489== Releasing lock... [2025-02-22 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:47:06 [end_date_ymd] => 2025-02-22 18:47:06 [RateCDR] => 1 ) [2025-02-22 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:47:06' and `end` < '2025-02-22 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:47:18] Production.INFO: count ==2003 [2025-02-22 18:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:47:06 - End Time 2025-02-22 18:47:06 [2025-02-22 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534342', 'tblTempUsageDetail_20' ) start [2025-02-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534342', 'tblTempUsageDetail_20' ) end [2025-02-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534342', 'tblTempVendorCDR_20' ) start [2025-02-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534342', 'tblTempVendorCDR_20' ) end [2025-02-22 18:47:18] Production.INFO: ProcessCDR(1,14534342,1,1,2) [2025-02-22 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534342', 'tblTempUsageDetail_20' ) start [2025-02-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534342', 'tblTempUsageDetail_20' ) end [2025-02-22 18:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:47:21] Production.INFO: ==26625== Releasing lock... [2025-02-22 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:47:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:48:05 [end_date_ymd] => 2025-02-22 18:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:48:05' and `end` < '2025-02-22 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-02-22 18:48:17] Production.INFO: count ==2005 [2025-02-22 18:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:48:05 - End Time 2025-02-22 18:48:05 [2025-02-22 18:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534347', 'tblTempUsageDetail_20' ) start [2025-02-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534347', 'tblTempUsageDetail_20' ) end [2025-02-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534347', 'tblTempVendorCDR_20' ) start [2025-02-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534347', 'tblTempVendorCDR_20' ) end [2025-02-22 18:48:17] Production.INFO: ProcessCDR(1,14534347,1,1,2) [2025-02-22 18:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534347', 'tblTempUsageDetail_20' ) start [2025-02-22 18:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534347', 'tblTempUsageDetail_20' ) end [2025-02-22 18:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:48:20] Production.INFO: ==26744== Releasing lock... [2025-02-22 18:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:48:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:49:05 [end_date_ymd] => 2025-02-22 18:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:49:05' and `end` < '2025-02-22 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-02-22 18:49:17] Production.INFO: count ==2005 [2025-02-22 18:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:49:05 - End Time 2025-02-22 18:49:05 [2025-02-22 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534352', 'tblTempUsageDetail_20' ) start [2025-02-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534352', 'tblTempUsageDetail_20' ) end [2025-02-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534352', 'tblTempVendorCDR_20' ) start [2025-02-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534352', 'tblTempVendorCDR_20' ) end [2025-02-22 18:49:18] Production.INFO: ProcessCDR(1,14534352,1,1,2) [2025-02-22 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534352', 'tblTempUsageDetail_20' ) start [2025-02-22 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534352', 'tblTempUsageDetail_20' ) end [2025-02-22 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:49:22] Production.INFO: ==26872== Releasing lock... [2025-02-22 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:50:05 [end_date_ymd] => 2025-02-22 18:50:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:50:05' and `end` < '2025-02-22 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-02-22 18:50:17] Production.INFO: count ==2009 [2025-02-22 18:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:50:05 - End Time 2025-02-22 18:50:05 [2025-02-22 18:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534358', 'tblTempUsageDetail_20' ) start [2025-02-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534358', 'tblTempUsageDetail_20' ) end [2025-02-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534358', 'tblTempVendorCDR_20' ) start [2025-02-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534358', 'tblTempVendorCDR_20' ) end [2025-02-22 18:50:18] Production.INFO: ProcessCDR(1,14534358,1,1,2) [2025-02-22 18:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534358', 'tblTempUsageDetail_20' ) start [2025-02-22 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534358', 'tblTempUsageDetail_20' ) end [2025-02-22 18:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:50:21] Production.INFO: ==27007== Releasing lock... [2025-02-22 18:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:50:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:51:05 [end_date_ymd] => 2025-02-22 18:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:51:05' and `end` < '2025-02-22 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-02-22 18:51:17] Production.INFO: count ==2019 [2025-02-22 18:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:51:05 - End Time 2025-02-22 18:51:05 [2025-02-22 18:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534363', 'tblTempUsageDetail_20' ) start [2025-02-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534363', 'tblTempUsageDetail_20' ) end [2025-02-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534363', 'tblTempVendorCDR_20' ) start [2025-02-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534363', 'tblTempVendorCDR_20' ) end [2025-02-22 18:51:17] Production.INFO: ProcessCDR(1,14534363,1,1,2) [2025-02-22 18:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534363', 'tblTempUsageDetail_20' ) start [2025-02-22 18:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534363', 'tblTempUsageDetail_20' ) end [2025-02-22 18:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:51:20] Production.INFO: ==27130== Releasing lock... [2025-02-22 18:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:51:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:52:05 [end_date_ymd] => 2025-02-22 18:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:52:05' and `end` < '2025-02-22 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-02-22 18:52:17] Production.INFO: count ==2016 [2025-02-22 18:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:52:05 - End Time 2025-02-22 18:52:05 [2025-02-22 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534368', 'tblTempUsageDetail_20' ) start [2025-02-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534368', 'tblTempUsageDetail_20' ) end [2025-02-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534368', 'tblTempVendorCDR_20' ) start [2025-02-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534368', 'tblTempVendorCDR_20' ) end [2025-02-22 18:52:18] Production.INFO: ProcessCDR(1,14534368,1,1,2) [2025-02-22 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534368', 'tblTempUsageDetail_20' ) start [2025-02-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534368', 'tblTempUsageDetail_20' ) end [2025-02-22 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:52:21] Production.INFO: ==27228== Releasing lock... [2025-02-22 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:52:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:53:05 [end_date_ymd] => 2025-02-22 18:53:05 [RateCDR] => 1 ) [2025-02-22 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:53:05' and `end` < '2025-02-22 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:53:17] Production.INFO: count ==2017 [2025-02-22 18:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:53:05 - End Time 2025-02-22 18:53:05 [2025-02-22 18:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534373', 'tblTempUsageDetail_20' ) start [2025-02-22 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534373', 'tblTempUsageDetail_20' ) end [2025-02-22 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534373', 'tblTempVendorCDR_20' ) start [2025-02-22 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534373', 'tblTempVendorCDR_20' ) end [2025-02-22 18:53:17] Production.INFO: ProcessCDR(1,14534373,1,1,2) [2025-02-22 18:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534373', 'tblTempUsageDetail_20' ) start [2025-02-22 18:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534373', 'tblTempUsageDetail_20' ) end [2025-02-22 18:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:53:20] Production.INFO: ==27323== Releasing lock... [2025-02-22 18:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:53:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:54:05 [end_date_ymd] => 2025-02-22 18:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:54:05' and `end` < '2025-02-22 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-02-22 18:54:17] Production.INFO: count ==2016 [2025-02-22 18:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:54:05 - End Time 2025-02-22 18:54:05 [2025-02-22 18:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534378', 'tblTempUsageDetail_20' ) start [2025-02-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534378', 'tblTempUsageDetail_20' ) end [2025-02-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534378', 'tblTempVendorCDR_20' ) start [2025-02-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534378', 'tblTempVendorCDR_20' ) end [2025-02-22 18:54:17] Production.INFO: ProcessCDR(1,14534378,1,1,2) [2025-02-22 18:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534378', 'tblTempUsageDetail_20' ) start [2025-02-22 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534378', 'tblTempUsageDetail_20' ) end [2025-02-22 18:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:54:20] Production.INFO: ==27450== Releasing lock... [2025-02-22 18:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:54:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:55:05 [end_date_ymd] => 2025-02-22 18:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:55:05' and `end` < '2025-02-22 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-02-22 18:55:17] Production.INFO: count ==2015 [2025-02-22 18:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:55:05 - End Time 2025-02-22 18:55:05 [2025-02-22 18:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534383', 'tblTempUsageDetail_20' ) start [2025-02-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534383', 'tblTempUsageDetail_20' ) end [2025-02-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534383', 'tblTempVendorCDR_20' ) start [2025-02-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534383', 'tblTempVendorCDR_20' ) end [2025-02-22 18:55:17] Production.INFO: ProcessCDR(1,14534383,1,1,2) [2025-02-22 18:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534383', 'tblTempUsageDetail_20' ) start [2025-02-22 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534383', 'tblTempUsageDetail_20' ) end [2025-02-22 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:55:22] Production.INFO: ==27552== Releasing lock... [2025-02-22 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:55:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:56:05 [end_date_ymd] => 2025-02-22 18:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:56:05' and `end` < '2025-02-22 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-02-22 18:56:18] Production.INFO: count ==2007 [2025-02-22 18:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:56:05 - End Time 2025-02-22 18:56:05 [2025-02-22 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534388', 'tblTempUsageDetail_20' ) start [2025-02-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534388', 'tblTempUsageDetail_20' ) end [2025-02-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534388', 'tblTempVendorCDR_20' ) start [2025-02-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534388', 'tblTempVendorCDR_20' ) end [2025-02-22 18:56:18] Production.INFO: ProcessCDR(1,14534388,1,1,2) [2025-02-22 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534388', 'tblTempUsageDetail_20' ) start [2025-02-22 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534388', 'tblTempUsageDetail_20' ) end [2025-02-22 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:56:23] Production.INFO: ==27649== Releasing lock... [2025-02-22 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:56:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:57:05 [end_date_ymd] => 2025-02-22 18:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:57:05' and `end` < '2025-02-22 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-02-22 18:57:17] Production.INFO: count ==2022 [2025-02-22 18:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:57:05 - End Time 2025-02-22 18:57:05 [2025-02-22 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534393', 'tblTempUsageDetail_20' ) start [2025-02-22 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534393', 'tblTempUsageDetail_20' ) end [2025-02-22 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534393', 'tblTempVendorCDR_20' ) start [2025-02-22 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534393', 'tblTempVendorCDR_20' ) end [2025-02-22 18:57:18] Production.INFO: ProcessCDR(1,14534393,1,1,2) [2025-02-22 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534393', 'tblTempUsageDetail_20' ) start [2025-02-22 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534393', 'tblTempUsageDetail_20' ) end [2025-02-22 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:57:22] Production.INFO: ==27736== Releasing lock... [2025-02-22 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:57:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:58:05 [end_date_ymd] => 2025-02-22 18:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 15:58:05' and `end` < '2025-02-22 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-02-22 18:58:17] Production.INFO: count ==2024 [2025-02-22 18:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 15:58:05 - End Time 2025-02-22 18:58:05 [2025-02-22 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534398', 'tblTempUsageDetail_20' ) start [2025-02-22 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534398', 'tblTempUsageDetail_20' ) end [2025-02-22 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534398', 'tblTempVendorCDR_20' ) start [2025-02-22 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534398', 'tblTempVendorCDR_20' ) end [2025-02-22 18:58:18] Production.INFO: ProcessCDR(1,14534398,1,1,2) [2025-02-22 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534398', 'tblTempUsageDetail_20' ) start [2025-02-22 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534398', 'tblTempUsageDetail_20' ) end [2025-02-22 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:58:22] Production.INFO: ==27827== Releasing lock... [2025-02-22 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:58:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 15:59:05 [end_date_ymd] => 2025-02-22 18:59:05 [RateCDR] => 1 ) [2025-02-22 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 15:59:05' and `end` < '2025-02-22 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 18:59:17] Production.INFO: count ==2017 [2025-02-22 18:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 15:59:05 - End Time 2025-02-22 18:59:05 [2025-02-22 18:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534403', 'tblTempUsageDetail_20' ) start [2025-02-22 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534403', 'tblTempUsageDetail_20' ) end [2025-02-22 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534403', 'tblTempVendorCDR_20' ) start [2025-02-22 18:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534403', 'tblTempVendorCDR_20' ) end [2025-02-22 18:59:17] Production.INFO: ProcessCDR(1,14534403,1,1,2) [2025-02-22 18:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534403', 'tblTempUsageDetail_20' ) start [2025-02-22 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534403', 'tblTempUsageDetail_20' ) end [2025-02-22 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 18:59:22] Production.INFO: ==27917== Releasing lock... [2025-02-22 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 18:59:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:00:06 [end_date_ymd] => 2025-02-22 19:00:06 [RateCDR] => 1 ) [2025-02-22 19: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-02-22 16:00:06' and `end` < '2025-02-22 19: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-02-22 19:00:19] Production.INFO: count ==2007 [2025-02-22 19:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 16:00:06 - End Time 2025-02-22 19:00:06 [2025-02-22 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534409', 'tblTempUsageDetail_20' ) start [2025-02-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534409', 'tblTempUsageDetail_20' ) end [2025-02-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534409', 'tblTempVendorCDR_20' ) start [2025-02-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534409', 'tblTempVendorCDR_20' ) end [2025-02-22 19:00:19] Production.INFO: ProcessCDR(1,14534409,1,1,2) [2025-02-22 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534409', 'tblTempUsageDetail_20' ) start [2025-02-22 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534409', 'tblTempUsageDetail_20' ) end [2025-02-22 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:00:22] Production.INFO: ==28025== Releasing lock... [2025-02-22 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:00:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:01:05 [end_date_ymd] => 2025-02-22 19:01:05 [RateCDR] => 1 ) [2025-02-22 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:01:05' and `end` < '2025-02-22 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:01:17] Production.INFO: count ==2059 [2025-02-22 19:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:01:05 - End Time 2025-02-22 19:01:05 [2025-02-22 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534414', 'tblTempUsageDetail_20' ) start [2025-02-22 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534414', 'tblTempUsageDetail_20' ) end [2025-02-22 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534414', 'tblTempVendorCDR_20' ) start [2025-02-22 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534414', 'tblTempVendorCDR_20' ) end [2025-02-22 19:01:18] Production.INFO: ProcessCDR(1,14534414,1,1,2) [2025-02-22 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534414', 'tblTempUsageDetail_20' ) start [2025-02-22 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534414', 'tblTempUsageDetail_20' ) end [2025-02-22 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:01:22] Production.INFO: ==28124== Releasing lock... [2025-02-22 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:02:06 [end_date_ymd] => 2025-02-22 19:02:06 [RateCDR] => 1 ) [2025-02-22 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:02:06' and `end` < '2025-02-22 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:02:17] Production.INFO: count ==2067 [2025-02-22 19:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:02:06 - End Time 2025-02-22 19:02:06 [2025-02-22 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534419', 'tblTempUsageDetail_20' ) start [2025-02-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534419', 'tblTempUsageDetail_20' ) end [2025-02-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534419', 'tblTempVendorCDR_20' ) start [2025-02-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534419', 'tblTempVendorCDR_20' ) end [2025-02-22 19:02:18] Production.INFO: ProcessCDR(1,14534419,1,1,2) [2025-02-22 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534419', 'tblTempUsageDetail_20' ) start [2025-02-22 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534419', 'tblTempUsageDetail_20' ) end [2025-02-22 19:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:02:21] Production.INFO: ==28277== Releasing lock... [2025-02-22 19:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:02:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:03:05 [end_date_ymd] => 2025-02-22 19:03:05 [RateCDR] => 1 ) [2025-02-22 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:03:05' and `end` < '2025-02-22 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:03:17] Production.INFO: count ==2068 [2025-02-22 19:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:03:05 - End Time 2025-02-22 19:03:05 [2025-02-22 19:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534424', 'tblTempUsageDetail_20' ) start [2025-02-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534424', 'tblTempUsageDetail_20' ) end [2025-02-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534424', 'tblTempVendorCDR_20' ) start [2025-02-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534424', 'tblTempVendorCDR_20' ) end [2025-02-22 19:03:17] Production.INFO: ProcessCDR(1,14534424,1,1,2) [2025-02-22 19:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534424', 'tblTempUsageDetail_20' ) start [2025-02-22 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534424', 'tblTempUsageDetail_20' ) end [2025-02-22 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:03:22] Production.INFO: ==28350== Releasing lock... [2025-02-22 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:03:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:04:05 [end_date_ymd] => 2025-02-22 19:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:04:05' and `end` < '2025-02-22 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-02-22 19:04:17] Production.INFO: count ==2070 [2025-02-22 19:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:04:05 - End Time 2025-02-22 19:04:05 [2025-02-22 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534429', 'tblTempUsageDetail_20' ) start [2025-02-22 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534429', 'tblTempUsageDetail_20' ) end [2025-02-22 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534429', 'tblTempVendorCDR_20' ) start [2025-02-22 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534429', 'tblTempVendorCDR_20' ) end [2025-02-22 19:04:18] Production.INFO: ProcessCDR(1,14534429,1,1,2) [2025-02-22 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534429', 'tblTempUsageDetail_20' ) start [2025-02-22 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534429', 'tblTempUsageDetail_20' ) end [2025-02-22 19:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:04:21] Production.INFO: ==28421== Releasing lock... [2025-02-22 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:04:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:05:04 [end_date_ymd] => 2025-02-22 19:05:04 [RateCDR] => 1 ) [2025-02-22 19: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-02-22 16:05:04' and `end` < '2025-02-22 19: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-02-22 19:05:17] Production.INFO: count ==2077 [2025-02-22 19:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:05:04 - End Time 2025-02-22 19:05:04 [2025-02-22 19:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534434', 'tblTempUsageDetail_20' ) start [2025-02-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534434', 'tblTempUsageDetail_20' ) end [2025-02-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534434', 'tblTempVendorCDR_20' ) start [2025-02-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534434', 'tblTempVendorCDR_20' ) end [2025-02-22 19:05:17] Production.INFO: ProcessCDR(1,14534434,1,1,2) [2025-02-22 19:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534434', 'tblTempUsageDetail_20' ) start [2025-02-22 19:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534434', 'tblTempUsageDetail_20' ) end [2025-02-22 19:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:05:20] Production.INFO: ==28575== Releasing lock... [2025-02-22 19:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:05:20] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:06:05 [end_date_ymd] => 2025-02-22 19:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:06:05' and `end` < '2025-02-22 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-02-22 19:06:17] Production.INFO: count ==2081 [2025-02-22 19:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:06:05 - End Time 2025-02-22 19:06:05 [2025-02-22 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534439', 'tblTempUsageDetail_20' ) start [2025-02-22 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534439', 'tblTempUsageDetail_20' ) end [2025-02-22 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534439', 'tblTempVendorCDR_20' ) start [2025-02-22 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534439', 'tblTempVendorCDR_20' ) end [2025-02-22 19:06:18] Production.INFO: ProcessCDR(1,14534439,1,1,2) [2025-02-22 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534439', 'tblTempUsageDetail_20' ) start [2025-02-22 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534439', 'tblTempUsageDetail_20' ) end [2025-02-22 19:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:06:21] Production.INFO: ==28650== Releasing lock... [2025-02-22 19:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:06:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:07:05 [end_date_ymd] => 2025-02-22 19:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:07:05' and `end` < '2025-02-22 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-02-22 19:07:17] Production.INFO: count ==2082 [2025-02-22 19:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:07:05 - End Time 2025-02-22 19:07:05 [2025-02-22 19:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534444', 'tblTempUsageDetail_20' ) start [2025-02-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534444', 'tblTempUsageDetail_20' ) end [2025-02-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534444', 'tblTempVendorCDR_20' ) start [2025-02-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534444', 'tblTempVendorCDR_20' ) end [2025-02-22 19:07:17] Production.INFO: ProcessCDR(1,14534444,1,1,2) [2025-02-22 19:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534444', 'tblTempUsageDetail_20' ) start [2025-02-22 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534444', 'tblTempUsageDetail_20' ) end [2025-02-22 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:07:22] Production.INFO: ==28727== Releasing lock... [2025-02-22 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:07:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:08:05 [end_date_ymd] => 2025-02-22 19:08:05 [RateCDR] => 1 ) [2025-02-22 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:08:05' and `end` < '2025-02-22 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:08:17] Production.INFO: count ==2110 [2025-02-22 19:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:08:05 - End Time 2025-02-22 19:08:05 [2025-02-22 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534449', 'tblTempUsageDetail_20' ) start [2025-02-22 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534449', 'tblTempUsageDetail_20' ) end [2025-02-22 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534449', 'tblTempVendorCDR_20' ) start [2025-02-22 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534449', 'tblTempVendorCDR_20' ) end [2025-02-22 19:08:18] Production.INFO: ProcessCDR(1,14534449,1,1,2) [2025-02-22 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534449', 'tblTempUsageDetail_20' ) start [2025-02-22 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534449', 'tblTempUsageDetail_20' ) end [2025-02-22 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:08:23] Production.INFO: ==28838== Releasing lock... [2025-02-22 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:08:23] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:09:05 [end_date_ymd] => 2025-02-22 19:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:09:05' and `end` < '2025-02-22 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-02-22 19:09:17] Production.INFO: count ==2110 [2025-02-22 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:09:05 - End Time 2025-02-22 19:09:05 [2025-02-22 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534454', 'tblTempUsageDetail_20' ) start [2025-02-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534454', 'tblTempUsageDetail_20' ) end [2025-02-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534454', 'tblTempVendorCDR_20' ) start [2025-02-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534454', 'tblTempVendorCDR_20' ) end [2025-02-22 19:09:18] Production.INFO: ProcessCDR(1,14534454,1,1,2) [2025-02-22 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534454', 'tblTempUsageDetail_20' ) start [2025-02-22 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534454', 'tblTempUsageDetail_20' ) end [2025-02-22 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:09:22] Production.INFO: ==28951== Releasing lock... [2025-02-22 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:09:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:10:05 [end_date_ymd] => 2025-02-22 19:10:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:10:05' and `end` < '2025-02-22 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-02-22 19:10:18] Production.INFO: count ==2105 [2025-02-22 19:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:10:05 - End Time 2025-02-22 19:10:05 [2025-02-22 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534459', 'tblTempUsageDetail_20' ) start [2025-02-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534459', 'tblTempUsageDetail_20' ) end [2025-02-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534459', 'tblTempVendorCDR_20' ) start [2025-02-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534459', 'tblTempVendorCDR_20' ) end [2025-02-22 19:10:18] Production.INFO: ProcessCDR(1,14534459,1,1,2) [2025-02-22 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534459', 'tblTempUsageDetail_20' ) start [2025-02-22 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534459', 'tblTempUsageDetail_20' ) end [2025-02-22 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:10:23] Production.INFO: ==29070== Releasing lock... [2025-02-22 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:10:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:11:04 [end_date_ymd] => 2025-02-22 19:11:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:11:04' and `end` < '2025-02-22 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-02-22 19:11:17] Production.INFO: count ==2092 [2025-02-22 19:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:11:04 - End Time 2025-02-22 19:11:04 [2025-02-22 19:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534465', 'tblTempUsageDetail_20' ) start [2025-02-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534465', 'tblTempUsageDetail_20' ) end [2025-02-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534465', 'tblTempVendorCDR_20' ) start [2025-02-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534465', 'tblTempVendorCDR_20' ) end [2025-02-22 19:11:17] Production.INFO: ProcessCDR(1,14534465,1,1,2) [2025-02-22 19:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534465', 'tblTempUsageDetail_20' ) start [2025-02-22 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534465', 'tblTempUsageDetail_20' ) end [2025-02-22 19:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:11:20] Production.INFO: ==29150== Releasing lock... [2025-02-22 19:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:11:20] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:12:05 [end_date_ymd] => 2025-02-22 19:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:12:05' and `end` < '2025-02-22 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-02-22 19:12:17] Production.INFO: count ==2095 [2025-02-22 19:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:12:05 - End Time 2025-02-22 19:12:05 [2025-02-22 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534470', 'tblTempUsageDetail_20' ) start [2025-02-22 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534470', 'tblTempUsageDetail_20' ) end [2025-02-22 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534470', 'tblTempVendorCDR_20' ) start [2025-02-22 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534470', 'tblTempVendorCDR_20' ) end [2025-02-22 19:12:18] Production.INFO: ProcessCDR(1,14534470,1,1,2) [2025-02-22 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534470', 'tblTempUsageDetail_20' ) start [2025-02-22 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534470', 'tblTempUsageDetail_20' ) end [2025-02-22 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:12:21] Production.INFO: ==29301== Releasing lock... [2025-02-22 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:12:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:13:05 [end_date_ymd] => 2025-02-22 19:13:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:13:05' and `end` < '2025-02-22 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-02-22 19:13:17] Production.INFO: count ==2089 [2025-02-22 19:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:13:05 - End Time 2025-02-22 19:13:05 [2025-02-22 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534475', 'tblTempUsageDetail_20' ) start [2025-02-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534475', 'tblTempUsageDetail_20' ) end [2025-02-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534475', 'tblTempVendorCDR_20' ) start [2025-02-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534475', 'tblTempVendorCDR_20' ) end [2025-02-22 19:13:18] Production.INFO: ProcessCDR(1,14534475,1,1,2) [2025-02-22 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534475', 'tblTempUsageDetail_20' ) start [2025-02-22 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534475', 'tblTempUsageDetail_20' ) end [2025-02-22 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:13:21] Production.INFO: ==29372== Releasing lock... [2025-02-22 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:13:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:14:05 [end_date_ymd] => 2025-02-22 19:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:14:05' and `end` < '2025-02-22 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-02-22 19:14:17] Production.INFO: count ==2085 [2025-02-22 19:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:14:05 - End Time 2025-02-22 19:14:05 [2025-02-22 19:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534480', 'tblTempUsageDetail_20' ) start [2025-02-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534480', 'tblTempUsageDetail_20' ) end [2025-02-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534480', 'tblTempVendorCDR_20' ) start [2025-02-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534480', 'tblTempVendorCDR_20' ) end [2025-02-22 19:14:17] Production.INFO: ProcessCDR(1,14534480,1,1,2) [2025-02-22 19:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534480', 'tblTempUsageDetail_20' ) start [2025-02-22 19:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534480', 'tblTempUsageDetail_20' ) end [2025-02-22 19:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:14:20] Production.INFO: ==29449== Releasing lock... [2025-02-22 19:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:14:20] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:15:05 [end_date_ymd] => 2025-02-22 19:15:05 [RateCDR] => 1 ) [2025-02-22 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:15:05' and `end` < '2025-02-22 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:15:17] Production.INFO: count ==2087 [2025-02-22 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:15:05 - End Time 2025-02-22 19:15:05 [2025-02-22 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534485', 'tblTempUsageDetail_20' ) start [2025-02-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534485', 'tblTempUsageDetail_20' ) end [2025-02-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534485', 'tblTempVendorCDR_20' ) start [2025-02-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534485', 'tblTempVendorCDR_20' ) end [2025-02-22 19:15:18] Production.INFO: ProcessCDR(1,14534485,1,1,2) [2025-02-22 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534485', 'tblTempUsageDetail_20' ) start [2025-02-22 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534485', 'tblTempUsageDetail_20' ) end [2025-02-22 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:15:21] Production.INFO: ==29603== Releasing lock... [2025-02-22 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:15:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:16:05 [end_date_ymd] => 2025-02-22 19:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:16:05' and `end` < '2025-02-22 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-02-22 19:16:17] Production.INFO: count ==2108 [2025-02-22 19:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:16:05 - End Time 2025-02-22 19:16:05 [2025-02-22 19:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534490', 'tblTempUsageDetail_20' ) start [2025-02-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534490', 'tblTempUsageDetail_20' ) end [2025-02-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534490', 'tblTempVendorCDR_20' ) start [2025-02-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534490', 'tblTempVendorCDR_20' ) end [2025-02-22 19:16:17] Production.INFO: ProcessCDR(1,14534490,1,1,2) [2025-02-22 19:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534490', 'tblTempUsageDetail_20' ) start [2025-02-22 19:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534490', 'tblTempUsageDetail_20' ) end [2025-02-22 19:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:16:20] Production.INFO: ==29675== Releasing lock... [2025-02-22 19:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:16:20] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:17:05 [end_date_ymd] => 2025-02-22 19:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:17:05' and `end` < '2025-02-22 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-02-22 19:17:17] Production.INFO: count ==2110 [2025-02-22 19:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:17:05 - End Time 2025-02-22 19:17:05 [2025-02-22 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534495', 'tblTempUsageDetail_20' ) start [2025-02-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534495', 'tblTempUsageDetail_20' ) end [2025-02-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534495', 'tblTempVendorCDR_20' ) start [2025-02-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534495', 'tblTempVendorCDR_20' ) end [2025-02-22 19:17:17] Production.INFO: ProcessCDR(1,14534495,1,1,2) [2025-02-22 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534495', 'tblTempUsageDetail_20' ) start [2025-02-22 19:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534495', 'tblTempUsageDetail_20' ) end [2025-02-22 19:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:17:20] Production.INFO: ==29750== Releasing lock... [2025-02-22 19:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:17:20] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:18:05 [end_date_ymd] => 2025-02-22 19:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:18:05' and `end` < '2025-02-22 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-02-22 19:18:17] Production.INFO: count ==2115 [2025-02-22 19:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:18:05 - End Time 2025-02-22 19:18:05 [2025-02-22 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534500', 'tblTempUsageDetail_20' ) start [2025-02-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534500', 'tblTempUsageDetail_20' ) end [2025-02-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534500', 'tblTempVendorCDR_20' ) start [2025-02-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534500', 'tblTempVendorCDR_20' ) end [2025-02-22 19:18:18] Production.INFO: ProcessCDR(1,14534500,1,1,2) [2025-02-22 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534500', 'tblTempUsageDetail_20' ) start [2025-02-22 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534500', 'tblTempUsageDetail_20' ) end [2025-02-22 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:18:23] Production.INFO: ==29823== Releasing lock... [2025-02-22 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:18:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:19:05 [end_date_ymd] => 2025-02-22 19:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:19:05' and `end` < '2025-02-22 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-02-22 19:19:17] Production.INFO: count ==2124 [2025-02-22 19:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:19:05 - End Time 2025-02-22 19:19:05 [2025-02-22 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534505', 'tblTempUsageDetail_20' ) start [2025-02-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534505', 'tblTempUsageDetail_20' ) end [2025-02-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534505', 'tblTempVendorCDR_20' ) start [2025-02-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534505', 'tblTempVendorCDR_20' ) end [2025-02-22 19:19:17] Production.INFO: ProcessCDR(1,14534505,1,1,2) [2025-02-22 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534505', 'tblTempUsageDetail_20' ) start [2025-02-22 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534505', 'tblTempUsageDetail_20' ) end [2025-02-22 19:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:19:20] Production.INFO: ==29917== Releasing lock... [2025-02-22 19:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:19:20] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:20:06 [end_date_ymd] => 2025-02-22 19:20:06 [RateCDR] => 1 ) [2025-02-22 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:20:06' and `end` < '2025-02-22 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:20:18] Production.INFO: count ==2126 [2025-02-22 19:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:20:06 - End Time 2025-02-22 19:20:06 [2025-02-22 19:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534511', 'tblTempUsageDetail_20' ) start [2025-02-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534511', 'tblTempUsageDetail_20' ) end [2025-02-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534511', 'tblTempVendorCDR_20' ) start [2025-02-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534511', 'tblTempVendorCDR_20' ) end [2025-02-22 19:20:18] Production.INFO: ProcessCDR(1,14534511,1,1,2) [2025-02-22 19:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534511', 'tblTempUsageDetail_20' ) start [2025-02-22 19:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534511', 'tblTempUsageDetail_20' ) end [2025-02-22 19:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:20:21] Production.INFO: ==29997== Releasing lock... [2025-02-22 19:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:20:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:21:04 [end_date_ymd] => 2025-02-22 19:21:04 [RateCDR] => 1 ) [2025-02-22 19: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-02-22 16:21:04' and `end` < '2025-02-22 19: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-02-22 19:21:17] Production.INFO: count ==2127 [2025-02-22 19:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:21:04 - End Time 2025-02-22 19:21:04 [2025-02-22 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534516', 'tblTempUsageDetail_20' ) start [2025-02-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534516', 'tblTempUsageDetail_20' ) end [2025-02-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534516', 'tblTempVendorCDR_20' ) start [2025-02-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534516', 'tblTempVendorCDR_20' ) end [2025-02-22 19:21:17] Production.INFO: ProcessCDR(1,14534516,1,1,2) [2025-02-22 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534516', 'tblTempUsageDetail_20' ) start [2025-02-22 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534516', 'tblTempUsageDetail_20' ) end [2025-02-22 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:21:22] Production.INFO: ==30080== Releasing lock... [2025-02-22 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:21:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:22:05 [end_date_ymd] => 2025-02-22 19:22:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:22:05' and `end` < '2025-02-22 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-02-22 19:22:17] Production.INFO: count ==2124 [2025-02-22 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:22:05 - End Time 2025-02-22 19:22:05 [2025-02-22 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534521', 'tblTempUsageDetail_20' ) start [2025-02-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534521', 'tblTempUsageDetail_20' ) end [2025-02-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534521', 'tblTempVendorCDR_20' ) start [2025-02-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534521', 'tblTempVendorCDR_20' ) end [2025-02-22 19:22:18] Production.INFO: ProcessCDR(1,14534521,1,1,2) [2025-02-22 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534521', 'tblTempUsageDetail_20' ) start [2025-02-22 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534521', 'tblTempUsageDetail_20' ) end [2025-02-22 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:22:21] Production.INFO: ==30155== Releasing lock... [2025-02-22 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:22:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:23:04 [end_date_ymd] => 2025-02-22 19:23:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:23:04' and `end` < '2025-02-22 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-02-22 19:23:16] Production.INFO: count ==2127 [2025-02-22 19:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:23:04 - End Time 2025-02-22 19:23:04 [2025-02-22 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534526', 'tblTempUsageDetail_20' ) start [2025-02-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534526', 'tblTempUsageDetail_20' ) end [2025-02-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534526', 'tblTempVendorCDR_20' ) start [2025-02-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534526', 'tblTempVendorCDR_20' ) end [2025-02-22 19:23:17] Production.INFO: ProcessCDR(1,14534526,1,1,2) [2025-02-22 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534526', 'tblTempUsageDetail_20' ) start [2025-02-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534526', 'tblTempUsageDetail_20' ) end [2025-02-22 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:23:22] Production.INFO: ==30226== Releasing lock... [2025-02-22 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:23:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:24:05 [end_date_ymd] => 2025-02-22 19:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:24:05' and `end` < '2025-02-22 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-02-22 19:24:17] Production.INFO: count ==2120 [2025-02-22 19:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:24:05 - End Time 2025-02-22 19:24:05 [2025-02-22 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534531', 'tblTempUsageDetail_20' ) start [2025-02-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534531', 'tblTempUsageDetail_20' ) end [2025-02-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534531', 'tblTempVendorCDR_20' ) start [2025-02-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534531', 'tblTempVendorCDR_20' ) end [2025-02-22 19:24:18] Production.INFO: ProcessCDR(1,14534531,1,1,2) [2025-02-22 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534531', 'tblTempUsageDetail_20' ) start [2025-02-22 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534531', 'tblTempUsageDetail_20' ) end [2025-02-22 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:24:21] Production.INFO: ==30302== Releasing lock... [2025-02-22 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:24:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:25:05 [end_date_ymd] => 2025-02-22 19:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:25:05' and `end` < '2025-02-22 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-02-22 19:25:17] Production.INFO: count ==2130 [2025-02-22 19:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:25:05 - End Time 2025-02-22 19:25:05 [2025-02-22 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534536', 'tblTempUsageDetail_20' ) start [2025-02-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534536', 'tblTempUsageDetail_20' ) end [2025-02-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534536', 'tblTempVendorCDR_20' ) start [2025-02-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534536', 'tblTempVendorCDR_20' ) end [2025-02-22 19:25:17] Production.INFO: ProcessCDR(1,14534536,1,1,2) [2025-02-22 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534536', 'tblTempUsageDetail_20' ) start [2025-02-22 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534536', 'tblTempUsageDetail_20' ) end [2025-02-22 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:25:21] Production.INFO: ==30410== Releasing lock... [2025-02-22 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:25:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:26:05 [end_date_ymd] => 2025-02-22 19:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:26:05' and `end` < '2025-02-22 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-02-22 19:26:17] Production.INFO: count ==2132 [2025-02-22 19:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:26:05 - End Time 2025-02-22 19:26:05 [2025-02-22 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534541', 'tblTempUsageDetail_20' ) start [2025-02-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534541', 'tblTempUsageDetail_20' ) end [2025-02-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534541', 'tblTempVendorCDR_20' ) start [2025-02-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534541', 'tblTempVendorCDR_20' ) end [2025-02-22 19:26:18] Production.INFO: ProcessCDR(1,14534541,1,1,2) [2025-02-22 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534541', 'tblTempUsageDetail_20' ) start [2025-02-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534541', 'tblTempUsageDetail_20' ) end [2025-02-22 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:26:21] Production.INFO: ==30489== Releasing lock... [2025-02-22 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:26:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:27:05 [end_date_ymd] => 2025-02-22 19:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:27:05' and `end` < '2025-02-22 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-02-22 19:27:17] Production.INFO: count ==2135 [2025-02-22 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:27:05 - End Time 2025-02-22 19:27:05 [2025-02-22 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534546', 'tblTempUsageDetail_20' ) start [2025-02-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534546', 'tblTempUsageDetail_20' ) end [2025-02-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534546', 'tblTempVendorCDR_20' ) start [2025-02-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534546', 'tblTempVendorCDR_20' ) end [2025-02-22 19:27:18] Production.INFO: ProcessCDR(1,14534546,1,1,2) [2025-02-22 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534546', 'tblTempUsageDetail_20' ) start [2025-02-22 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534546', 'tblTempUsageDetail_20' ) end [2025-02-22 19:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:27:21] Production.INFO: ==30561== Releasing lock... [2025-02-22 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:27:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:28:05 [end_date_ymd] => 2025-02-22 19:28:05 [RateCDR] => 1 ) [2025-02-22 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:28:05' and `end` < '2025-02-22 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:28:17] Production.INFO: count ==2135 [2025-02-22 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:28:05 - End Time 2025-02-22 19:28:05 [2025-02-22 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534551', 'tblTempUsageDetail_20' ) start [2025-02-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534551', 'tblTempUsageDetail_20' ) end [2025-02-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534551', 'tblTempVendorCDR_20' ) start [2025-02-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534551', 'tblTempVendorCDR_20' ) end [2025-02-22 19:28:18] Production.INFO: ProcessCDR(1,14534551,1,1,2) [2025-02-22 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534551', 'tblTempUsageDetail_20' ) start [2025-02-22 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534551', 'tblTempUsageDetail_20' ) end [2025-02-22 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:28:22] Production.INFO: ==30633== Releasing lock... [2025-02-22 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:28:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:29:05 [end_date_ymd] => 2025-02-22 19:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:29:05' and `end` < '2025-02-22 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-02-22 19:29:18] Production.INFO: count ==2128 [2025-02-22 19:29:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:29:05 - End Time 2025-02-22 19:29:05 [2025-02-22 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534556', 'tblTempUsageDetail_20' ) start [2025-02-22 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534556', 'tblTempUsageDetail_20' ) end [2025-02-22 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534556', 'tblTempVendorCDR_20' ) start [2025-02-22 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534556', 'tblTempVendorCDR_20' ) end [2025-02-22 19:29:18] Production.INFO: ProcessCDR(1,14534556,1,1,2) [2025-02-22 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534556', 'tblTempUsageDetail_20' ) start [2025-02-22 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534556', 'tblTempUsageDetail_20' ) end [2025-02-22 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:29:21] Production.INFO: ==30706== Releasing lock... [2025-02-22 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:29:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:30:06 [end_date_ymd] => 2025-02-22 19:30:06 [RateCDR] => 1 ) [2025-02-22 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:30:06' and `end` < '2025-02-22 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:30:18] Production.INFO: count ==2126 [2025-02-22 19:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:30:06 - End Time 2025-02-22 19:30:06 [2025-02-22 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534562', 'tblTempUsageDetail_20' ) start [2025-02-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534562', 'tblTempUsageDetail_20' ) end [2025-02-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534562', 'tblTempVendorCDR_20' ) start [2025-02-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534562', 'tblTempVendorCDR_20' ) end [2025-02-22 19:30:18] Production.INFO: ProcessCDR(1,14534562,1,1,2) [2025-02-22 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534562', 'tblTempUsageDetail_20' ) start [2025-02-22 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534562', 'tblTempUsageDetail_20' ) end [2025-02-22 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:30:22] Production.INFO: ==30793== Releasing lock... [2025-02-22 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:30:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:31:05 [end_date_ymd] => 2025-02-22 19:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:31:05' and `end` < '2025-02-22 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-02-22 19:31:17] Production.INFO: count ==2113 [2025-02-22 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:31:05 - End Time 2025-02-22 19:31:05 [2025-02-22 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534567', 'tblTempUsageDetail_20' ) start [2025-02-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534567', 'tblTempUsageDetail_20' ) end [2025-02-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534567', 'tblTempVendorCDR_20' ) start [2025-02-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534567', 'tblTempVendorCDR_20' ) end [2025-02-22 19:31:18] Production.INFO: ProcessCDR(1,14534567,1,1,2) [2025-02-22 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534567', 'tblTempUsageDetail_20' ) start [2025-02-22 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534567', 'tblTempUsageDetail_20' ) end [2025-02-22 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:31:22] Production.INFO: ==30872== Releasing lock... [2025-02-22 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:31:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:32:05 [end_date_ymd] => 2025-02-22 19:32:05 [RateCDR] => 1 ) [2025-02-22 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:32:05' and `end` < '2025-02-22 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:32:17] Production.INFO: count ==2110 [2025-02-22 19:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:32:05 - End Time 2025-02-22 19:32:05 [2025-02-22 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534572', 'tblTempUsageDetail_20' ) start [2025-02-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534572', 'tblTempUsageDetail_20' ) end [2025-02-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534572', 'tblTempVendorCDR_20' ) start [2025-02-22 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534572', 'tblTempVendorCDR_20' ) end [2025-02-22 19:32:18] Production.INFO: ProcessCDR(1,14534572,1,1,2) [2025-02-22 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534572', 'tblTempUsageDetail_20' ) start [2025-02-22 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534572', 'tblTempUsageDetail_20' ) end [2025-02-22 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:32:21] Production.INFO: ==30946== Releasing lock... [2025-02-22 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:32:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:33:05 [end_date_ymd] => 2025-02-22 19:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:33:05' and `end` < '2025-02-22 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-02-22 19:33:17] Production.INFO: count ==2111 [2025-02-22 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:33:05 - End Time 2025-02-22 19:33:05 [2025-02-22 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534577', 'tblTempUsageDetail_20' ) start [2025-02-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534577', 'tblTempUsageDetail_20' ) end [2025-02-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534577', 'tblTempVendorCDR_20' ) start [2025-02-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534577', 'tblTempVendorCDR_20' ) end [2025-02-22 19:33:18] Production.INFO: ProcessCDR(1,14534577,1,1,2) [2025-02-22 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534577', 'tblTempUsageDetail_20' ) start [2025-02-22 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534577', 'tblTempUsageDetail_20' ) end [2025-02-22 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:33:21] Production.INFO: ==31017== Releasing lock... [2025-02-22 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:33:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:34:05 [end_date_ymd] => 2025-02-22 19:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:34:05' and `end` < '2025-02-22 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-02-22 19:34:17] Production.INFO: count ==2114 [2025-02-22 19:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:34:05 - End Time 2025-02-22 19:34:05 [2025-02-22 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534582', 'tblTempUsageDetail_20' ) start [2025-02-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534582', 'tblTempUsageDetail_20' ) end [2025-02-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534582', 'tblTempVendorCDR_20' ) start [2025-02-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534582', 'tblTempVendorCDR_20' ) end [2025-02-22 19:34:18] Production.INFO: ProcessCDR(1,14534582,1,1,2) [2025-02-22 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534582', 'tblTempUsageDetail_20' ) start [2025-02-22 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534582', 'tblTempUsageDetail_20' ) end [2025-02-22 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:34:23] Production.INFO: ==31089== Releasing lock... [2025-02-22 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:34:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:35:05 [end_date_ymd] => 2025-02-22 19:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:35:05' and `end` < '2025-02-22 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-02-22 19:35:17] Production.INFO: count ==2108 [2025-02-22 19:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:35:05 - End Time 2025-02-22 19:35:05 [2025-02-22 19:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534587', 'tblTempUsageDetail_20' ) start [2025-02-22 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534587', 'tblTempUsageDetail_20' ) end [2025-02-22 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534587', 'tblTempVendorCDR_20' ) start [2025-02-22 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534587', 'tblTempVendorCDR_20' ) end [2025-02-22 19:35:17] Production.INFO: ProcessCDR(1,14534587,1,1,2) [2025-02-22 19:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534587', 'tblTempUsageDetail_20' ) start [2025-02-22 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534587', 'tblTempUsageDetail_20' ) end [2025-02-22 19:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:35:20] Production.INFO: ==31161== Releasing lock... [2025-02-22 19:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:35:20] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:36:06 [end_date_ymd] => 2025-02-22 19:36:06 [RateCDR] => 1 ) [2025-02-22 19: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-02-22 16:36:06' and `end` < '2025-02-22 19: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-02-22 19:36:18] Production.INFO: count ==2106 [2025-02-22 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:36:06 - End Time 2025-02-22 19:36:06 [2025-02-22 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534592', 'tblTempUsageDetail_20' ) start [2025-02-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534592', 'tblTempUsageDetail_20' ) end [2025-02-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534592', 'tblTempVendorCDR_20' ) start [2025-02-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534592', 'tblTempVendorCDR_20' ) end [2025-02-22 19:36:18] Production.INFO: ProcessCDR(1,14534592,1,1,2) [2025-02-22 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534592', 'tblTempUsageDetail_20' ) start [2025-02-22 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534592', 'tblTempUsageDetail_20' ) end [2025-02-22 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:36:21] Production.INFO: ==31234== Releasing lock... [2025-02-22 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:36:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:37:05 [end_date_ymd] => 2025-02-22 19:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:37:05' and `end` < '2025-02-22 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-02-22 19:37:17] Production.INFO: count ==2108 [2025-02-22 19:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:37:05 - End Time 2025-02-22 19:37:05 [2025-02-22 19:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534597', 'tblTempUsageDetail_20' ) start [2025-02-22 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534597', 'tblTempUsageDetail_20' ) end [2025-02-22 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534597', 'tblTempVendorCDR_20' ) start [2025-02-22 19:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534597', 'tblTempVendorCDR_20' ) end [2025-02-22 19:37:17] Production.INFO: ProcessCDR(1,14534597,1,1,2) [2025-02-22 19:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534597', 'tblTempUsageDetail_20' ) start [2025-02-22 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534597', 'tblTempUsageDetail_20' ) end [2025-02-22 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:37:22] Production.INFO: ==31305== Releasing lock... [2025-02-22 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:37:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:38:05 [end_date_ymd] => 2025-02-22 19:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:38:05' and `end` < '2025-02-22 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-02-22 19:38:17] Production.INFO: count ==2105 [2025-02-22 19:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:38:05 - End Time 2025-02-22 19:38:05 [2025-02-22 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534602', 'tblTempUsageDetail_20' ) start [2025-02-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534602', 'tblTempUsageDetail_20' ) end [2025-02-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534602', 'tblTempVendorCDR_20' ) start [2025-02-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534602', 'tblTempVendorCDR_20' ) end [2025-02-22 19:38:18] Production.INFO: ProcessCDR(1,14534602,1,1,2) [2025-02-22 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534602', 'tblTempUsageDetail_20' ) start [2025-02-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534602', 'tblTempUsageDetail_20' ) end [2025-02-22 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:38:22] Production.INFO: ==31383== Releasing lock... [2025-02-22 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:38:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:39:05 [end_date_ymd] => 2025-02-22 19:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:39:05' and `end` < '2025-02-22 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-02-22 19:39:17] Production.INFO: count ==2084 [2025-02-22 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:39:05 - End Time 2025-02-22 19:39:05 [2025-02-22 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534607', 'tblTempUsageDetail_20' ) start [2025-02-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534607', 'tblTempUsageDetail_20' ) end [2025-02-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534607', 'tblTempVendorCDR_20' ) start [2025-02-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534607', 'tblTempVendorCDR_20' ) end [2025-02-22 19:39:18] Production.INFO: ProcessCDR(1,14534607,1,1,2) [2025-02-22 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534607', 'tblTempUsageDetail_20' ) start [2025-02-22 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534607', 'tblTempUsageDetail_20' ) end [2025-02-22 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:39:21] Production.INFO: ==31461== Releasing lock... [2025-02-22 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:39:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:40:06 [end_date_ymd] => 2025-02-22 19:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:40:06' and `end` < '2025-02-22 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-02-22 19:40:18] Production.INFO: count ==2068 [2025-02-22 19:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:40:06 - End Time 2025-02-22 19:40:06 [2025-02-22 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534612', 'tblTempUsageDetail_20' ) start [2025-02-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534612', 'tblTempUsageDetail_20' ) end [2025-02-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534612', 'tblTempVendorCDR_20' ) start [2025-02-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534612', 'tblTempVendorCDR_20' ) end [2025-02-22 19:40:18] Production.INFO: ProcessCDR(1,14534612,1,1,2) [2025-02-22 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534612', 'tblTempUsageDetail_20' ) start [2025-02-22 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534612', 'tblTempUsageDetail_20' ) end [2025-02-22 19:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:40:21] Production.INFO: ==31533== Releasing lock... [2025-02-22 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:40:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:41:05 [end_date_ymd] => 2025-02-22 19:41:05 [RateCDR] => 1 ) [2025-02-22 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:41:05' and `end` < '2025-02-22 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:41:17] Production.INFO: count ==2055 [2025-02-22 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:41:05 - End Time 2025-02-22 19:41:05 [2025-02-22 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534618', 'tblTempUsageDetail_20' ) start [2025-02-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534618', 'tblTempUsageDetail_20' ) end [2025-02-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534618', 'tblTempVendorCDR_20' ) start [2025-02-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534618', 'tblTempVendorCDR_20' ) end [2025-02-22 19:41:18] Production.INFO: ProcessCDR(1,14534618,1,1,2) [2025-02-22 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534618', 'tblTempUsageDetail_20' ) start [2025-02-22 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534618', 'tblTempUsageDetail_20' ) end [2025-02-22 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:41:22] Production.INFO: ==31645== Releasing lock... [2025-02-22 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:41:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:42:05 [end_date_ymd] => 2025-02-22 19:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:42:05' and `end` < '2025-02-22 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-02-22 19:42:17] Production.INFO: count ==2042 [2025-02-22 19:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:42:05 - End Time 2025-02-22 19:42:05 [2025-02-22 19:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534623', 'tblTempUsageDetail_20' ) start [2025-02-22 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534623', 'tblTempUsageDetail_20' ) end [2025-02-22 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534623', 'tblTempVendorCDR_20' ) start [2025-02-22 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534623', 'tblTempVendorCDR_20' ) end [2025-02-22 19:42:17] Production.INFO: ProcessCDR(1,14534623,1,1,2) [2025-02-22 19:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534623', 'tblTempUsageDetail_20' ) start [2025-02-22 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534623', 'tblTempUsageDetail_20' ) end [2025-02-22 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:42:21] Production.INFO: ==31724== Releasing lock... [2025-02-22 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:42:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:43:05 [end_date_ymd] => 2025-02-22 19:43:05 [RateCDR] => 1 ) [2025-02-22 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:43:05' and `end` < '2025-02-22 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:43:17] Production.INFO: count ==2044 [2025-02-22 19:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:43:05 - End Time 2025-02-22 19:43:05 [2025-02-22 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534628', 'tblTempUsageDetail_20' ) start [2025-02-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534628', 'tblTempUsageDetail_20' ) end [2025-02-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534628', 'tblTempVendorCDR_20' ) start [2025-02-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534628', 'tblTempVendorCDR_20' ) end [2025-02-22 19:43:18] Production.INFO: ProcessCDR(1,14534628,1,1,2) [2025-02-22 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534628', 'tblTempUsageDetail_20' ) start [2025-02-22 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534628', 'tblTempUsageDetail_20' ) end [2025-02-22 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:43:21] Production.INFO: ==31803== Releasing lock... [2025-02-22 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:43:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:44:05 [end_date_ymd] => 2025-02-22 19:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:44:05' and `end` < '2025-02-22 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-02-22 19:44:17] Production.INFO: count ==2040 [2025-02-22 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:44:05 - End Time 2025-02-22 19:44:05 [2025-02-22 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534633', 'tblTempUsageDetail_20' ) start [2025-02-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534633', 'tblTempUsageDetail_20' ) end [2025-02-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534633', 'tblTempVendorCDR_20' ) start [2025-02-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534633', 'tblTempVendorCDR_20' ) end [2025-02-22 19:44:18] Production.INFO: ProcessCDR(1,14534633,1,1,2) [2025-02-22 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534633', 'tblTempUsageDetail_20' ) start [2025-02-22 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534633', 'tblTempUsageDetail_20' ) end [2025-02-22 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:44:21] Production.INFO: ==31875== Releasing lock... [2025-02-22 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:44:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:45:05 [end_date_ymd] => 2025-02-22 19:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:45:05' and `end` < '2025-02-22 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-02-22 19:45:17] Production.INFO: count ==2023 [2025-02-22 19:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:45:05 - End Time 2025-02-22 19:45:05 [2025-02-22 19:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534638', 'tblTempUsageDetail_20' ) start [2025-02-22 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534638', 'tblTempUsageDetail_20' ) end [2025-02-22 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534638', 'tblTempVendorCDR_20' ) start [2025-02-22 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534638', 'tblTempVendorCDR_20' ) end [2025-02-22 19:45:17] Production.INFO: ProcessCDR(1,14534638,1,1,2) [2025-02-22 19:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534638', 'tblTempUsageDetail_20' ) start [2025-02-22 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534638', 'tblTempUsageDetail_20' ) end [2025-02-22 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:45:21] Production.INFO: ==31948== Releasing lock... [2025-02-22 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:45:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:46:04 [end_date_ymd] => 2025-02-22 19:46:04 [RateCDR] => 1 ) [2025-02-22 19:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:46:04' and `end` < '2025-02-22 19:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:46:16] Production.INFO: count ==2020 [2025-02-22 19:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:46:04 - End Time 2025-02-22 19:46:04 [2025-02-22 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534643', 'tblTempUsageDetail_20' ) start [2025-02-22 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534643', 'tblTempUsageDetail_20' ) end [2025-02-22 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534643', 'tblTempVendorCDR_20' ) start [2025-02-22 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534643', 'tblTempVendorCDR_20' ) end [2025-02-22 19:46:17] Production.INFO: ProcessCDR(1,14534643,1,1,2) [2025-02-22 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534643', 'tblTempUsageDetail_20' ) start [2025-02-22 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534643', 'tblTempUsageDetail_20' ) end [2025-02-22 19:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:46:20] Production.INFO: ==32019== Releasing lock... [2025-02-22 19:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:46:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:47:05 [end_date_ymd] => 2025-02-22 19:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:47:05' and `end` < '2025-02-22 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-02-22 19:47:17] Production.INFO: count ==2020 [2025-02-22 19:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:47:05 - End Time 2025-02-22 19:47:05 [2025-02-22 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534648', 'tblTempUsageDetail_20' ) start [2025-02-22 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534648', 'tblTempUsageDetail_20' ) end [2025-02-22 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534648', 'tblTempVendorCDR_20' ) start [2025-02-22 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534648', 'tblTempVendorCDR_20' ) end [2025-02-22 19:47:17] Production.INFO: ProcessCDR(1,14534648,1,1,2) [2025-02-22 19:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534648', 'tblTempUsageDetail_20' ) start [2025-02-22 19:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534648', 'tblTempUsageDetail_20' ) end [2025-02-22 19:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:47:20] Production.INFO: ==32093== Releasing lock... [2025-02-22 19:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:47:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:48:04 [end_date_ymd] => 2025-02-22 19:48:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:48:04' and `end` < '2025-02-22 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-02-22 19:48:16] Production.INFO: count ==2021 [2025-02-22 19:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:48:04 - End Time 2025-02-22 19:48:04 [2025-02-22 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534653', 'tblTempUsageDetail_20' ) start [2025-02-22 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534653', 'tblTempUsageDetail_20' ) end [2025-02-22 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534653', 'tblTempVendorCDR_20' ) start [2025-02-22 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534653', 'tblTempVendorCDR_20' ) end [2025-02-22 19:48:17] Production.INFO: ProcessCDR(1,14534653,1,1,2) [2025-02-22 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534653', 'tblTempUsageDetail_20' ) start [2025-02-22 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534653', 'tblTempUsageDetail_20' ) end [2025-02-22 19:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:48:20] Production.INFO: ==32163== Releasing lock... [2025-02-22 19:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:48:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:49:05 [end_date_ymd] => 2025-02-22 19:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:49:05' and `end` < '2025-02-22 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-02-22 19:49:17] Production.INFO: count ==2024 [2025-02-22 19:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:49:05 - End Time 2025-02-22 19:49:05 [2025-02-22 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534658', 'tblTempUsageDetail_20' ) start [2025-02-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534658', 'tblTempUsageDetail_20' ) end [2025-02-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534658', 'tblTempVendorCDR_20' ) start [2025-02-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534658', 'tblTempVendorCDR_20' ) end [2025-02-22 19:49:17] Production.INFO: ProcessCDR(1,14534658,1,1,2) [2025-02-22 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534658', 'tblTempUsageDetail_20' ) start [2025-02-22 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534658', 'tblTempUsageDetail_20' ) end [2025-02-22 19:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:49:20] Production.INFO: ==32235== Releasing lock... [2025-02-22 19:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:49:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:50:07 [end_date_ymd] => 2025-02-22 19:50:07 [RateCDR] => 1 ) [2025-02-22 19:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:50:07' and `end` < '2025-02-22 19:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:50:19] Production.INFO: count ==2019 [2025-02-22 19:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 16:50:07 - End Time 2025-02-22 19:50:07 [2025-02-22 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534664', 'tblTempUsageDetail_20' ) start [2025-02-22 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534664', 'tblTempUsageDetail_20' ) end [2025-02-22 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534664', 'tblTempVendorCDR_20' ) start [2025-02-22 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534664', 'tblTempVendorCDR_20' ) end [2025-02-22 19:50:19] Production.INFO: ProcessCDR(1,14534664,1,1,2) [2025-02-22 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534664', 'tblTempUsageDetail_20' ) start [2025-02-22 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534664', 'tblTempUsageDetail_20' ) end [2025-02-22 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:50:22] Production.INFO: ==32316== Releasing lock... [2025-02-22 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:50:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:51:05 [end_date_ymd] => 2025-02-22 19:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:51:05' and `end` < '2025-02-22 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-02-22 19:51:17] Production.INFO: count ==2024 [2025-02-22 19:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:51:05 - End Time 2025-02-22 19:51:05 [2025-02-22 19:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534669', 'tblTempUsageDetail_20' ) start [2025-02-22 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534669', 'tblTempUsageDetail_20' ) end [2025-02-22 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534669', 'tblTempVendorCDR_20' ) start [2025-02-22 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534669', 'tblTempVendorCDR_20' ) end [2025-02-22 19:51:17] Production.INFO: ProcessCDR(1,14534669,1,1,2) [2025-02-22 19:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534669', 'tblTempUsageDetail_20' ) start [2025-02-22 19:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534669', 'tblTempUsageDetail_20' ) end [2025-02-22 19:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:51:20] Production.INFO: ==32397== Releasing lock... [2025-02-22 19:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:51:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:52:05 [end_date_ymd] => 2025-02-22 19:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:52:05' and `end` < '2025-02-22 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-02-22 19:52:17] Production.INFO: count ==2031 [2025-02-22 19:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:52:05 - End Time 2025-02-22 19:52:05 [2025-02-22 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534674', 'tblTempUsageDetail_20' ) start [2025-02-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534674', 'tblTempUsageDetail_20' ) end [2025-02-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534674', 'tblTempVendorCDR_20' ) start [2025-02-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534674', 'tblTempVendorCDR_20' ) end [2025-02-22 19:52:17] Production.INFO: ProcessCDR(1,14534674,1,1,2) [2025-02-22 19:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534674', 'tblTempUsageDetail_20' ) start [2025-02-22 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534674', 'tblTempUsageDetail_20' ) end [2025-02-22 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:52:21] Production.INFO: ==32466== Releasing lock... [2025-02-22 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:52:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:53:05 [end_date_ymd] => 2025-02-22 19:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:53:05' and `end` < '2025-02-22 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-02-22 19:53:17] Production.INFO: count ==2047 [2025-02-22 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:53:05 - End Time 2025-02-22 19:53:05 [2025-02-22 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534679', 'tblTempUsageDetail_20' ) start [2025-02-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534679', 'tblTempUsageDetail_20' ) end [2025-02-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534679', 'tblTempVendorCDR_20' ) start [2025-02-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534679', 'tblTempVendorCDR_20' ) end [2025-02-22 19:53:18] Production.INFO: ProcessCDR(1,14534679,1,1,2) [2025-02-22 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534679', 'tblTempUsageDetail_20' ) start [2025-02-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534679', 'tblTempUsageDetail_20' ) end [2025-02-22 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:53:21] Production.INFO: ==32542== Releasing lock... [2025-02-22 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:53:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:54:05 [end_date_ymd] => 2025-02-22 19:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:54:05' and `end` < '2025-02-22 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-02-22 19:54:17] Production.INFO: count ==2050 [2025-02-22 19:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:54:05 - End Time 2025-02-22 19:54:05 [2025-02-22 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534684', 'tblTempUsageDetail_20' ) start [2025-02-22 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534684', 'tblTempUsageDetail_20' ) end [2025-02-22 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534684', 'tblTempVendorCDR_20' ) start [2025-02-22 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534684', 'tblTempVendorCDR_20' ) end [2025-02-22 19:54:18] Production.INFO: ProcessCDR(1,14534684,1,1,2) [2025-02-22 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534684', 'tblTempUsageDetail_20' ) start [2025-02-22 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534684', 'tblTempUsageDetail_20' ) end [2025-02-22 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:54:21] Production.INFO: ==32618== Releasing lock... [2025-02-22 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:54:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:55:05 [end_date_ymd] => 2025-02-22 19:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:55:05' and `end` < '2025-02-22 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-02-22 19:55:17] Production.INFO: count ==2052 [2025-02-22 19:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 16:55:05 - End Time 2025-02-22 19:55:05 [2025-02-22 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534689', 'tblTempUsageDetail_20' ) start [2025-02-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534689', 'tblTempUsageDetail_20' ) end [2025-02-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534689', 'tblTempVendorCDR_20' ) start [2025-02-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534689', 'tblTempVendorCDR_20' ) end [2025-02-22 19:55:17] Production.INFO: ProcessCDR(1,14534689,1,1,2) [2025-02-22 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534689', 'tblTempUsageDetail_20' ) start [2025-02-22 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534689', 'tblTempUsageDetail_20' ) end [2025-02-22 19:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:55:20] Production.INFO: ==32705== Releasing lock... [2025-02-22 19:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:55:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:56:05 [end_date_ymd] => 2025-02-22 19:56:05 [RateCDR] => 1 ) [2025-02-22 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:56:05' and `end` < '2025-02-22 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:56:17] Production.INFO: count ==2039 [2025-02-22 19:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:56:05 - End Time 2025-02-22 19:56:05 [2025-02-22 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534694', 'tblTempUsageDetail_20' ) start [2025-02-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534694', 'tblTempUsageDetail_20' ) end [2025-02-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534694', 'tblTempVendorCDR_20' ) start [2025-02-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534694', 'tblTempVendorCDR_20' ) end [2025-02-22 19:56:18] Production.INFO: ProcessCDR(1,14534694,1,1,2) [2025-02-22 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534694', 'tblTempUsageDetail_20' ) start [2025-02-22 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534694', 'tblTempUsageDetail_20' ) end [2025-02-22 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:56:21] Production.INFO: ==369== Releasing lock... [2025-02-22 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:56:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:57:06 [end_date_ymd] => 2025-02-22 19:57:06 [RateCDR] => 1 ) [2025-02-22 19:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:57:06' and `end` < '2025-02-22 19:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:57:18] Production.INFO: count ==2038 [2025-02-22 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:57:06 - End Time 2025-02-22 19:57:06 [2025-02-22 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534699', 'tblTempUsageDetail_20' ) start [2025-02-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534699', 'tblTempUsageDetail_20' ) end [2025-02-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534699', 'tblTempVendorCDR_20' ) start [2025-02-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534699', 'tblTempVendorCDR_20' ) end [2025-02-22 19:57:18] Production.INFO: ProcessCDR(1,14534699,1,1,2) [2025-02-22 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534699', 'tblTempUsageDetail_20' ) start [2025-02-22 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534699', 'tblTempUsageDetail_20' ) end [2025-02-22 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:57:21] Production.INFO: ==448== Releasing lock... [2025-02-22 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:57:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:58:05 [end_date_ymd] => 2025-02-22 19:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 16:58:05' and `end` < '2025-02-22 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-02-22 19:58:17] Production.INFO: count ==2037 [2025-02-22 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:58:05 - End Time 2025-02-22 19:58:05 [2025-02-22 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534704', 'tblTempUsageDetail_20' ) start [2025-02-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534704', 'tblTempUsageDetail_20' ) end [2025-02-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534704', 'tblTempVendorCDR_20' ) start [2025-02-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534704', 'tblTempVendorCDR_20' ) end [2025-02-22 19:58:18] Production.INFO: ProcessCDR(1,14534704,1,1,2) [2025-02-22 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534704', 'tblTempUsageDetail_20' ) start [2025-02-22 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534704', 'tblTempUsageDetail_20' ) end [2025-02-22 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:58:21] Production.INFO: ==525== Releasing lock... [2025-02-22 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:58:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 16:59:05 [end_date_ymd] => 2025-02-22 19:59:05 [RateCDR] => 1 ) [2025-02-22 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 16:59:05' and `end` < '2025-02-22 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 19:59:17] Production.INFO: count ==2033 [2025-02-22 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 16:59:05 - End Time 2025-02-22 19:59:05 [2025-02-22 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534709', 'tblTempUsageDetail_20' ) start [2025-02-22 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534709', 'tblTempUsageDetail_20' ) end [2025-02-22 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534709', 'tblTempVendorCDR_20' ) start [2025-02-22 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534709', 'tblTempVendorCDR_20' ) end [2025-02-22 19:59:18] Production.INFO: ProcessCDR(1,14534709,1,1,2) [2025-02-22 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534709', 'tblTempUsageDetail_20' ) start [2025-02-22 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534709', 'tblTempUsageDetail_20' ) end [2025-02-22 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 19:59:21] Production.INFO: ==601== Releasing lock... [2025-02-22 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 19:59:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:00:06 [end_date_ymd] => 2025-02-22 20:00:06 [RateCDR] => 1 ) [2025-02-22 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:00:06' and `end` < '2025-02-22 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:00:18] Production.INFO: count ==2032 [2025-02-22 20:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:00:06 - End Time 2025-02-22 20:00:06 [2025-02-22 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534715', 'tblTempUsageDetail_20' ) start [2025-02-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534715', 'tblTempUsageDetail_20' ) end [2025-02-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534715', 'tblTempVendorCDR_20' ) start [2025-02-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534715', 'tblTempVendorCDR_20' ) end [2025-02-22 20:00:18] Production.INFO: ProcessCDR(1,14534715,1,1,2) [2025-02-22 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534715', 'tblTempUsageDetail_20' ) start [2025-02-22 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534715', 'tblTempUsageDetail_20' ) end [2025-02-22 20:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:00:21] Production.INFO: ==706== Releasing lock... [2025-02-22 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:00:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:01:05 [end_date_ymd] => 2025-02-22 20:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:01:05' and `end` < '2025-02-22 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-02-22 20:01:17] Production.INFO: count ==2065 [2025-02-22 20:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:01:05 - End Time 2025-02-22 20:01:05 [2025-02-22 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534720', 'tblTempUsageDetail_20' ) start [2025-02-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534720', 'tblTempUsageDetail_20' ) end [2025-02-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534720', 'tblTempVendorCDR_20' ) start [2025-02-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534720', 'tblTempVendorCDR_20' ) end [2025-02-22 20:01:17] Production.INFO: ProcessCDR(1,14534720,1,1,2) [2025-02-22 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534720', 'tblTempUsageDetail_20' ) start [2025-02-22 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534720', 'tblTempUsageDetail_20' ) end [2025-02-22 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:01:21] Production.INFO: ==840== Releasing lock... [2025-02-22 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:01:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:02:05 [end_date_ymd] => 2025-02-22 20:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:02:05' and `end` < '2025-02-22 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-02-22 20:02:17] Production.INFO: count ==2079 [2025-02-22 20:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:02:05 - End Time 2025-02-22 20:02:05 [2025-02-22 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534725', 'tblTempUsageDetail_20' ) start [2025-02-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534725', 'tblTempUsageDetail_20' ) end [2025-02-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534725', 'tblTempVendorCDR_20' ) start [2025-02-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534725', 'tblTempVendorCDR_20' ) end [2025-02-22 20:02:18] Production.INFO: ProcessCDR(1,14534725,1,1,2) [2025-02-22 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534725', 'tblTempUsageDetail_20' ) start [2025-02-22 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534725', 'tblTempUsageDetail_20' ) end [2025-02-22 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:02:22] Production.INFO: ==914== Releasing lock... [2025-02-22 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:02:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:03:05 [end_date_ymd] => 2025-02-22 20:03:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:03:05' and `end` < '2025-02-22 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-02-22 20:03:17] Production.INFO: count ==2095 [2025-02-22 20:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:03:05 - End Time 2025-02-22 20:03:05 [2025-02-22 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534730', 'tblTempUsageDetail_20' ) start [2025-02-22 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534730', 'tblTempUsageDetail_20' ) end [2025-02-22 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534730', 'tblTempVendorCDR_20' ) start [2025-02-22 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534730', 'tblTempVendorCDR_20' ) end [2025-02-22 20:03:17] Production.INFO: ProcessCDR(1,14534730,1,1,2) [2025-02-22 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534730', 'tblTempUsageDetail_20' ) start [2025-02-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534730', 'tblTempUsageDetail_20' ) end [2025-02-22 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:03:21] Production.INFO: ==992== Releasing lock... [2025-02-22 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:03:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:04:05 [end_date_ymd] => 2025-02-22 20:04:05 [RateCDR] => 1 ) [2025-02-22 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:04:05' and `end` < '2025-02-22 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:04:17] Production.INFO: count ==2094 [2025-02-22 20:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:04:05 - End Time 2025-02-22 20:04:05 [2025-02-22 20:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534735', 'tblTempUsageDetail_20' ) start [2025-02-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534735', 'tblTempUsageDetail_20' ) end [2025-02-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534735', 'tblTempVendorCDR_20' ) start [2025-02-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534735', 'tblTempVendorCDR_20' ) end [2025-02-22 20:04:17] Production.INFO: ProcessCDR(1,14534735,1,1,2) [2025-02-22 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534735', 'tblTempUsageDetail_20' ) start [2025-02-22 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534735', 'tblTempUsageDetail_20' ) end [2025-02-22 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:04:21] Production.INFO: ==1067== Releasing lock... [2025-02-22 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:04:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:05:05 [end_date_ymd] => 2025-02-22 20:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:05:05' and `end` < '2025-02-22 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-02-22 20:05:17] Production.INFO: count ==2110 [2025-02-22 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:05:05 - End Time 2025-02-22 20:05:05 [2025-02-22 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534740', 'tblTempUsageDetail_20' ) start [2025-02-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534740', 'tblTempUsageDetail_20' ) end [2025-02-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534740', 'tblTempVendorCDR_20' ) start [2025-02-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534740', 'tblTempVendorCDR_20' ) end [2025-02-22 20:05:18] Production.INFO: ProcessCDR(1,14534740,1,1,2) [2025-02-22 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534740', 'tblTempUsageDetail_20' ) start [2025-02-22 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534740', 'tblTempUsageDetail_20' ) end [2025-02-22 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:05:21] Production.INFO: ==1144== Releasing lock... [2025-02-22 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:05:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:06:06 [end_date_ymd] => 2025-02-22 20:06:06 [RateCDR] => 1 ) [2025-02-22 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:06:06' and `end` < '2025-02-22 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:06:18] Production.INFO: count ==2109 [2025-02-22 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:06:06 - End Time 2025-02-22 20:06:06 [2025-02-22 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534745', 'tblTempUsageDetail_20' ) start [2025-02-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534745', 'tblTempUsageDetail_20' ) end [2025-02-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534745', 'tblTempVendorCDR_20' ) start [2025-02-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534745', 'tblTempVendorCDR_20' ) end [2025-02-22 20:06:18] Production.INFO: ProcessCDR(1,14534745,1,1,2) [2025-02-22 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534745', 'tblTempUsageDetail_20' ) start [2025-02-22 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534745', 'tblTempUsageDetail_20' ) end [2025-02-22 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:06:21] Production.INFO: ==1227== Releasing lock... [2025-02-22 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:06:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:07:05 [end_date_ymd] => 2025-02-22 20:07:05 [RateCDR] => 1 ) [2025-02-22 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:07:05' and `end` < '2025-02-22 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:07:17] Production.INFO: count ==2109 [2025-02-22 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:07:05 - End Time 2025-02-22 20:07:05 [2025-02-22 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534750', 'tblTempUsageDetail_20' ) start [2025-02-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534750', 'tblTempUsageDetail_20' ) end [2025-02-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534750', 'tblTempVendorCDR_20' ) start [2025-02-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534750', 'tblTempVendorCDR_20' ) end [2025-02-22 20:07:18] Production.INFO: ProcessCDR(1,14534750,1,1,2) [2025-02-22 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534750', 'tblTempUsageDetail_20' ) start [2025-02-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534750', 'tblTempUsageDetail_20' ) end [2025-02-22 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:07:21] Production.INFO: ==1318== Releasing lock... [2025-02-22 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:07:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:08:05 [end_date_ymd] => 2025-02-22 20:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:08:05' and `end` < '2025-02-22 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-02-22 20:08:17] Production.INFO: count ==2099 [2025-02-22 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:08:05 - End Time 2025-02-22 20:08:05 [2025-02-22 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534755', 'tblTempUsageDetail_20' ) start [2025-02-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534755', 'tblTempUsageDetail_20' ) end [2025-02-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534755', 'tblTempVendorCDR_20' ) start [2025-02-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534755', 'tblTempVendorCDR_20' ) end [2025-02-22 20:08:18] Production.INFO: ProcessCDR(1,14534755,1,1,2) [2025-02-22 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534755', 'tblTempUsageDetail_20' ) start [2025-02-22 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534755', 'tblTempUsageDetail_20' ) end [2025-02-22 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:08:21] Production.INFO: ==1397== Releasing lock... [2025-02-22 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:08:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:09:05 [end_date_ymd] => 2025-02-22 20:09:05 [RateCDR] => 1 ) [2025-02-22 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:09:05' and `end` < '2025-02-22 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:09:17] Production.INFO: count ==2102 [2025-02-22 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:09:05 - End Time 2025-02-22 20:09:05 [2025-02-22 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534760', 'tblTempUsageDetail_20' ) start [2025-02-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534760', 'tblTempUsageDetail_20' ) end [2025-02-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534760', 'tblTempVendorCDR_20' ) start [2025-02-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534760', 'tblTempVendorCDR_20' ) end [2025-02-22 20:09:18] Production.INFO: ProcessCDR(1,14534760,1,1,2) [2025-02-22 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534760', 'tblTempUsageDetail_20' ) start [2025-02-22 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534760', 'tblTempUsageDetail_20' ) end [2025-02-22 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:09:22] Production.INFO: ==1477== Releasing lock... [2025-02-22 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:10:06 [end_date_ymd] => 2025-02-22 20:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:10:06' and `end` < '2025-02-22 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-02-22 20:10:18] Production.INFO: count ==2104 [2025-02-22 20:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:10:06 - End Time 2025-02-22 20:10:06 [2025-02-22 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534766', 'tblTempUsageDetail_20' ) start [2025-02-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534766', 'tblTempUsageDetail_20' ) end [2025-02-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534766', 'tblTempVendorCDR_20' ) start [2025-02-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534766', 'tblTempVendorCDR_20' ) end [2025-02-22 20:10:18] Production.INFO: ProcessCDR(1,14534766,1,1,2) [2025-02-22 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534766', 'tblTempUsageDetail_20' ) start [2025-02-22 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534766', 'tblTempUsageDetail_20' ) end [2025-02-22 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:10:23] Production.INFO: ==1587== Releasing lock... [2025-02-22 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:10:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:11:05 [end_date_ymd] => 2025-02-22 20:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:11:05' and `end` < '2025-02-22 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-02-22 20:11:17] Production.INFO: count ==2157 [2025-02-22 20:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:11:05 - End Time 2025-02-22 20:11:05 [2025-02-22 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534768', 'tblTempUsageDetail_20' ) start [2025-02-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534768', 'tblTempUsageDetail_20' ) end [2025-02-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534768', 'tblTempVendorCDR_20' ) start [2025-02-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534768', 'tblTempVendorCDR_20' ) end [2025-02-22 20:11:17] Production.INFO: ProcessCDR(1,14534768,1,1,2) [2025-02-22 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534768', 'tblTempUsageDetail_20' ) start [2025-02-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534768', 'tblTempUsageDetail_20' ) end [2025-02-22 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:11:21] Production.INFO: ==1706== Releasing lock... [2025-02-22 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:11:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:12:05 [end_date_ymd] => 2025-02-22 20:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:12:05' and `end` < '2025-02-22 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-02-22 20:12:17] Production.INFO: count ==2172 [2025-02-22 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:12:05 - End Time 2025-02-22 20:12:05 [2025-02-22 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534776', 'tblTempUsageDetail_20' ) start [2025-02-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534776', 'tblTempUsageDetail_20' ) end [2025-02-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534776', 'tblTempVendorCDR_20' ) start [2025-02-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534776', 'tblTempVendorCDR_20' ) end [2025-02-22 20:12:18] Production.INFO: ProcessCDR(1,14534776,1,1,2) [2025-02-22 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534776', 'tblTempUsageDetail_20' ) start [2025-02-22 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534776', 'tblTempUsageDetail_20' ) end [2025-02-22 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:12:21] Production.INFO: ==1781== Releasing lock... [2025-02-22 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:12:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:13:05 [end_date_ymd] => 2025-02-22 20:13:05 [RateCDR] => 1 ) [2025-02-22 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:13:05' and `end` < '2025-02-22 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:13:17] Production.INFO: count ==2169 [2025-02-22 20:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:13:05 - End Time 2025-02-22 20:13:05 [2025-02-22 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534781', 'tblTempUsageDetail_20' ) start [2025-02-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534781', 'tblTempUsageDetail_20' ) end [2025-02-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534781', 'tblTempVendorCDR_20' ) start [2025-02-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534781', 'tblTempVendorCDR_20' ) end [2025-02-22 20:13:17] Production.INFO: ProcessCDR(1,14534781,1,1,2) [2025-02-22 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534781', 'tblTempUsageDetail_20' ) start [2025-02-22 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534781', 'tblTempUsageDetail_20' ) end [2025-02-22 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:13:22] Production.INFO: ==1859== Releasing lock... [2025-02-22 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:13:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:14:05 [end_date_ymd] => 2025-02-22 20:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:14:05' and `end` < '2025-02-22 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-02-22 20:14:17] Production.INFO: count ==2168 [2025-02-22 20:14:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:14:05 - End Time 2025-02-22 20:14:05 [2025-02-22 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534786', 'tblTempUsageDetail_20' ) start [2025-02-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534786', 'tblTempUsageDetail_20' ) end [2025-02-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534786', 'tblTempVendorCDR_20' ) start [2025-02-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534786', 'tblTempVendorCDR_20' ) end [2025-02-22 20:14:18] Production.INFO: ProcessCDR(1,14534786,1,1,2) [2025-02-22 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534786', 'tblTempUsageDetail_20' ) start [2025-02-22 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534786', 'tblTempUsageDetail_20' ) end [2025-02-22 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:14:21] Production.INFO: ==1936== Releasing lock... [2025-02-22 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:14:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:15:05 [end_date_ymd] => 2025-02-22 20:15:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:15:05' and `end` < '2025-02-22 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-02-22 20:15:17] Production.INFO: count ==2252 [2025-02-22 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:15:05 - End Time 2025-02-22 20:15:05 [2025-02-22 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534791', 'tblTempUsageDetail_20' ) start [2025-02-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534791', 'tblTempUsageDetail_20' ) end [2025-02-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534791', 'tblTempVendorCDR_20' ) start [2025-02-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534791', 'tblTempVendorCDR_20' ) end [2025-02-22 20:15:18] Production.INFO: ProcessCDR(1,14534791,1,1,2) [2025-02-22 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534791', 'tblTempUsageDetail_20' ) start [2025-02-22 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534791', 'tblTempUsageDetail_20' ) end [2025-02-22 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:15:23] Production.INFO: ==2012== Releasing lock... [2025-02-22 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:15:23] Production.INFO: 45 MB #Memory Used# [2025-02-22 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:16:05 [end_date_ymd] => 2025-02-22 20:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:16:05' and `end` < '2025-02-22 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-02-22 20:16:17] Production.INFO: count ==2253 [2025-02-22 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:16:05 - End Time 2025-02-22 20:16:05 [2025-02-22 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534796', 'tblTempUsageDetail_20' ) start [2025-02-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534796', 'tblTempUsageDetail_20' ) end [2025-02-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534796', 'tblTempVendorCDR_20' ) start [2025-02-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534796', 'tblTempVendorCDR_20' ) end [2025-02-22 20:16:18] Production.INFO: ProcessCDR(1,14534796,1,1,2) [2025-02-22 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534796', 'tblTempUsageDetail_20' ) start [2025-02-22 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534796', 'tblTempUsageDetail_20' ) end [2025-02-22 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:16:22] Production.INFO: ==2092== Releasing lock... [2025-02-22 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:16:22] Production.INFO: 45 MB #Memory Used# [2025-02-22 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:17:05 [end_date_ymd] => 2025-02-22 20:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:17:05' and `end` < '2025-02-22 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-02-22 20:17:17] Production.INFO: count ==2251 [2025-02-22 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:17:05 - End Time 2025-02-22 20:17:05 [2025-02-22 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534801', 'tblTempUsageDetail_20' ) start [2025-02-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534801', 'tblTempUsageDetail_20' ) end [2025-02-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534801', 'tblTempVendorCDR_20' ) start [2025-02-22 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534801', 'tblTempVendorCDR_20' ) end [2025-02-22 20:17:18] Production.INFO: ProcessCDR(1,14534801,1,1,2) [2025-02-22 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534801', 'tblTempUsageDetail_20' ) start [2025-02-22 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534801', 'tblTempUsageDetail_20' ) end [2025-02-22 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:17:22] Production.INFO: ==2166== Releasing lock... [2025-02-22 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:17:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:18:05 [end_date_ymd] => 2025-02-22 20:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:18:05' and `end` < '2025-02-22 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-02-22 20:18:17] Production.INFO: count ==2254 [2025-02-22 20:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:18:05 - End Time 2025-02-22 20:18:05 [2025-02-22 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534806', 'tblTempUsageDetail_20' ) start [2025-02-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534806', 'tblTempUsageDetail_20' ) end [2025-02-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534806', 'tblTempVendorCDR_20' ) start [2025-02-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534806', 'tblTempVendorCDR_20' ) end [2025-02-22 20:18:18] Production.INFO: ProcessCDR(1,14534806,1,1,2) [2025-02-22 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534806', 'tblTempUsageDetail_20' ) start [2025-02-22 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534806', 'tblTempUsageDetail_20' ) end [2025-02-22 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:18:21] Production.INFO: ==2251== Releasing lock... [2025-02-22 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:18:21] Production.INFO: 45 MB #Memory Used# [2025-02-22 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:19:05 [end_date_ymd] => 2025-02-22 20:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:19:05' and `end` < '2025-02-22 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-02-22 20:19:17] Production.INFO: count ==2259 [2025-02-22 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:19:05 - End Time 2025-02-22 20:19:05 [2025-02-22 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534811', 'tblTempUsageDetail_20' ) start [2025-02-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534811', 'tblTempUsageDetail_20' ) end [2025-02-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534811', 'tblTempVendorCDR_20' ) start [2025-02-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534811', 'tblTempVendorCDR_20' ) end [2025-02-22 20:19:18] Production.INFO: ProcessCDR(1,14534811,1,1,2) [2025-02-22 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534811', 'tblTempUsageDetail_20' ) start [2025-02-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534811', 'tblTempUsageDetail_20' ) end [2025-02-22 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:19:21] Production.INFO: ==2329== Releasing lock... [2025-02-22 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:19:21] Production.INFO: 45 MB #Memory Used# [2025-02-22 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:20:05 [end_date_ymd] => 2025-02-22 20:20:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:20:05' and `end` < '2025-02-22 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-02-22 20:20:17] Production.INFO: count ==2249 [2025-02-22 20:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:20:05 - End Time 2025-02-22 20:20:05 [2025-02-22 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534817', 'tblTempUsageDetail_20' ) start [2025-02-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534817', 'tblTempUsageDetail_20' ) end [2025-02-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534817', 'tblTempVendorCDR_20' ) start [2025-02-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534817', 'tblTempVendorCDR_20' ) end [2025-02-22 20:20:18] Production.INFO: ProcessCDR(1,14534817,1,1,2) [2025-02-22 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534817', 'tblTempUsageDetail_20' ) start [2025-02-22 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534817', 'tblTempUsageDetail_20' ) end [2025-02-22 20:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:20:21] Production.INFO: ==2406== Releasing lock... [2025-02-22 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:20:21] Production.INFO: 45 MB #Memory Used# [2025-02-22 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:21:06 [end_date_ymd] => 2025-02-22 20:21:06 [RateCDR] => 1 ) [2025-02-22 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:21:06' and `end` < '2025-02-22 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:21:18] Production.INFO: count ==2248 [2025-02-22 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:21:06 - End Time 2025-02-22 20:21:06 [2025-02-22 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534822', 'tblTempUsageDetail_20' ) start [2025-02-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534822', 'tblTempUsageDetail_20' ) end [2025-02-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534822', 'tblTempVendorCDR_20' ) start [2025-02-22 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534822', 'tblTempVendorCDR_20' ) end [2025-02-22 20:21:18] Production.INFO: ProcessCDR(1,14534822,1,1,2) [2025-02-22 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534822', 'tblTempUsageDetail_20' ) start [2025-02-22 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534822', 'tblTempUsageDetail_20' ) end [2025-02-22 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:21:22] Production.INFO: ==2487== Releasing lock... [2025-02-22 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:21:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-22 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:22:04 [end_date_ymd] => 2025-02-22 20:22:04 [RateCDR] => 1 ) [2025-02-22 20: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-02-22 17:22:04' and `end` < '2025-02-22 20: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-02-22 20:22:16] Production.INFO: count ==2242 [2025-02-22 20:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:22:04 - End Time 2025-02-22 20:22:04 [2025-02-22 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534827', 'tblTempUsageDetail_20' ) start [2025-02-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534827', 'tblTempUsageDetail_20' ) end [2025-02-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534827', 'tblTempVendorCDR_20' ) start [2025-02-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534827', 'tblTempVendorCDR_20' ) end [2025-02-22 20:22:17] Production.INFO: ProcessCDR(1,14534827,1,1,2) [2025-02-22 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534827', 'tblTempUsageDetail_20' ) start [2025-02-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534827', 'tblTempUsageDetail_20' ) end [2025-02-22 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:22:22] Production.INFO: ==2566== Releasing lock... [2025-02-22 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:22:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:23:05 [end_date_ymd] => 2025-02-22 20:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:23:05' and `end` < '2025-02-22 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-02-22 20:23:17] Production.INFO: count ==2233 [2025-02-22 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:23:05 - End Time 2025-02-22 20:23:05 [2025-02-22 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534832', 'tblTempUsageDetail_20' ) start [2025-02-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534832', 'tblTempUsageDetail_20' ) end [2025-02-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534832', 'tblTempVendorCDR_20' ) start [2025-02-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534832', 'tblTempVendorCDR_20' ) end [2025-02-22 20:23:18] Production.INFO: ProcessCDR(1,14534832,1,1,2) [2025-02-22 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534832', 'tblTempUsageDetail_20' ) start [2025-02-22 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534832', 'tblTempUsageDetail_20' ) end [2025-02-22 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:23:23] Production.INFO: ==2638== Releasing lock... [2025-02-22 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:23:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:24:04 [end_date_ymd] => 2025-02-22 20:24:04 [RateCDR] => 1 ) [2025-02-22 20: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-02-22 17:24:04' and `end` < '2025-02-22 20: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-02-22 20:24:16] Production.INFO: count ==2233 [2025-02-22 20:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:24:04 - End Time 2025-02-22 20:24:04 [2025-02-22 20:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534837', 'tblTempUsageDetail_20' ) start [2025-02-22 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534837', 'tblTempUsageDetail_20' ) end [2025-02-22 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534837', 'tblTempVendorCDR_20' ) start [2025-02-22 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534837', 'tblTempVendorCDR_20' ) end [2025-02-22 20:24:17] Production.INFO: ProcessCDR(1,14534837,1,1,2) [2025-02-22 20:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534837', 'tblTempUsageDetail_20' ) start [2025-02-22 20:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534837', 'tblTempUsageDetail_20' ) end [2025-02-22 20:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:24:20] Production.INFO: ==2714== Releasing lock... [2025-02-22 20:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:24:20] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:25:05 [end_date_ymd] => 2025-02-22 20:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:25:05' and `end` < '2025-02-22 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-02-22 20:25:17] Production.INFO: count ==2225 [2025-02-22 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:25:05 - End Time 2025-02-22 20:25:05 [2025-02-22 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534842', 'tblTempUsageDetail_20' ) start [2025-02-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534842', 'tblTempUsageDetail_20' ) end [2025-02-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534842', 'tblTempVendorCDR_20' ) start [2025-02-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534842', 'tblTempVendorCDR_20' ) end [2025-02-22 20:25:18] Production.INFO: ProcessCDR(1,14534842,1,1,2) [2025-02-22 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534842', 'tblTempUsageDetail_20' ) start [2025-02-22 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534842', 'tblTempUsageDetail_20' ) end [2025-02-22 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:25:23] Production.INFO: ==2796== Releasing lock... [2025-02-22 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:25:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:26:04 [end_date_ymd] => 2025-02-22 20:26:04 [RateCDR] => 1 ) [2025-02-22 20: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-02-22 17:26:04' and `end` < '2025-02-22 20: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-02-22 20:26:17] Production.INFO: count ==2221 [2025-02-22 20:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:26:04 - End Time 2025-02-22 20:26:04 [2025-02-22 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534847', 'tblTempUsageDetail_20' ) start [2025-02-22 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534847', 'tblTempUsageDetail_20' ) end [2025-02-22 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534847', 'tblTempVendorCDR_20' ) start [2025-02-22 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534847', 'tblTempVendorCDR_20' ) end [2025-02-22 20:26:17] Production.INFO: ProcessCDR(1,14534847,1,1,2) [2025-02-22 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534847', 'tblTempUsageDetail_20' ) start [2025-02-22 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534847', 'tblTempUsageDetail_20' ) end [2025-02-22 20:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:26:20] Production.INFO: ==2870== Releasing lock... [2025-02-22 20:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:26:20] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:27:05 [end_date_ymd] => 2025-02-22 20:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:27:05' and `end` < '2025-02-22 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-02-22 20:27:17] Production.INFO: count ==2224 [2025-02-22 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:27:05 - End Time 2025-02-22 20:27:05 [2025-02-22 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534852', 'tblTempUsageDetail_20' ) start [2025-02-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534852', 'tblTempUsageDetail_20' ) end [2025-02-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534852', 'tblTempVendorCDR_20' ) start [2025-02-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534852', 'tblTempVendorCDR_20' ) end [2025-02-22 20:27:18] Production.INFO: ProcessCDR(1,14534852,1,1,2) [2025-02-22 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534852', 'tblTempUsageDetail_20' ) start [2025-02-22 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534852', 'tblTempUsageDetail_20' ) end [2025-02-22 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:27:21] Production.INFO: ==2984== Releasing lock... [2025-02-22 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:27:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:28:05 [end_date_ymd] => 2025-02-22 20:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:28:05' and `end` < '2025-02-22 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-02-22 20:28:17] Production.INFO: count ==2212 [2025-02-22 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:28:05 - End Time 2025-02-22 20:28:05 [2025-02-22 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534857', 'tblTempUsageDetail_20' ) start [2025-02-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534857', 'tblTempUsageDetail_20' ) end [2025-02-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534857', 'tblTempVendorCDR_20' ) start [2025-02-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534857', 'tblTempVendorCDR_20' ) end [2025-02-22 20:28:18] Production.INFO: ProcessCDR(1,14534857,1,1,2) [2025-02-22 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534857', 'tblTempUsageDetail_20' ) start [2025-02-22 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534857', 'tblTempUsageDetail_20' ) end [2025-02-22 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:28:22] Production.INFO: ==3069== Releasing lock... [2025-02-22 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:28:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:29:05 [end_date_ymd] => 2025-02-22 20:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:29:05' and `end` < '2025-02-22 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-02-22 20:29:17] Production.INFO: count ==2208 [2025-02-22 20:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:29:05 - End Time 2025-02-22 20:29:05 [2025-02-22 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534862', 'tblTempUsageDetail_20' ) start [2025-02-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534862', 'tblTempUsageDetail_20' ) end [2025-02-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534862', 'tblTempVendorCDR_20' ) start [2025-02-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534862', 'tblTempVendorCDR_20' ) end [2025-02-22 20:29:17] Production.INFO: ProcessCDR(1,14534862,1,1,2) [2025-02-22 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534862', 'tblTempUsageDetail_20' ) start [2025-02-22 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534862', 'tblTempUsageDetail_20' ) end [2025-02-22 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:29:21] Production.INFO: ==3149== Releasing lock... [2025-02-22 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:29:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-22 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:30:06 [end_date_ymd] => 2025-02-22 20:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:30:06' and `end` < '2025-02-22 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-02-22 20:30:18] Production.INFO: count ==2204 [2025-02-22 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 17:30:06 - End Time 2025-02-22 20:30:06 [2025-02-22 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534868', 'tblTempUsageDetail_20' ) start [2025-02-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534868', 'tblTempUsageDetail_20' ) end [2025-02-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534868', 'tblTempVendorCDR_20' ) start [2025-02-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534868', 'tblTempVendorCDR_20' ) end [2025-02-22 20:30:19] Production.INFO: ProcessCDR(1,14534868,1,1,2) [2025-02-22 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534868', 'tblTempUsageDetail_20' ) start [2025-02-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534868', 'tblTempUsageDetail_20' ) end [2025-02-22 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:30:22] Production.INFO: ==3229== Releasing lock... [2025-02-22 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:30:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-22 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:31:05 [end_date_ymd] => 2025-02-22 20:31:05 [RateCDR] => 1 ) [2025-02-22 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:31:05' and `end` < '2025-02-22 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:31:17] Production.INFO: count ==2148 [2025-02-22 20:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:31:05 - End Time 2025-02-22 20:31:05 [2025-02-22 20:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534873', 'tblTempUsageDetail_20' ) start [2025-02-22 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534873', 'tblTempUsageDetail_20' ) end [2025-02-22 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534873', 'tblTempVendorCDR_20' ) start [2025-02-22 20:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534873', 'tblTempVendorCDR_20' ) end [2025-02-22 20:31:17] Production.INFO: ProcessCDR(1,14534873,1,1,2) [2025-02-22 20:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534873', 'tblTempUsageDetail_20' ) start [2025-02-22 20:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534873', 'tblTempUsageDetail_20' ) end [2025-02-22 20:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:31:20] Production.INFO: ==3311== Releasing lock... [2025-02-22 20:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:31:20] Production.INFO: 44.25 MB #Memory Used# [2025-02-22 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:32:05 [end_date_ymd] => 2025-02-22 20:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:32:05' and `end` < '2025-02-22 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-02-22 20:32:17] Production.INFO: count ==2132 [2025-02-22 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:32:05 - End Time 2025-02-22 20:32:05 [2025-02-22 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534878', 'tblTempUsageDetail_20' ) start [2025-02-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534878', 'tblTempUsageDetail_20' ) end [2025-02-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534878', 'tblTempVendorCDR_20' ) start [2025-02-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534878', 'tblTempVendorCDR_20' ) end [2025-02-22 20:32:18] Production.INFO: ProcessCDR(1,14534878,1,1,2) [2025-02-22 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534878', 'tblTempUsageDetail_20' ) start [2025-02-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534878', 'tblTempUsageDetail_20' ) end [2025-02-22 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:32:21] Production.INFO: ==3392== Releasing lock... [2025-02-22 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:32:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:33:04 [end_date_ymd] => 2025-02-22 20:33:04 [RateCDR] => 1 ) [2025-02-22 20: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-02-22 17:33:04' and `end` < '2025-02-22 20: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-02-22 20:33:16] Production.INFO: count ==2133 [2025-02-22 20:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:33:04 - End Time 2025-02-22 20:33:04 [2025-02-22 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534883', 'tblTempUsageDetail_20' ) start [2025-02-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534883', 'tblTempUsageDetail_20' ) end [2025-02-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534883', 'tblTempVendorCDR_20' ) start [2025-02-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534883', 'tblTempVendorCDR_20' ) end [2025-02-22 20:33:17] Production.INFO: ProcessCDR(1,14534883,1,1,2) [2025-02-22 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534883', 'tblTempUsageDetail_20' ) start [2025-02-22 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534883', 'tblTempUsageDetail_20' ) end [2025-02-22 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:33:21] Production.INFO: ==3462== Releasing lock... [2025-02-22 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:33:21] Production.INFO: 44 MB #Memory Used# [2025-02-22 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:34:06 [end_date_ymd] => 2025-02-22 20:34:06 [RateCDR] => 1 ) [2025-02-22 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:34:06' and `end` < '2025-02-22 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:34:18] Production.INFO: count ==2133 [2025-02-22 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:34:06 - End Time 2025-02-22 20:34:06 [2025-02-22 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534888', 'tblTempUsageDetail_20' ) start [2025-02-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534888', 'tblTempUsageDetail_20' ) end [2025-02-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534888', 'tblTempVendorCDR_20' ) start [2025-02-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534888', 'tblTempVendorCDR_20' ) end [2025-02-22 20:34:18] Production.INFO: ProcessCDR(1,14534888,1,1,2) [2025-02-22 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534888', 'tblTempUsageDetail_20' ) start [2025-02-22 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534888', 'tblTempUsageDetail_20' ) end [2025-02-22 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:34:22] Production.INFO: ==3539== Releasing lock... [2025-02-22 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:34:22] Production.INFO: 44 MB #Memory Used# [2025-02-22 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:35:05 [end_date_ymd] => 2025-02-22 20:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:35:05' and `end` < '2025-02-22 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-02-22 20:35:17] Production.INFO: count ==2080 [2025-02-22 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:35:05 - End Time 2025-02-22 20:35:05 [2025-02-22 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534893', 'tblTempUsageDetail_20' ) start [2025-02-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534893', 'tblTempUsageDetail_20' ) end [2025-02-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534893', 'tblTempVendorCDR_20' ) start [2025-02-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534893', 'tblTempVendorCDR_20' ) end [2025-02-22 20:35:18] Production.INFO: ProcessCDR(1,14534893,1,1,2) [2025-02-22 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534893', 'tblTempUsageDetail_20' ) start [2025-02-22 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534893', 'tblTempUsageDetail_20' ) end [2025-02-22 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:35:23] Production.INFO: ==3610== Releasing lock... [2025-02-22 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:35:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:36:05 [end_date_ymd] => 2025-02-22 20:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:36:05' and `end` < '2025-02-22 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-02-22 20:36:18] Production.INFO: count ==2068 [2025-02-22 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:36:05 - End Time 2025-02-22 20:36:05 [2025-02-22 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534898', 'tblTempUsageDetail_20' ) start [2025-02-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534898', 'tblTempUsageDetail_20' ) end [2025-02-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534898', 'tblTempVendorCDR_20' ) start [2025-02-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534898', 'tblTempVendorCDR_20' ) end [2025-02-22 20:36:18] Production.INFO: ProcessCDR(1,14534898,1,1,2) [2025-02-22 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534898', 'tblTempUsageDetail_20' ) start [2025-02-22 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534898', 'tblTempUsageDetail_20' ) end [2025-02-22 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:36:21] Production.INFO: ==3711== Releasing lock... [2025-02-22 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:36:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:37:05 [end_date_ymd] => 2025-02-22 20:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:37:05' and `end` < '2025-02-22 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-02-22 20:37:17] Production.INFO: count ==2061 [2025-02-22 20:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:37:05 - End Time 2025-02-22 20:37:05 [2025-02-22 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534903', 'tblTempUsageDetail_20' ) start [2025-02-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534903', 'tblTempUsageDetail_20' ) end [2025-02-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534903', 'tblTempVendorCDR_20' ) start [2025-02-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534903', 'tblTempVendorCDR_20' ) end [2025-02-22 20:37:17] Production.INFO: ProcessCDR(1,14534903,1,1,2) [2025-02-22 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534903', 'tblTempUsageDetail_20' ) start [2025-02-22 20:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534903', 'tblTempUsageDetail_20' ) end [2025-02-22 20:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:37:20] Production.INFO: ==3810== Releasing lock... [2025-02-22 20:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:37:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:38:06 [end_date_ymd] => 2025-02-22 20:38:06 [RateCDR] => 1 ) [2025-02-22 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:38:06' and `end` < '2025-02-22 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:38:18] Production.INFO: count ==2049 [2025-02-22 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:38:06 - End Time 2025-02-22 20:38:06 [2025-02-22 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534908', 'tblTempUsageDetail_20' ) start [2025-02-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534908', 'tblTempUsageDetail_20' ) end [2025-02-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534908', 'tblTempVendorCDR_20' ) start [2025-02-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534908', 'tblTempVendorCDR_20' ) end [2025-02-22 20:38:18] Production.INFO: ProcessCDR(1,14534908,1,1,2) [2025-02-22 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534908', 'tblTempUsageDetail_20' ) start [2025-02-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534908', 'tblTempUsageDetail_20' ) end [2025-02-22 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:38:22] Production.INFO: ==3884== Releasing lock... [2025-02-22 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:39:04 [end_date_ymd] => 2025-02-22 20:39:04 [RateCDR] => 1 ) [2025-02-22 20:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:39:04' and `end` < '2025-02-22 20:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:39:16] Production.INFO: count ==2037 [2025-02-22 20:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:39:04 - End Time 2025-02-22 20:39:04 [2025-02-22 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534913', 'tblTempUsageDetail_20' ) start [2025-02-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534913', 'tblTempUsageDetail_20' ) end [2025-02-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534913', 'tblTempVendorCDR_20' ) start [2025-02-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534913', 'tblTempVendorCDR_20' ) end [2025-02-22 20:39:17] Production.INFO: ProcessCDR(1,14534913,1,1,2) [2025-02-22 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534913', 'tblTempUsageDetail_20' ) start [2025-02-22 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534913', 'tblTempUsageDetail_20' ) end [2025-02-22 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:39:22] Production.INFO: ==3964== Releasing lock... [2025-02-22 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:39:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:40:06 [end_date_ymd] => 2025-02-22 20:40:06 [RateCDR] => 1 ) [2025-02-22 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:40:06' and `end` < '2025-02-22 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:40:18] Production.INFO: count ==2037 [2025-02-22 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-22 17:40:06 - End Time 2025-02-22 20:40:06 [2025-02-22 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534919', 'tblTempUsageDetail_20' ) start [2025-02-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534919', 'tblTempUsageDetail_20' ) end [2025-02-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534919', 'tblTempVendorCDR_20' ) start [2025-02-22 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534919', 'tblTempVendorCDR_20' ) end [2025-02-22 20:40:19] Production.INFO: ProcessCDR(1,14534919,1,1,2) [2025-02-22 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534919', 'tblTempUsageDetail_20' ) start [2025-02-22 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534919', 'tblTempUsageDetail_20' ) end [2025-02-22 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:40:22] Production.INFO: ==4038== Releasing lock... [2025-02-22 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:40:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:41:04 [end_date_ymd] => 2025-02-22 20:41:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:41:04' and `end` < '2025-02-22 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-02-22 20:41:17] Production.INFO: count ==2009 [2025-02-22 20:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:41:04 - End Time 2025-02-22 20:41:04 [2025-02-22 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534924', 'tblTempUsageDetail_20' ) start [2025-02-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534924', 'tblTempUsageDetail_20' ) end [2025-02-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534924', 'tblTempVendorCDR_20' ) start [2025-02-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534924', 'tblTempVendorCDR_20' ) end [2025-02-22 20:41:17] Production.INFO: ProcessCDR(1,14534924,1,1,2) [2025-02-22 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534924', 'tblTempUsageDetail_20' ) start [2025-02-22 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534924', 'tblTempUsageDetail_20' ) end [2025-02-22 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:41:21] Production.INFO: ==4114== Releasing lock... [2025-02-22 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:41:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:42:05 [end_date_ymd] => 2025-02-22 20:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:42:05' and `end` < '2025-02-22 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-02-22 20:42:17] Production.INFO: count ==2009 [2025-02-22 20:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:42:05 - End Time 2025-02-22 20:42:05 [2025-02-22 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534929', 'tblTempUsageDetail_20' ) start [2025-02-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534929', 'tblTempUsageDetail_20' ) end [2025-02-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534929', 'tblTempVendorCDR_20' ) start [2025-02-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534929', 'tblTempVendorCDR_20' ) end [2025-02-22 20:42:18] Production.INFO: ProcessCDR(1,14534929,1,1,2) [2025-02-22 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534929', 'tblTempUsageDetail_20' ) start [2025-02-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534929', 'tblTempUsageDetail_20' ) end [2025-02-22 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:42:21] Production.INFO: ==4231== Releasing lock... [2025-02-22 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:42:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:43:05 [end_date_ymd] => 2025-02-22 20:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:43:05' and `end` < '2025-02-22 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-02-22 20:43:17] Production.INFO: count ==2011 [2025-02-22 20:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:43:05 - End Time 2025-02-22 20:43:05 [2025-02-22 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534934', 'tblTempUsageDetail_20' ) start [2025-02-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534934', 'tblTempUsageDetail_20' ) end [2025-02-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534934', 'tblTempVendorCDR_20' ) start [2025-02-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534934', 'tblTempVendorCDR_20' ) end [2025-02-22 20:43:17] Production.INFO: ProcessCDR(1,14534934,1,1,2) [2025-02-22 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534934', 'tblTempUsageDetail_20' ) start [2025-02-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534934', 'tblTempUsageDetail_20' ) end [2025-02-22 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:43:22] Production.INFO: ==4308== Releasing lock... [2025-02-22 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:43:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:44:05 [end_date_ymd] => 2025-02-22 20:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:44:05' and `end` < '2025-02-22 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-02-22 20:44:17] Production.INFO: count ==2004 [2025-02-22 20:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:44:05 - End Time 2025-02-22 20:44:05 [2025-02-22 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534939', 'tblTempUsageDetail_20' ) start [2025-02-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534939', 'tblTempUsageDetail_20' ) end [2025-02-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534939', 'tblTempVendorCDR_20' ) start [2025-02-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534939', 'tblTempVendorCDR_20' ) end [2025-02-22 20:44:17] Production.INFO: ProcessCDR(1,14534939,1,1,2) [2025-02-22 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534939', 'tblTempUsageDetail_20' ) start [2025-02-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534939', 'tblTempUsageDetail_20' ) end [2025-02-22 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:44:22] Production.INFO: ==4385== Releasing lock... [2025-02-22 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:44:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:45:05 [end_date_ymd] => 2025-02-22 20:45:05 [RateCDR] => 1 ) [2025-02-22 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:45:05' and `end` < '2025-02-22 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:45:17] Production.INFO: count ==2005 [2025-02-22 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:45:05 - End Time 2025-02-22 20:45:05 [2025-02-22 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534944', 'tblTempUsageDetail_20' ) start [2025-02-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534944', 'tblTempUsageDetail_20' ) end [2025-02-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534944', 'tblTempVendorCDR_20' ) start [2025-02-22 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534944', 'tblTempVendorCDR_20' ) end [2025-02-22 20:45:18] Production.INFO: ProcessCDR(1,14534944,1,1,2) [2025-02-22 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534944', 'tblTempUsageDetail_20' ) start [2025-02-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534944', 'tblTempUsageDetail_20' ) end [2025-02-22 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:45:21] Production.INFO: ==4459== Releasing lock... [2025-02-22 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:45:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:46:05 [end_date_ymd] => 2025-02-22 20:46:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:46:05' and `end` < '2025-02-22 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-02-22 20:46:17] Production.INFO: count ==2005 [2025-02-22 20:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:46:05 - End Time 2025-02-22 20:46:05 [2025-02-22 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534949', 'tblTempUsageDetail_20' ) start [2025-02-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534949', 'tblTempUsageDetail_20' ) end [2025-02-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534949', 'tblTempVendorCDR_20' ) start [2025-02-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534949', 'tblTempVendorCDR_20' ) end [2025-02-22 20:46:17] Production.INFO: ProcessCDR(1,14534949,1,1,2) [2025-02-22 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534949', 'tblTempUsageDetail_20' ) start [2025-02-22 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534949', 'tblTempUsageDetail_20' ) end [2025-02-22 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:46:21] Production.INFO: ==4534== Releasing lock... [2025-02-22 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:46:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:47:06 [end_date_ymd] => 2025-02-22 20:47:06 [RateCDR] => 1 ) [2025-02-22 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:47:06' and `end` < '2025-02-22 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:47:18] Production.INFO: count ==2001 [2025-02-22 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:47:06 - End Time 2025-02-22 20:47:06 [2025-02-22 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534954', 'tblTempUsageDetail_20' ) start [2025-02-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534954', 'tblTempUsageDetail_20' ) end [2025-02-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534954', 'tblTempVendorCDR_20' ) start [2025-02-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534954', 'tblTempVendorCDR_20' ) end [2025-02-22 20:47:18] Production.INFO: ProcessCDR(1,14534954,1,1,2) [2025-02-22 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534954', 'tblTempUsageDetail_20' ) start [2025-02-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534954', 'tblTempUsageDetail_20' ) end [2025-02-22 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:47:21] Production.INFO: ==4625== Releasing lock... [2025-02-22 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:47:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:48:05 [end_date_ymd] => 2025-02-22 20:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:48:05' and `end` < '2025-02-22 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-02-22 20:48:17] Production.INFO: count ==2003 [2025-02-22 20:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:48:05 - End Time 2025-02-22 20:48:05 [2025-02-22 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534959', 'tblTempUsageDetail_20' ) start [2025-02-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534959', 'tblTempUsageDetail_20' ) end [2025-02-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534959', 'tblTempVendorCDR_20' ) start [2025-02-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534959', 'tblTempVendorCDR_20' ) end [2025-02-22 20:48:17] Production.INFO: ProcessCDR(1,14534959,1,1,2) [2025-02-22 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534959', 'tblTempUsageDetail_20' ) start [2025-02-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534959', 'tblTempUsageDetail_20' ) end [2025-02-22 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:48:21] Production.INFO: ==4707== Releasing lock... [2025-02-22 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:48:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:49:05 [end_date_ymd] => 2025-02-22 20:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:49:05' and `end` < '2025-02-22 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-02-22 20:49:17] Production.INFO: count ==2011 [2025-02-22 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:49:05 - End Time 2025-02-22 20:49:05 [2025-02-22 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534964', 'tblTempUsageDetail_20' ) start [2025-02-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534964', 'tblTempUsageDetail_20' ) end [2025-02-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534964', 'tblTempVendorCDR_20' ) start [2025-02-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534964', 'tblTempVendorCDR_20' ) end [2025-02-22 20:49:18] Production.INFO: ProcessCDR(1,14534964,1,1,2) [2025-02-22 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534964', 'tblTempUsageDetail_20' ) start [2025-02-22 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534964', 'tblTempUsageDetail_20' ) end [2025-02-22 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:49:22] Production.INFO: ==4794== Releasing lock... [2025-02-22 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:49:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:50:05 [end_date_ymd] => 2025-02-22 20:50:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:50:05' and `end` < '2025-02-22 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-02-22 20:50:17] Production.INFO: count ==2012 [2025-02-22 20:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:50:05 - End Time 2025-02-22 20:50:05 [2025-02-22 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534970', 'tblTempUsageDetail_20' ) start [2025-02-22 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534970', 'tblTempUsageDetail_20' ) end [2025-02-22 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534970', 'tblTempVendorCDR_20' ) start [2025-02-22 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534970', 'tblTempVendorCDR_20' ) end [2025-02-22 20:50:18] Production.INFO: ProcessCDR(1,14534970,1,1,2) [2025-02-22 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534970', 'tblTempUsageDetail_20' ) start [2025-02-22 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534970', 'tblTempUsageDetail_20' ) end [2025-02-22 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:50:23] Production.INFO: ==4882== Releasing lock... [2025-02-22 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:50:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:51:05 [end_date_ymd] => 2025-02-22 20:51:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:51:05' and `end` < '2025-02-22 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-02-22 20:51:18] Production.INFO: count ==2019 [2025-02-22 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:51:05 - End Time 2025-02-22 20:51:05 [2025-02-22 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534975', 'tblTempUsageDetail_20' ) start [2025-02-22 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534975', 'tblTempUsageDetail_20' ) end [2025-02-22 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534975', 'tblTempVendorCDR_20' ) start [2025-02-22 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534975', 'tblTempVendorCDR_20' ) end [2025-02-22 20:51:18] Production.INFO: ProcessCDR(1,14534975,1,1,2) [2025-02-22 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534975', 'tblTempUsageDetail_20' ) start [2025-02-22 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534975', 'tblTempUsageDetail_20' ) end [2025-02-22 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:51:23] Production.INFO: ==4973== Releasing lock... [2025-02-22 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:51:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:52:04 [end_date_ymd] => 2025-02-22 20:52:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:52:04' and `end` < '2025-02-22 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:52:16] Production.INFO: count ==2025 [2025-02-22 20:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:52:04 - End Time 2025-02-22 20:52:04 [2025-02-22 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534976', 'tblTempUsageDetail_20' ) start [2025-02-22 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534976', 'tblTempUsageDetail_20' ) end [2025-02-22 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534976', 'tblTempVendorCDR_20' ) start [2025-02-22 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534976', 'tblTempVendorCDR_20' ) end [2025-02-22 20:52:17] Production.INFO: ProcessCDR(1,14534976,1,1,2) [2025-02-22 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534976', 'tblTempUsageDetail_20' ) start [2025-02-22 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534976', 'tblTempUsageDetail_20' ) end [2025-02-22 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:52:21] Production.INFO: ==5048== Releasing lock... [2025-02-22 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:52:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:53:05 [end_date_ymd] => 2025-02-22 20:53:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:53:05' and `end` < '2025-02-22 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-02-22 20:53:17] Production.INFO: count ==2038 [2025-02-22 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:53:05 - End Time 2025-02-22 20:53:05 [2025-02-22 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534985', 'tblTempUsageDetail_20' ) start [2025-02-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534985', 'tblTempUsageDetail_20' ) end [2025-02-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534985', 'tblTempVendorCDR_20' ) start [2025-02-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534985', 'tblTempVendorCDR_20' ) end [2025-02-22 20:53:18] Production.INFO: ProcessCDR(1,14534985,1,1,2) [2025-02-22 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534985', 'tblTempUsageDetail_20' ) start [2025-02-22 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534985', 'tblTempUsageDetail_20' ) end [2025-02-22 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:53:21] Production.INFO: ==5130== Releasing lock... [2025-02-22 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:53:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:54:05 [end_date_ymd] => 2025-02-22 20:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:54:05' and `end` < '2025-02-22 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-02-22 20:54:17] Production.INFO: count ==2043 [2025-02-22 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:54:05 - End Time 2025-02-22 20:54:05 [2025-02-22 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534990', 'tblTempUsageDetail_20' ) start [2025-02-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534990', 'tblTempUsageDetail_20' ) end [2025-02-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534990', 'tblTempVendorCDR_20' ) start [2025-02-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534990', 'tblTempVendorCDR_20' ) end [2025-02-22 20:54:18] Production.INFO: ProcessCDR(1,14534990,1,1,2) [2025-02-22 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534990', 'tblTempUsageDetail_20' ) start [2025-02-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534990', 'tblTempUsageDetail_20' ) end [2025-02-22 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:54:21] Production.INFO: ==5242== Releasing lock... [2025-02-22 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:54:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:55:05 [end_date_ymd] => 2025-02-22 20:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 17:55:05' and `end` < '2025-02-22 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-02-22 20:55:17] Production.INFO: count ==2050 [2025-02-22 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:55:05 - End Time 2025-02-22 20:55:05 [2025-02-22 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534995', 'tblTempUsageDetail_20' ) start [2025-02-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14534995', 'tblTempUsageDetail_20' ) end [2025-02-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534995', 'tblTempVendorCDR_20' ) start [2025-02-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14534995', 'tblTempVendorCDR_20' ) end [2025-02-22 20:55:18] Production.INFO: ProcessCDR(1,14534995,1,1,2) [2025-02-22 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14534995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14534995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14534995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14534995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534995', 'tblTempUsageDetail_20' ) start [2025-02-22 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14534995', 'tblTempUsageDetail_20' ) end [2025-02-22 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:55:21] Production.INFO: ==5357== Releasing lock... [2025-02-22 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:55:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:56:05 [end_date_ymd] => 2025-02-22 20:56:05 [RateCDR] => 1 ) [2025-02-22 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:56:05' and `end` < '2025-02-22 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:56:17] Production.INFO: count ==2051 [2025-02-22 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:56:05 - End Time 2025-02-22 20:56:05 [2025-02-22 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535000', 'tblTempUsageDetail_20' ) start [2025-02-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535000', 'tblTempUsageDetail_20' ) end [2025-02-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535000', 'tblTempVendorCDR_20' ) start [2025-02-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535000', 'tblTempVendorCDR_20' ) end [2025-02-22 20:56:18] Production.INFO: ProcessCDR(1,14535000,1,1,2) [2025-02-22 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535000', 'tblTempUsageDetail_20' ) start [2025-02-22 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535000', 'tblTempUsageDetail_20' ) end [2025-02-22 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:56:23] Production.INFO: ==5465== Releasing lock... [2025-02-22 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:56:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:57:05 [end_date_ymd] => 2025-02-22 20:57:05 [RateCDR] => 1 ) [2025-02-22 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:57:05' and `end` < '2025-02-22 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:57:17] Production.INFO: count ==2066 [2025-02-22 20:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:57:05 - End Time 2025-02-22 20:57:05 [2025-02-22 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535005', 'tblTempUsageDetail_20' ) start [2025-02-22 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535005', 'tblTempUsageDetail_20' ) end [2025-02-22 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535005', 'tblTempVendorCDR_20' ) start [2025-02-22 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535005', 'tblTempVendorCDR_20' ) end [2025-02-22 20:57:17] Production.INFO: ProcessCDR(1,14535005,1,1,2) [2025-02-22 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535005', 'tblTempUsageDetail_20' ) start [2025-02-22 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535005', 'tblTempUsageDetail_20' ) end [2025-02-22 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:57:22] Production.INFO: ==5572== Releasing lock... [2025-02-22 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:57:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:58:06 [end_date_ymd] => 2025-02-22 20:58:06 [RateCDR] => 1 ) [2025-02-22 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:58:06' and `end` < '2025-02-22 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:58:18] Production.INFO: count ==2064 [2025-02-22 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 17:58:06 - End Time 2025-02-22 20:58:06 [2025-02-22 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535010', 'tblTempUsageDetail_20' ) start [2025-02-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535010', 'tblTempUsageDetail_20' ) end [2025-02-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535010', 'tblTempVendorCDR_20' ) start [2025-02-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535010', 'tblTempVendorCDR_20' ) end [2025-02-22 20:58:18] Production.INFO: ProcessCDR(1,14535010,1,1,2) [2025-02-22 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535010', 'tblTempUsageDetail_20' ) start [2025-02-22 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535010', 'tblTempUsageDetail_20' ) end [2025-02-22 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:58:21] Production.INFO: ==5723== Releasing lock... [2025-02-22 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:58:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 17:59:05 [end_date_ymd] => 2025-02-22 20:59:05 [RateCDR] => 1 ) [2025-02-22 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 17:59:05' and `end` < '2025-02-22 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 20:59:17] Production.INFO: count ==2059 [2025-02-22 20:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 17:59:05 - End Time 2025-02-22 20:59:05 [2025-02-22 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535015', 'tblTempUsageDetail_20' ) start [2025-02-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535015', 'tblTempUsageDetail_20' ) end [2025-02-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535015', 'tblTempVendorCDR_20' ) start [2025-02-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535015', 'tblTempVendorCDR_20' ) end [2025-02-22 20:59:17] Production.INFO: ProcessCDR(1,14535015,1,1,2) [2025-02-22 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535015', 'tblTempUsageDetail_20' ) start [2025-02-22 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535015', 'tblTempUsageDetail_20' ) end [2025-02-22 20:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 20:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 20:59:20] Production.INFO: ==5832== Releasing lock... [2025-02-22 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 20:59:20] Production.INFO: 43.75 MB #Memory Used# [2025-02-22 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:00:06 [end_date_ymd] => 2025-02-22 21:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:00:06' and `end` < '2025-02-22 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-02-22 21:00:18] Production.INFO: count ==2052 [2025-02-22 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 18:00:06 - End Time 2025-02-22 21:00:06 [2025-02-22 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535021', 'tblTempUsageDetail_20' ) start [2025-02-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535021', 'tblTempUsageDetail_20' ) end [2025-02-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535021', 'tblTempVendorCDR_20' ) start [2025-02-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535021', 'tblTempVendorCDR_20' ) end [2025-02-22 21:00:19] Production.INFO: ProcessCDR(1,14535021,1,1,2) [2025-02-22 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535021', 'tblTempUsageDetail_20' ) start [2025-02-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535021', 'tblTempUsageDetail_20' ) end [2025-02-22 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:00:22] Production.INFO: ==5946== Releasing lock... [2025-02-22 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:00:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:01:05 [end_date_ymd] => 2025-02-22 21:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:01:05' and `end` < '2025-02-22 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-02-22 21:01:17] Production.INFO: count ==2018 [2025-02-22 21:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:01:05 - End Time 2025-02-22 21:01:05 [2025-02-22 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535026', 'tblTempUsageDetail_20' ) start [2025-02-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535026', 'tblTempUsageDetail_20' ) end [2025-02-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535026', 'tblTempVendorCDR_20' ) start [2025-02-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535026', 'tblTempVendorCDR_20' ) end [2025-02-22 21:01:17] Production.INFO: ProcessCDR(1,14535026,1,1,2) [2025-02-22 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535026', 'tblTempUsageDetail_20' ) start [2025-02-22 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535026', 'tblTempUsageDetail_20' ) end [2025-02-22 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:01:22] Production.INFO: ==6068== Releasing lock... [2025-02-22 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:01:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:02:05 [end_date_ymd] => 2025-02-22 21:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:02:05' and `end` < '2025-02-22 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-02-22 21:02:17] Production.INFO: count ==2021 [2025-02-22 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:02:05 - End Time 2025-02-22 21:02:05 [2025-02-22 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535031', 'tblTempUsageDetail_20' ) start [2025-02-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535031', 'tblTempUsageDetail_20' ) end [2025-02-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535031', 'tblTempVendorCDR_20' ) start [2025-02-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535031', 'tblTempVendorCDR_20' ) end [2025-02-22 21:02:18] Production.INFO: ProcessCDR(1,14535031,1,1,2) [2025-02-22 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535031', 'tblTempUsageDetail_20' ) start [2025-02-22 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535031', 'tblTempUsageDetail_20' ) end [2025-02-22 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:02:21] Production.INFO: ==6180== Releasing lock... [2025-02-22 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:02:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:03:04 [end_date_ymd] => 2025-02-22 21:03:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:03:04' and `end` < '2025-02-22 21: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-02-22 21:03:16] Production.INFO: count ==2017 [2025-02-22 21:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:03:04 - End Time 2025-02-22 21:03:04 [2025-02-22 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535036', 'tblTempUsageDetail_20' ) start [2025-02-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535036', 'tblTempUsageDetail_20' ) end [2025-02-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535036', 'tblTempVendorCDR_20' ) start [2025-02-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535036', 'tblTempVendorCDR_20' ) end [2025-02-22 21:03:17] Production.INFO: ProcessCDR(1,14535036,1,1,2) [2025-02-22 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535036', 'tblTempUsageDetail_20' ) start [2025-02-22 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535036', 'tblTempUsageDetail_20' ) end [2025-02-22 21:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:03:20] Production.INFO: ==6289== Releasing lock... [2025-02-22 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:03:20] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:04:05 [end_date_ymd] => 2025-02-22 21:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:04:05' and `end` < '2025-02-22 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-02-22 21:04:17] Production.INFO: count ==2021 [2025-02-22 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:04:05 - End Time 2025-02-22 21:04:05 [2025-02-22 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535041', 'tblTempUsageDetail_20' ) start [2025-02-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535041', 'tblTempUsageDetail_20' ) end [2025-02-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535041', 'tblTempVendorCDR_20' ) start [2025-02-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535041', 'tblTempVendorCDR_20' ) end [2025-02-22 21:04:18] Production.INFO: ProcessCDR(1,14535041,1,1,2) [2025-02-22 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535041', 'tblTempUsageDetail_20' ) start [2025-02-22 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535041', 'tblTempUsageDetail_20' ) end [2025-02-22 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:04:21] Production.INFO: ==6398== Releasing lock... [2025-02-22 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:04:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:05:05 [end_date_ymd] => 2025-02-22 21:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:05:05' and `end` < '2025-02-22 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-02-22 21:05:17] Production.INFO: count ==2019 [2025-02-22 21:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:05:05 - End Time 2025-02-22 21:05:05 [2025-02-22 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535046', 'tblTempUsageDetail_20' ) start [2025-02-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535046', 'tblTempUsageDetail_20' ) end [2025-02-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535046', 'tblTempVendorCDR_20' ) start [2025-02-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535046', 'tblTempVendorCDR_20' ) end [2025-02-22 21:05:17] Production.INFO: ProcessCDR(1,14535046,1,1,2) [2025-02-22 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535046', 'tblTempUsageDetail_20' ) start [2025-02-22 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535046', 'tblTempUsageDetail_20' ) end [2025-02-22 21:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:05:20] Production.INFO: ==6510== Releasing lock... [2025-02-22 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:05:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:06:06 [end_date_ymd] => 2025-02-22 21:06:06 [RateCDR] => 1 ) [2025-02-22 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:06:06' and `end` < '2025-02-22 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:06:18] Production.INFO: count ==2015 [2025-02-22 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:06:06 - End Time 2025-02-22 21:06:06 [2025-02-22 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535051', 'tblTempUsageDetail_20' ) start [2025-02-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535051', 'tblTempUsageDetail_20' ) end [2025-02-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535051', 'tblTempVendorCDR_20' ) start [2025-02-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535051', 'tblTempVendorCDR_20' ) end [2025-02-22 21:06:18] Production.INFO: ProcessCDR(1,14535051,1,1,2) [2025-02-22 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535051', 'tblTempUsageDetail_20' ) start [2025-02-22 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535051', 'tblTempUsageDetail_20' ) end [2025-02-22 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:06:22] Production.INFO: ==6619== Releasing lock... [2025-02-22 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:06:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:07:05 [end_date_ymd] => 2025-02-22 21:07:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:07:05' and `end` < '2025-02-22 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-02-22 21:07:17] Production.INFO: count ==2014 [2025-02-22 21:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:07:05 - End Time 2025-02-22 21:07:05 [2025-02-22 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535056', 'tblTempUsageDetail_20' ) start [2025-02-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535056', 'tblTempUsageDetail_20' ) end [2025-02-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535056', 'tblTempVendorCDR_20' ) start [2025-02-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535056', 'tblTempVendorCDR_20' ) end [2025-02-22 21:07:17] Production.INFO: ProcessCDR(1,14535056,1,1,2) [2025-02-22 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535056', 'tblTempUsageDetail_20' ) start [2025-02-22 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535056', 'tblTempUsageDetail_20' ) end [2025-02-22 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:07:21] Production.INFO: ==6737== Releasing lock... [2025-02-22 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:07:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:08:05 [end_date_ymd] => 2025-02-22 21:08:05 [RateCDR] => 1 ) [2025-02-22 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:08:05' and `end` < '2025-02-22 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:08:17] Production.INFO: count ==2008 [2025-02-22 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:08:05 - End Time 2025-02-22 21:08:05 [2025-02-22 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535061', 'tblTempUsageDetail_20' ) start [2025-02-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535061', 'tblTempUsageDetail_20' ) end [2025-02-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535061', 'tblTempVendorCDR_20' ) start [2025-02-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535061', 'tblTempVendorCDR_20' ) end [2025-02-22 21:08:18] Production.INFO: ProcessCDR(1,14535061,1,1,2) [2025-02-22 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535061', 'tblTempUsageDetail_20' ) start [2025-02-22 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535061', 'tblTempUsageDetail_20' ) end [2025-02-22 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:08:21] Production.INFO: ==6844== Releasing lock... [2025-02-22 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:08:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:09:04 [end_date_ymd] => 2025-02-22 21:09:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:09:04' and `end` < '2025-02-22 21: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-02-22 21:09:16] Production.INFO: count ==2008 [2025-02-22 21:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:09:04 - End Time 2025-02-22 21:09:04 [2025-02-22 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535066', 'tblTempUsageDetail_20' ) start [2025-02-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535066', 'tblTempUsageDetail_20' ) end [2025-02-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535066', 'tblTempVendorCDR_20' ) start [2025-02-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535066', 'tblTempVendorCDR_20' ) end [2025-02-22 21:09:17] Production.INFO: ProcessCDR(1,14535066,1,1,2) [2025-02-22 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535066', 'tblTempUsageDetail_20' ) start [2025-02-22 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535066', 'tblTempUsageDetail_20' ) end [2025-02-22 21:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:09:20] Production.INFO: ==6968== Releasing lock... [2025-02-22 21:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:09:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:10:06 [end_date_ymd] => 2025-02-22 21:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:10:06' and `end` < '2025-02-22 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-02-22 21:10:18] Production.INFO: count ==2012 [2025-02-22 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 18:10:06 - End Time 2025-02-22 21:10:06 [2025-02-22 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535072', 'tblTempUsageDetail_20' ) start [2025-02-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535072', 'tblTempUsageDetail_20' ) end [2025-02-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535072', 'tblTempVendorCDR_20' ) start [2025-02-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535072', 'tblTempVendorCDR_20' ) end [2025-02-22 21:10:19] Production.INFO: ProcessCDR(1,14535072,1,1,2) [2025-02-22 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535072', 'tblTempUsageDetail_20' ) start [2025-02-22 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535072', 'tblTempUsageDetail_20' ) end [2025-02-22 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:10:22] Production.INFO: ==7088== Releasing lock... [2025-02-22 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:10:22] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:11:04 [end_date_ymd] => 2025-02-22 21:11:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:11:04' and `end` < '2025-02-22 21: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-02-22 21:11:17] Production.INFO: count ==1959 [2025-02-22 21:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:11:04 - End Time 2025-02-22 21:11:04 [2025-02-22 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535077', 'tblTempUsageDetail_20' ) start [2025-02-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535077', 'tblTempUsageDetail_20' ) end [2025-02-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535077', 'tblTempVendorCDR_20' ) start [2025-02-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535077', 'tblTempVendorCDR_20' ) end [2025-02-22 21:11:17] Production.INFO: ProcessCDR(1,14535077,1,1,2) [2025-02-22 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535077', 'tblTempUsageDetail_20' ) start [2025-02-22 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535077', 'tblTempUsageDetail_20' ) end [2025-02-22 21:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:11:20] Production.INFO: ==7199== Releasing lock... [2025-02-22 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:11:20] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:12:05 [end_date_ymd] => 2025-02-22 21:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:12:05' and `end` < '2025-02-22 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-02-22 21:12:17] Production.INFO: count ==1965 [2025-02-22 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:12:05 - End Time 2025-02-22 21:12:05 [2025-02-22 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535082', 'tblTempUsageDetail_20' ) start [2025-02-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535082', 'tblTempUsageDetail_20' ) end [2025-02-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535082', 'tblTempVendorCDR_20' ) start [2025-02-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535082', 'tblTempVendorCDR_20' ) end [2025-02-22 21:12:18] Production.INFO: ProcessCDR(1,14535082,1,1,2) [2025-02-22 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535082', 'tblTempUsageDetail_20' ) start [2025-02-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535082', 'tblTempUsageDetail_20' ) end [2025-02-22 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:12:21] Production.INFO: ==7309== Releasing lock... [2025-02-22 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:12:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:13:04 [end_date_ymd] => 2025-02-22 21:13:04 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:13:04' and `end` < '2025-02-22 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-02-22 21:13:17] Production.INFO: count ==1963 [2025-02-22 21:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:13:04 - End Time 2025-02-22 21:13:04 [2025-02-22 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535087', 'tblTempUsageDetail_20' ) start [2025-02-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535087', 'tblTempUsageDetail_20' ) end [2025-02-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535087', 'tblTempVendorCDR_20' ) start [2025-02-22 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535087', 'tblTempVendorCDR_20' ) end [2025-02-22 21:13:17] Production.INFO: ProcessCDR(1,14535087,1,1,2) [2025-02-22 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535087', 'tblTempUsageDetail_20' ) start [2025-02-22 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535087', 'tblTempUsageDetail_20' ) end [2025-02-22 21:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:13:20] Production.INFO: ==7452== Releasing lock... [2025-02-22 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:13:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:14:05 [end_date_ymd] => 2025-02-22 21:14:05 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:14:05' and `end` < '2025-02-22 21: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-02-22 21:14:17] Production.INFO: count ==1964 [2025-02-22 21:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:14:05 - End Time 2025-02-22 21:14:05 [2025-02-22 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535092', 'tblTempUsageDetail_20' ) start [2025-02-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535092', 'tblTempUsageDetail_20' ) end [2025-02-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535092', 'tblTempVendorCDR_20' ) start [2025-02-22 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535092', 'tblTempVendorCDR_20' ) end [2025-02-22 21:14:18] Production.INFO: ProcessCDR(1,14535092,1,1,2) [2025-02-22 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535092', 'tblTempUsageDetail_20' ) start [2025-02-22 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535092', 'tblTempUsageDetail_20' ) end [2025-02-22 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:14:22] Production.INFO: ==7559== Releasing lock... [2025-02-22 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:14:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:15:05 [end_date_ymd] => 2025-02-22 21:15:05 [RateCDR] => 1 ) [2025-02-22 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:15:05' and `end` < '2025-02-22 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:15:17] Production.INFO: count ==1961 [2025-02-22 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:15:05 - End Time 2025-02-22 21:15:05 [2025-02-22 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535097', 'tblTempUsageDetail_20' ) start [2025-02-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535097', 'tblTempUsageDetail_20' ) end [2025-02-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535097', 'tblTempVendorCDR_20' ) start [2025-02-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535097', 'tblTempVendorCDR_20' ) end [2025-02-22 21:15:18] Production.INFO: ProcessCDR(1,14535097,1,1,2) [2025-02-22 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535097', 'tblTempUsageDetail_20' ) start [2025-02-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535097', 'tblTempUsageDetail_20' ) end [2025-02-22 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:15:21] Production.INFO: ==7665== Releasing lock... [2025-02-22 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:15:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:16:05 [end_date_ymd] => 2025-02-22 21:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:16:05' and `end` < '2025-02-22 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-02-22 21:16:17] Production.INFO: count ==1955 [2025-02-22 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:16:05 - End Time 2025-02-22 21:16:05 [2025-02-22 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535102', 'tblTempUsageDetail_20' ) start [2025-02-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535102', 'tblTempUsageDetail_20' ) end [2025-02-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535102', 'tblTempVendorCDR_20' ) start [2025-02-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535102', 'tblTempVendorCDR_20' ) end [2025-02-22 21:16:18] Production.INFO: ProcessCDR(1,14535102,1,1,2) [2025-02-22 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535102', 'tblTempUsageDetail_20' ) start [2025-02-22 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535102', 'tblTempUsageDetail_20' ) end [2025-02-22 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:16:21] Production.INFO: ==7781== Releasing lock... [2025-02-22 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:16:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:17:06 [end_date_ymd] => 2025-02-22 21:17:06 [RateCDR] => 1 ) [2025-02-22 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:17:06' and `end` < '2025-02-22 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:17:18] Production.INFO: count ==1958 [2025-02-22 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:17:06 - End Time 2025-02-22 21:17:06 [2025-02-22 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535107', 'tblTempUsageDetail_20' ) start [2025-02-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535107', 'tblTempUsageDetail_20' ) end [2025-02-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535107', 'tblTempVendorCDR_20' ) start [2025-02-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535107', 'tblTempVendorCDR_20' ) end [2025-02-22 21:17:18] Production.INFO: ProcessCDR(1,14535107,1,1,2) [2025-02-22 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535107', 'tblTempUsageDetail_20' ) start [2025-02-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535107', 'tblTempUsageDetail_20' ) end [2025-02-22 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:17:21] Production.INFO: ==7893== Releasing lock... [2025-02-22 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:17:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:18:05 [end_date_ymd] => 2025-02-22 21:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:18:05' and `end` < '2025-02-22 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-02-22 21:18:17] Production.INFO: count ==1955 [2025-02-22 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:18:05 - End Time 2025-02-22 21:18:05 [2025-02-22 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535112', 'tblTempUsageDetail_20' ) start [2025-02-22 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535112', 'tblTempUsageDetail_20' ) end [2025-02-22 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535112', 'tblTempVendorCDR_20' ) start [2025-02-22 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535112', 'tblTempVendorCDR_20' ) end [2025-02-22 21:18:18] Production.INFO: ProcessCDR(1,14535112,1,1,2) [2025-02-22 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535112', 'tblTempUsageDetail_20' ) start [2025-02-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535112', 'tblTempUsageDetail_20' ) end [2025-02-22 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:18:22] Production.INFO: ==8000== Releasing lock... [2025-02-22 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:18:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:19:05 [end_date_ymd] => 2025-02-22 21:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:19:05' and `end` < '2025-02-22 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-02-22 21:19:17] Production.INFO: count ==1995 [2025-02-22 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:19:05 - End Time 2025-02-22 21:19:05 [2025-02-22 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535117', 'tblTempUsageDetail_20' ) start [2025-02-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535117', 'tblTempUsageDetail_20' ) end [2025-02-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535117', 'tblTempVendorCDR_20' ) start [2025-02-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535117', 'tblTempVendorCDR_20' ) end [2025-02-22 21:19:18] Production.INFO: ProcessCDR(1,14535117,1,1,2) [2025-02-22 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535117', 'tblTempUsageDetail_20' ) start [2025-02-22 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535117', 'tblTempUsageDetail_20' ) end [2025-02-22 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:19:21] Production.INFO: ==8121== Releasing lock... [2025-02-22 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:19:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:20:05 [end_date_ymd] => 2025-02-22 21:20:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:20:05' and `end` < '2025-02-22 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-02-22 21:20:17] Production.INFO: count ==1992 [2025-02-22 21:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:20:05 - End Time 2025-02-22 21:20:05 [2025-02-22 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535123', 'tblTempUsageDetail_20' ) start [2025-02-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535123', 'tblTempUsageDetail_20' ) end [2025-02-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535123', 'tblTempVendorCDR_20' ) start [2025-02-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535123', 'tblTempVendorCDR_20' ) end [2025-02-22 21:20:18] Production.INFO: ProcessCDR(1,14535123,1,1,2) [2025-02-22 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535123', 'tblTempUsageDetail_20' ) start [2025-02-22 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535123', 'tblTempUsageDetail_20' ) end [2025-02-22 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:20:22] Production.INFO: ==8239== Releasing lock... [2025-02-22 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:20:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:21:05 [end_date_ymd] => 2025-02-22 21:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:21:05' and `end` < '2025-02-22 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-02-22 21:21:17] Production.INFO: count ==1949 [2025-02-22 21:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:21:05 - End Time 2025-02-22 21:21:05 [2025-02-22 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535128', 'tblTempUsageDetail_20' ) start [2025-02-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535128', 'tblTempUsageDetail_20' ) end [2025-02-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535128', 'tblTempVendorCDR_20' ) start [2025-02-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535128', 'tblTempVendorCDR_20' ) end [2025-02-22 21:21:18] Production.INFO: ProcessCDR(1,14535128,1,1,2) [2025-02-22 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535128', 'tblTempUsageDetail_20' ) start [2025-02-22 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535128', 'tblTempUsageDetail_20' ) end [2025-02-22 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:21:21] Production.INFO: ==8351== Releasing lock... [2025-02-22 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:21:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:22:04 [end_date_ymd] => 2025-02-22 21:22:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:22:04' and `end` < '2025-02-22 21: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-02-22 21:22:17] Production.INFO: count ==1945 [2025-02-22 21:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:22:04 - End Time 2025-02-22 21:22:04 [2025-02-22 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535133', 'tblTempUsageDetail_20' ) start [2025-02-22 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535133', 'tblTempUsageDetail_20' ) end [2025-02-22 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535133', 'tblTempVendorCDR_20' ) start [2025-02-22 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535133', 'tblTempVendorCDR_20' ) end [2025-02-22 21:22:17] Production.INFO: ProcessCDR(1,14535133,1,1,2) [2025-02-22 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535133', 'tblTempUsageDetail_20' ) start [2025-02-22 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535133', 'tblTempUsageDetail_20' ) end [2025-02-22 21:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:22:20] Production.INFO: ==8467== Releasing lock... [2025-02-22 21:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:22:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:23:05 [end_date_ymd] => 2025-02-22 21:23:05 [RateCDR] => 1 ) [2025-02-22 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:23:05' and `end` < '2025-02-22 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:23:17] Production.INFO: count ==1946 [2025-02-22 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:23:05 - End Time 2025-02-22 21:23:05 [2025-02-22 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535138', 'tblTempUsageDetail_20' ) start [2025-02-22 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535138', 'tblTempUsageDetail_20' ) end [2025-02-22 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535138', 'tblTempVendorCDR_20' ) start [2025-02-22 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535138', 'tblTempVendorCDR_20' ) end [2025-02-22 21:23:18] Production.INFO: ProcessCDR(1,14535138,1,1,2) [2025-02-22 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535138', 'tblTempUsageDetail_20' ) start [2025-02-22 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535138', 'tblTempUsageDetail_20' ) end [2025-02-22 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:23:22] Production.INFO: ==8578== Releasing lock... [2025-02-22 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:23:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:24:05 [end_date_ymd] => 2025-02-22 21:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:24:05' and `end` < '2025-02-22 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-02-22 21:24:17] Production.INFO: count ==1942 [2025-02-22 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:24:05 - End Time 2025-02-22 21:24:05 [2025-02-22 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535143', 'tblTempUsageDetail_20' ) start [2025-02-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535143', 'tblTempUsageDetail_20' ) end [2025-02-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535143', 'tblTempVendorCDR_20' ) start [2025-02-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535143', 'tblTempVendorCDR_20' ) end [2025-02-22 21:24:18] Production.INFO: ProcessCDR(1,14535143,1,1,2) [2025-02-22 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535143', 'tblTempUsageDetail_20' ) start [2025-02-22 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535143', 'tblTempUsageDetail_20' ) end [2025-02-22 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:24:21] Production.INFO: ==8687== Releasing lock... [2025-02-22 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:24:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:25:05 [end_date_ymd] => 2025-02-22 21:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:25:05' and `end` < '2025-02-22 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-02-22 21:25:17] Production.INFO: count ==1996 [2025-02-22 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:25:05 - End Time 2025-02-22 21:25:05 [2025-02-22 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535148', 'tblTempUsageDetail_20' ) start [2025-02-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535148', 'tblTempUsageDetail_20' ) end [2025-02-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535148', 'tblTempVendorCDR_20' ) start [2025-02-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535148', 'tblTempVendorCDR_20' ) end [2025-02-22 21:25:18] Production.INFO: ProcessCDR(1,14535148,1,1,2) [2025-02-22 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535148', 'tblTempUsageDetail_20' ) start [2025-02-22 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535148', 'tblTempUsageDetail_20' ) end [2025-02-22 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:25:21] Production.INFO: ==8798== Releasing lock... [2025-02-22 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:25:21] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:26:05 [end_date_ymd] => 2025-02-22 21:26:05 [RateCDR] => 1 ) [2025-02-22 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:26:05' and `end` < '2025-02-22 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:26:18] Production.INFO: count ==1995 [2025-02-22 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:26:05 - End Time 2025-02-22 21:26:05 [2025-02-22 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535153', 'tblTempUsageDetail_20' ) start [2025-02-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535153', 'tblTempUsageDetail_20' ) end [2025-02-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535153', 'tblTempVendorCDR_20' ) start [2025-02-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535153', 'tblTempVendorCDR_20' ) end [2025-02-22 21:26:18] Production.INFO: ProcessCDR(1,14535153,1,1,2) [2025-02-22 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535153', 'tblTempUsageDetail_20' ) start [2025-02-22 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535153', 'tblTempUsageDetail_20' ) end [2025-02-22 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:26:21] Production.INFO: ==8911== Releasing lock... [2025-02-22 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:26:21] Production.INFO: 43.5 MB #Memory Used# [2025-02-22 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:27:05 [end_date_ymd] => 2025-02-22 21:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:27:05' and `end` < '2025-02-22 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-02-22 21:27:17] Production.INFO: count ==1993 [2025-02-22 21:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:27:05 - End Time 2025-02-22 21:27:05 [2025-02-22 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535158', 'tblTempUsageDetail_20' ) start [2025-02-22 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535158', 'tblTempUsageDetail_20' ) end [2025-02-22 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535158', 'tblTempVendorCDR_20' ) start [2025-02-22 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535158', 'tblTempVendorCDR_20' ) end [2025-02-22 21:27:17] Production.INFO: ProcessCDR(1,14535158,1,1,2) [2025-02-22 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535158', 'tblTempUsageDetail_20' ) start [2025-02-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535158', 'tblTempUsageDetail_20' ) end [2025-02-22 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:27:21] Production.INFO: ==9018== Releasing lock... [2025-02-22 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:27:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:28:05 [end_date_ymd] => 2025-02-22 21:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:28:05' and `end` < '2025-02-22 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-02-22 21:28:17] Production.INFO: count ==1992 [2025-02-22 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:28:05 - End Time 2025-02-22 21:28:05 [2025-02-22 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535163', 'tblTempUsageDetail_20' ) start [2025-02-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535163', 'tblTempUsageDetail_20' ) end [2025-02-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535163', 'tblTempVendorCDR_20' ) start [2025-02-22 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535163', 'tblTempVendorCDR_20' ) end [2025-02-22 21:28:18] Production.INFO: ProcessCDR(1,14535163,1,1,2) [2025-02-22 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535163', 'tblTempUsageDetail_20' ) start [2025-02-22 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535163', 'tblTempUsageDetail_20' ) end [2025-02-22 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:28:21] Production.INFO: ==9126== Releasing lock... [2025-02-22 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:28:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:29:05 [end_date_ymd] => 2025-02-22 21:29:05 [RateCDR] => 1 ) [2025-02-22 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:29:05' and `end` < '2025-02-22 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:29:17] Production.INFO: count ==1991 [2025-02-22 21:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:29:05 - End Time 2025-02-22 21:29:05 [2025-02-22 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535168', 'tblTempUsageDetail_20' ) start [2025-02-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535168', 'tblTempUsageDetail_20' ) end [2025-02-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535168', 'tblTempVendorCDR_20' ) start [2025-02-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535168', 'tblTempVendorCDR_20' ) end [2025-02-22 21:29:17] Production.INFO: ProcessCDR(1,14535168,1,1,2) [2025-02-22 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535168', 'tblTempUsageDetail_20' ) start [2025-02-22 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535168', 'tblTempUsageDetail_20' ) end [2025-02-22 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:29:22] Production.INFO: ==9271== Releasing lock... [2025-02-22 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:29:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-22 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:30:06 [end_date_ymd] => 2025-02-22 21:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:30:06' and `end` < '2025-02-22 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-02-22 21:30:18] Production.INFO: count ==1991 [2025-02-22 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 18:30:06 - End Time 2025-02-22 21:30:06 [2025-02-22 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535174', 'tblTempUsageDetail_20' ) start [2025-02-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535174', 'tblTempUsageDetail_20' ) end [2025-02-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535174', 'tblTempVendorCDR_20' ) start [2025-02-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535174', 'tblTempVendorCDR_20' ) end [2025-02-22 21:30:19] Production.INFO: ProcessCDR(1,14535174,1,1,2) [2025-02-22 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535174', 'tblTempUsageDetail_20' ) start [2025-02-22 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535174', 'tblTempUsageDetail_20' ) end [2025-02-22 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:30:23] Production.INFO: ==9389== Releasing lock... [2025-02-22 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:30:23] Production.INFO: 43 MB #Memory Used# [2025-02-22 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:31:04 [end_date_ymd] => 2025-02-22 21:31:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:31:04' and `end` < '2025-02-22 21: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-02-22 21:31:16] Production.INFO: count ==1940 [2025-02-22 21:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:31:04 - End Time 2025-02-22 21:31:04 [2025-02-22 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535179', 'tblTempUsageDetail_20' ) start [2025-02-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535179', 'tblTempUsageDetail_20' ) end [2025-02-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535179', 'tblTempVendorCDR_20' ) start [2025-02-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535179', 'tblTempVendorCDR_20' ) end [2025-02-22 21:31:17] Production.INFO: ProcessCDR(1,14535179,1,1,2) [2025-02-22 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535179', 'tblTempUsageDetail_20' ) start [2025-02-22 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535179', 'tblTempUsageDetail_20' ) end [2025-02-22 21:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:31:20] Production.INFO: ==9494== Releasing lock... [2025-02-22 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:31:20] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:32:06 [end_date_ymd] => 2025-02-22 21:32:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:32:06' and `end` < '2025-02-22 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-02-22 21:32:18] Production.INFO: count ==1932 [2025-02-22 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:32:06 - End Time 2025-02-22 21:32:06 [2025-02-22 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535184', 'tblTempUsageDetail_20' ) start [2025-02-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535184', 'tblTempUsageDetail_20' ) end [2025-02-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535184', 'tblTempVendorCDR_20' ) start [2025-02-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535184', 'tblTempVendorCDR_20' ) end [2025-02-22 21:32:18] Production.INFO: ProcessCDR(1,14535184,1,1,2) [2025-02-22 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535184', 'tblTempUsageDetail_20' ) start [2025-02-22 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535184', 'tblTempUsageDetail_20' ) end [2025-02-22 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:32:23] Production.INFO: ==9599== Releasing lock... [2025-02-22 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:32:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-22 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:33:04 [end_date_ymd] => 2025-02-22 21:33:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:33:04' and `end` < '2025-02-22 21: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-02-22 21:33:16] Production.INFO: count ==1932 [2025-02-22 21:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:33:04 - End Time 2025-02-22 21:33:04 [2025-02-22 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535189', 'tblTempUsageDetail_20' ) start [2025-02-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535189', 'tblTempUsageDetail_20' ) end [2025-02-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535189', 'tblTempVendorCDR_20' ) start [2025-02-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535189', 'tblTempVendorCDR_20' ) end [2025-02-22 21:33:17] Production.INFO: ProcessCDR(1,14535189,1,1,2) [2025-02-22 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535189', 'tblTempUsageDetail_20' ) start [2025-02-22 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535189', 'tblTempUsageDetail_20' ) end [2025-02-22 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:33:21] Production.INFO: ==9698== Releasing lock... [2025-02-22 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:33:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:34:05 [end_date_ymd] => 2025-02-22 21:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:34:05' and `end` < '2025-02-22 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-02-22 21:34:17] Production.INFO: count ==1931 [2025-02-22 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:34:05 - End Time 2025-02-22 21:34:05 [2025-02-22 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535194', 'tblTempUsageDetail_20' ) start [2025-02-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535194', 'tblTempUsageDetail_20' ) end [2025-02-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535194', 'tblTempVendorCDR_20' ) start [2025-02-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535194', 'tblTempVendorCDR_20' ) end [2025-02-22 21:34:18] Production.INFO: ProcessCDR(1,14535194,1,1,2) [2025-02-22 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535194', 'tblTempUsageDetail_20' ) start [2025-02-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535194', 'tblTempUsageDetail_20' ) end [2025-02-22 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:34:21] Production.INFO: ==9813== Releasing lock... [2025-02-22 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:34:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-22 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:35:05 [end_date_ymd] => 2025-02-22 21:35:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:35:05' and `end` < '2025-02-22 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-02-22 21:35:17] Production.INFO: count ==1914 [2025-02-22 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:35:05 - End Time 2025-02-22 21:35:05 [2025-02-22 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535199', 'tblTempUsageDetail_20' ) start [2025-02-22 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535199', 'tblTempUsageDetail_20' ) end [2025-02-22 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535199', 'tblTempVendorCDR_20' ) start [2025-02-22 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535199', 'tblTempVendorCDR_20' ) end [2025-02-22 21:35:18] Production.INFO: ProcessCDR(1,14535199,1,1,2) [2025-02-22 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535199', 'tblTempUsageDetail_20' ) start [2025-02-22 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535199', 'tblTempUsageDetail_20' ) end [2025-02-22 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:35:21] Production.INFO: ==9918== Releasing lock... [2025-02-22 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:35:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:36:05 [end_date_ymd] => 2025-02-22 21:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:36:05' and `end` < '2025-02-22 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-02-22 21:36:17] Production.INFO: count ==1907 [2025-02-22 21:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:36:05 - End Time 2025-02-22 21:36:05 [2025-02-22 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535204', 'tblTempUsageDetail_20' ) start [2025-02-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535204', 'tblTempUsageDetail_20' ) end [2025-02-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535204', 'tblTempVendorCDR_20' ) start [2025-02-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535204', 'tblTempVendorCDR_20' ) end [2025-02-22 21:36:17] Production.INFO: ProcessCDR(1,14535204,1,1,2) [2025-02-22 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535204', 'tblTempUsageDetail_20' ) start [2025-02-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535204', 'tblTempUsageDetail_20' ) end [2025-02-22 21:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:36:20] Production.INFO: ==10020== Releasing lock... [2025-02-22 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:36:20] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:37:06 [end_date_ymd] => 2025-02-22 21:37:06 [RateCDR] => 1 ) [2025-02-22 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:37:06' and `end` < '2025-02-22 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:37:18] Production.INFO: count ==1896 [2025-02-22 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:37:06 - End Time 2025-02-22 21:37:06 [2025-02-22 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535209', 'tblTempUsageDetail_20' ) start [2025-02-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535209', 'tblTempUsageDetail_20' ) end [2025-02-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535209', 'tblTempVendorCDR_20' ) start [2025-02-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535209', 'tblTempVendorCDR_20' ) end [2025-02-22 21:37:18] Production.INFO: ProcessCDR(1,14535209,1,1,2) [2025-02-22 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535209', 'tblTempUsageDetail_20' ) start [2025-02-22 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535209', 'tblTempUsageDetail_20' ) end [2025-02-22 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:37:23] Production.INFO: ==10123== Releasing lock... [2025-02-22 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:37:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:38:05 [end_date_ymd] => 2025-02-22 21:38:05 [RateCDR] => 1 ) [2025-02-22 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:38:05' and `end` < '2025-02-22 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-02-22 21:38:17] Production.INFO: count ==1885 [2025-02-22 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:38:05 - End Time 2025-02-22 21:38:05 [2025-02-22 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535214', 'tblTempUsageDetail_20' ) start [2025-02-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535214', 'tblTempUsageDetail_20' ) end [2025-02-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535214', 'tblTempVendorCDR_20' ) start [2025-02-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535214', 'tblTempVendorCDR_20' ) end [2025-02-22 21:38:18] Production.INFO: ProcessCDR(1,14535214,1,1,2) [2025-02-22 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535214', 'tblTempUsageDetail_20' ) start [2025-02-22 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535214', 'tblTempUsageDetail_20' ) end [2025-02-22 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:38:21] Production.INFO: ==10225== Releasing lock... [2025-02-22 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-22 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:39:05 [end_date_ymd] => 2025-02-22 21:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:39:05' and `end` < '2025-02-22 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-02-22 21:39:17] Production.INFO: count ==1873 [2025-02-22 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:39:05 - End Time 2025-02-22 21:39:05 [2025-02-22 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535219', 'tblTempUsageDetail_20' ) start [2025-02-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535219', 'tblTempUsageDetail_20' ) end [2025-02-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535219', 'tblTempVendorCDR_20' ) start [2025-02-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535219', 'tblTempVendorCDR_20' ) end [2025-02-22 21:39:18] Production.INFO: ProcessCDR(1,14535219,1,1,2) [2025-02-22 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535219', 'tblTempUsageDetail_20' ) start [2025-02-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535219', 'tblTempUsageDetail_20' ) end [2025-02-22 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:39:21] Production.INFO: ==10329== Releasing lock... [2025-02-22 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:39:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:40:05 [end_date_ymd] => 2025-02-22 21:40:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:40:05' and `end` < '2025-02-22 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-02-22 21:40:17] Production.INFO: count ==1853 [2025-02-22 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:40:05 - End Time 2025-02-22 21:40:05 [2025-02-22 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535225', 'tblTempUsageDetail_20' ) start [2025-02-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535225', 'tblTempUsageDetail_20' ) end [2025-02-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535225', 'tblTempVendorCDR_20' ) start [2025-02-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535225', 'tblTempVendorCDR_20' ) end [2025-02-22 21:40:18] Production.INFO: ProcessCDR(1,14535225,1,1,2) [2025-02-22 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535225', 'tblTempUsageDetail_20' ) start [2025-02-22 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535225', 'tblTempUsageDetail_20' ) end [2025-02-22 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:40:21] Production.INFO: ==10429== Releasing lock... [2025-02-22 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:40:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:41:05 [end_date_ymd] => 2025-02-22 21:41:05 [RateCDR] => 1 ) [2025-02-22 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:41:05' and `end` < '2025-02-22 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:41:17] Production.INFO: count ==1794 [2025-02-22 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:41:05 - End Time 2025-02-22 21:41:05 [2025-02-22 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535230', 'tblTempUsageDetail_20' ) start [2025-02-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535230', 'tblTempUsageDetail_20' ) end [2025-02-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535230', 'tblTempVendorCDR_20' ) start [2025-02-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535230', 'tblTempVendorCDR_20' ) end [2025-02-22 21:41:18] Production.INFO: ProcessCDR(1,14535230,1,1,2) [2025-02-22 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535230', 'tblTempUsageDetail_20' ) start [2025-02-22 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535230', 'tblTempUsageDetail_20' ) end [2025-02-22 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:41:21] Production.INFO: ==10548== Releasing lock... [2025-02-22 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:41:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:42:05 [end_date_ymd] => 2025-02-22 21:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:42:05' and `end` < '2025-02-22 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-02-22 21:42:17] Production.INFO: count ==1783 [2025-02-22 21:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:42:05 - End Time 2025-02-22 21:42:05 [2025-02-22 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535235', 'tblTempUsageDetail_20' ) start [2025-02-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535235', 'tblTempUsageDetail_20' ) end [2025-02-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535235', 'tblTempVendorCDR_20' ) start [2025-02-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535235', 'tblTempVendorCDR_20' ) end [2025-02-22 21:42:17] Production.INFO: ProcessCDR(1,14535235,1,1,2) [2025-02-22 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535235', 'tblTempUsageDetail_20' ) start [2025-02-22 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535235', 'tblTempUsageDetail_20' ) end [2025-02-22 21:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:42:20] Production.INFO: ==10649== Releasing lock... [2025-02-22 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:42:20] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:43:05 [end_date_ymd] => 2025-02-22 21:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:43:05' and `end` < '2025-02-22 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-02-22 21:43:17] Production.INFO: count ==1778 [2025-02-22 21:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:43:05 - End Time 2025-02-22 21:43:05 [2025-02-22 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535240', 'tblTempUsageDetail_20' ) start [2025-02-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535240', 'tblTempUsageDetail_20' ) end [2025-02-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535240', 'tblTempVendorCDR_20' ) start [2025-02-22 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535240', 'tblTempVendorCDR_20' ) end [2025-02-22 21:43:18] Production.INFO: ProcessCDR(1,14535240,1,1,2) [2025-02-22 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535240', 'tblTempUsageDetail_20' ) start [2025-02-22 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535240', 'tblTempUsageDetail_20' ) end [2025-02-22 21:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:43:20] Production.INFO: ==10752== Releasing lock... [2025-02-22 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:43:20] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:44:05 [end_date_ymd] => 2025-02-22 21:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:44:05' and `end` < '2025-02-22 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-02-22 21:44:17] Production.INFO: count ==1769 [2025-02-22 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:44:05 - End Time 2025-02-22 21:44:05 [2025-02-22 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535245', 'tblTempUsageDetail_20' ) start [2025-02-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535245', 'tblTempUsageDetail_20' ) end [2025-02-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535245', 'tblTempVendorCDR_20' ) start [2025-02-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535245', 'tblTempVendorCDR_20' ) end [2025-02-22 21:44:18] Production.INFO: ProcessCDR(1,14535245,1,1,2) [2025-02-22 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535245', 'tblTempUsageDetail_20' ) start [2025-02-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535245', 'tblTempUsageDetail_20' ) end [2025-02-22 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:44:21] Production.INFO: ==10894== Releasing lock... [2025-02-22 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:44:21] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:45:05 [end_date_ymd] => 2025-02-22 21:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:45:05' and `end` < '2025-02-22 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-02-22 21:45:17] Production.INFO: count ==1766 [2025-02-22 21:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:45:05 - End Time 2025-02-22 21:45:05 [2025-02-22 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535250', 'tblTempUsageDetail_20' ) start [2025-02-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535250', 'tblTempUsageDetail_20' ) end [2025-02-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535250', 'tblTempVendorCDR_20' ) start [2025-02-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535250', 'tblTempVendorCDR_20' ) end [2025-02-22 21:45:17] Production.INFO: ProcessCDR(1,14535250,1,1,2) [2025-02-22 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535250', 'tblTempUsageDetail_20' ) start [2025-02-22 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535250', 'tblTempUsageDetail_20' ) end [2025-02-22 21:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:45:20] Production.INFO: ==10996== Releasing lock... [2025-02-22 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:45:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-22 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:46:06 [end_date_ymd] => 2025-02-22 21:46:06 [RateCDR] => 1 ) [2025-02-22 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:46:06' and `end` < '2025-02-22 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:46:18] Production.INFO: count ==1765 [2025-02-22 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:46:06 - End Time 2025-02-22 21:46:06 [2025-02-22 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535255', 'tblTempUsageDetail_20' ) start [2025-02-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535255', 'tblTempUsageDetail_20' ) end [2025-02-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535255', 'tblTempVendorCDR_20' ) start [2025-02-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535255', 'tblTempVendorCDR_20' ) end [2025-02-22 21:46:18] Production.INFO: ProcessCDR(1,14535255,1,1,2) [2025-02-22 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535255', 'tblTempUsageDetail_20' ) start [2025-02-22 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535255', 'tblTempUsageDetail_20' ) end [2025-02-22 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:46:21] Production.INFO: ==11096== Releasing lock... [2025-02-22 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:46:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:47:05 [end_date_ymd] => 2025-02-22 21:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:47:05' and `end` < '2025-02-22 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-02-22 21:47:17] Production.INFO: count ==1761 [2025-02-22 21:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:47:05 - End Time 2025-02-22 21:47:05 [2025-02-22 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535260', 'tblTempUsageDetail_20' ) start [2025-02-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535260', 'tblTempUsageDetail_20' ) end [2025-02-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535260', 'tblTempVendorCDR_20' ) start [2025-02-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535260', 'tblTempVendorCDR_20' ) end [2025-02-22 21:47:17] Production.INFO: ProcessCDR(1,14535260,1,1,2) [2025-02-22 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535260', 'tblTempUsageDetail_20' ) start [2025-02-22 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535260', 'tblTempUsageDetail_20' ) end [2025-02-22 21:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:47:20] Production.INFO: ==11178== Releasing lock... [2025-02-22 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:47:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-22 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:48:06 [end_date_ymd] => 2025-02-22 21:48:06 [RateCDR] => 1 ) [2025-02-22 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:48:06' and `end` < '2025-02-22 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:48:18] Production.INFO: count ==1757 [2025-02-22 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:48:06 - End Time 2025-02-22 21:48:06 [2025-02-22 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535265', 'tblTempUsageDetail_20' ) start [2025-02-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535265', 'tblTempUsageDetail_20' ) end [2025-02-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535265', 'tblTempVendorCDR_20' ) start [2025-02-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535265', 'tblTempVendorCDR_20' ) end [2025-02-22 21:48:18] Production.INFO: ProcessCDR(1,14535265,1,1,2) [2025-02-22 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535265', 'tblTempUsageDetail_20' ) start [2025-02-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535265', 'tblTempUsageDetail_20' ) end [2025-02-22 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:48:23] Production.INFO: ==11249== Releasing lock... [2025-02-22 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:48:23] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:49:04 [end_date_ymd] => 2025-02-22 21:49:04 [RateCDR] => 1 ) [2025-02-22 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:49:04' and `end` < '2025-02-22 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:49:16] Production.INFO: count ==1757 [2025-02-22 21:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:49:04 - End Time 2025-02-22 21:49:04 [2025-02-22 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535270', 'tblTempUsageDetail_20' ) start [2025-02-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535270', 'tblTempUsageDetail_20' ) end [2025-02-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535270', 'tblTempVendorCDR_20' ) start [2025-02-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535270', 'tblTempVendorCDR_20' ) end [2025-02-22 21:49:17] Production.INFO: ProcessCDR(1,14535270,1,1,2) [2025-02-22 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535270', 'tblTempUsageDetail_20' ) start [2025-02-22 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535270', 'tblTempUsageDetail_20' ) end [2025-02-22 21:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:49:20] Production.INFO: ==11320== Releasing lock... [2025-02-22 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:49:20] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:50:06 [end_date_ymd] => 2025-02-22 21:50:06 [RateCDR] => 1 ) [2025-02-22 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:50:06' and `end` < '2025-02-22 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:50:18] Production.INFO: count ==1751 [2025-02-22 21:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:50:06 - End Time 2025-02-22 21:50:06 [2025-02-22 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535276', 'tblTempUsageDetail_20' ) start [2025-02-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535276', 'tblTempUsageDetail_20' ) end [2025-02-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535276', 'tblTempVendorCDR_20' ) start [2025-02-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535276', 'tblTempVendorCDR_20' ) end [2025-02-22 21:50:18] Production.INFO: ProcessCDR(1,14535276,1,1,2) [2025-02-22 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535276', 'tblTempUsageDetail_20' ) start [2025-02-22 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535276', 'tblTempUsageDetail_20' ) end [2025-02-22 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:50:22] Production.INFO: ==11399== Releasing lock... [2025-02-22 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:50:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-22 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:51:06 [end_date_ymd] => 2025-02-22 21:51:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:51:06' and `end` < '2025-02-22 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-02-22 21:51:18] Production.INFO: count ==1721 [2025-02-22 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:51:06 - End Time 2025-02-22 21:51:06 [2025-02-22 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535281', 'tblTempUsageDetail_20' ) start [2025-02-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535281', 'tblTempUsageDetail_20' ) end [2025-02-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535281', 'tblTempVendorCDR_20' ) start [2025-02-22 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535281', 'tblTempVendorCDR_20' ) end [2025-02-22 21:51:18] Production.INFO: ProcessCDR(1,14535281,1,1,2) [2025-02-22 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535281', 'tblTempUsageDetail_20' ) start [2025-02-22 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535281', 'tblTempUsageDetail_20' ) end [2025-02-22 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:51:21] Production.INFO: ==11472== Releasing lock... [2025-02-22 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:51:21] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:52:05 [end_date_ymd] => 2025-02-22 21:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:52:05' and `end` < '2025-02-22 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-02-22 21:52:17] Production.INFO: count ==1724 [2025-02-22 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:52:05 - End Time 2025-02-22 21:52:05 [2025-02-22 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535286', 'tblTempUsageDetail_20' ) start [2025-02-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535286', 'tblTempUsageDetail_20' ) end [2025-02-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535286', 'tblTempVendorCDR_20' ) start [2025-02-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535286', 'tblTempVendorCDR_20' ) end [2025-02-22 21:52:18] Production.INFO: ProcessCDR(1,14535286,1,1,2) [2025-02-22 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535286', 'tblTempUsageDetail_20' ) start [2025-02-22 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535286', 'tblTempUsageDetail_20' ) end [2025-02-22 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:52:21] Production.INFO: ==11544== Releasing lock... [2025-02-22 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:52:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-22 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:53:04 [end_date_ymd] => 2025-02-22 21:53:04 [RateCDR] => 1 ) [2025-02-22 21:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:53:04' and `end` < '2025-02-22 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:53:17] Production.INFO: count ==1722 [2025-02-22 21:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:53:04 - End Time 2025-02-22 21:53:04 [2025-02-22 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535291', 'tblTempUsageDetail_20' ) start [2025-02-22 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535291', 'tblTempUsageDetail_20' ) end [2025-02-22 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535291', 'tblTempVendorCDR_20' ) start [2025-02-22 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535291', 'tblTempVendorCDR_20' ) end [2025-02-22 21:53:17] Production.INFO: ProcessCDR(1,14535291,1,1,2) [2025-02-22 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535291', 'tblTempUsageDetail_20' ) start [2025-02-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535291', 'tblTempUsageDetail_20' ) end [2025-02-22 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:53:21] Production.INFO: ==11627== Releasing lock... [2025-02-22 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:53:21] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:54:05 [end_date_ymd] => 2025-02-22 21:54:05 [RateCDR] => 1 ) [2025-02-22 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:54:05' and `end` < '2025-02-22 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:54:17] Production.INFO: count ==1721 [2025-02-22 21:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:54:05 - End Time 2025-02-22 21:54:05 [2025-02-22 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535296', 'tblTempUsageDetail_20' ) start [2025-02-22 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535296', 'tblTempUsageDetail_20' ) end [2025-02-22 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535296', 'tblTempVendorCDR_20' ) start [2025-02-22 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535296', 'tblTempVendorCDR_20' ) end [2025-02-22 21:54:17] Production.INFO: ProcessCDR(1,14535296,1,1,2) [2025-02-22 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535296', 'tblTempUsageDetail_20' ) start [2025-02-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535296', 'tblTempUsageDetail_20' ) end [2025-02-22 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:54:22] Production.INFO: ==11698== Releasing lock... [2025-02-22 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-22 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:55:04 [end_date_ymd] => 2025-02-22 21:55:04 [RateCDR] => 1 ) [2025-02-22 21: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-02-22 18:55:04' and `end` < '2025-02-22 21: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-02-22 21:55:16] Production.INFO: count ==1716 [2025-02-22 21:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:55:04 - End Time 2025-02-22 21:55:04 [2025-02-22 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535301', 'tblTempUsageDetail_20' ) start [2025-02-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535301', 'tblTempUsageDetail_20' ) end [2025-02-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535301', 'tblTempVendorCDR_20' ) start [2025-02-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535301', 'tblTempVendorCDR_20' ) end [2025-02-22 21:55:17] Production.INFO: ProcessCDR(1,14535301,1,1,2) [2025-02-22 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535301', 'tblTempUsageDetail_20' ) start [2025-02-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535301', 'tblTempUsageDetail_20' ) end [2025-02-22 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:55:20] Production.INFO: ==11768== Releasing lock... [2025-02-22 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:55:20] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:56:05 [end_date_ymd] => 2025-02-22 21:56:05 [RateCDR] => 1 ) [2025-02-22 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:56:05' and `end` < '2025-02-22 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:56:17] Production.INFO: count ==1711 [2025-02-22 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:56:05 - End Time 2025-02-22 21:56:05 [2025-02-22 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535306', 'tblTempUsageDetail_20' ) start [2025-02-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535306', 'tblTempUsageDetail_20' ) end [2025-02-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535306', 'tblTempVendorCDR_20' ) start [2025-02-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535306', 'tblTempVendorCDR_20' ) end [2025-02-22 21:56:18] Production.INFO: ProcessCDR(1,14535306,1,1,2) [2025-02-22 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535306', 'tblTempUsageDetail_20' ) start [2025-02-22 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535306', 'tblTempUsageDetail_20' ) end [2025-02-22 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:56:21] Production.INFO: ==11841== Releasing lock... [2025-02-22 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:56:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:57:05 [end_date_ymd] => 2025-02-22 21:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:57:05' and `end` < '2025-02-22 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-02-22 21:57:17] Production.INFO: count ==1687 [2025-02-22 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:57:05 - End Time 2025-02-22 21:57:05 [2025-02-22 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535311', 'tblTempUsageDetail_20' ) start [2025-02-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535311', 'tblTempUsageDetail_20' ) end [2025-02-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535311', 'tblTempVendorCDR_20' ) start [2025-02-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535311', 'tblTempVendorCDR_20' ) end [2025-02-22 21:57:18] Production.INFO: ProcessCDR(1,14535311,1,1,2) [2025-02-22 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535311', 'tblTempUsageDetail_20' ) start [2025-02-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535311', 'tblTempUsageDetail_20' ) end [2025-02-22 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:57:22] Production.INFO: ==11910== Releasing lock... [2025-02-22 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:57:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:58:05 [end_date_ymd] => 2025-02-22 21:58:05 [RateCDR] => 1 ) [2025-02-22 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 18:58:05' and `end` < '2025-02-22 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 21:58:17] Production.INFO: count ==1682 [2025-02-22 21:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 18:58:05 - End Time 2025-02-22 21:58:05 [2025-02-22 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535316', 'tblTempUsageDetail_20' ) start [2025-02-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535316', 'tblTempUsageDetail_20' ) end [2025-02-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535316', 'tblTempVendorCDR_20' ) start [2025-02-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535316', 'tblTempVendorCDR_20' ) end [2025-02-22 21:58:17] Production.INFO: ProcessCDR(1,14535316,1,1,2) [2025-02-22 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535316', 'tblTempUsageDetail_20' ) start [2025-02-22 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535316', 'tblTempUsageDetail_20' ) end [2025-02-22 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:58:20] Production.INFO: ==11980== Releasing lock... [2025-02-22 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:58:20] Production.INFO: 41 MB #Memory Used# [2025-02-22 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 18:59:05 [end_date_ymd] => 2025-02-22 21:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 18:59:05' and `end` < '2025-02-22 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-02-22 21:59:17] Production.INFO: count ==1678 [2025-02-22 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 18:59:05 - End Time 2025-02-22 21:59:05 [2025-02-22 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535321', 'tblTempUsageDetail_20' ) start [2025-02-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535321', 'tblTempUsageDetail_20' ) end [2025-02-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535321', 'tblTempVendorCDR_20' ) start [2025-02-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535321', 'tblTempVendorCDR_20' ) end [2025-02-22 21:59:18] Production.INFO: ProcessCDR(1,14535321,1,1,2) [2025-02-22 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535321', 'tblTempUsageDetail_20' ) start [2025-02-22 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535321', 'tblTempUsageDetail_20' ) end [2025-02-22 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 21:59:21] Production.INFO: ==12095== Releasing lock... [2025-02-22 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 21:59:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:00:06 [end_date_ymd] => 2025-02-22 22:00:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:00:06' and `end` < '2025-02-22 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-02-22 22:00:18] Production.INFO: count ==1676 [2025-02-22 22:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:00:06 - End Time 2025-02-22 22:00:06 [2025-02-22 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535326', 'tblTempUsageDetail_20' ) start [2025-02-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535326', 'tblTempUsageDetail_20' ) end [2025-02-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535326', 'tblTempVendorCDR_20' ) start [2025-02-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535326', 'tblTempVendorCDR_20' ) end [2025-02-22 22:00:18] Production.INFO: ProcessCDR(1,14535326,1,1,2) [2025-02-22 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535326', 'tblTempUsageDetail_20' ) start [2025-02-22 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535326', 'tblTempUsageDetail_20' ) end [2025-02-22 22:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:00:21] Production.INFO: ==12178== Releasing lock... [2025-02-22 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:00:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:01:05 [end_date_ymd] => 2025-02-22 22:01:05 [RateCDR] => 1 ) [2025-02-22 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:01:05' and `end` < '2025-02-22 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:01:17] Production.INFO: count ==1624 [2025-02-22 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:01:05 - End Time 2025-02-22 22:01:05 [2025-02-22 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535332', 'tblTempUsageDetail_20' ) start [2025-02-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535332', 'tblTempUsageDetail_20' ) end [2025-02-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535332', 'tblTempVendorCDR_20' ) start [2025-02-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535332', 'tblTempVendorCDR_20' ) end [2025-02-22 22:01:18] Production.INFO: ProcessCDR(1,14535332,1,1,2) [2025-02-22 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535332', 'tblTempUsageDetail_20' ) start [2025-02-22 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535332', 'tblTempUsageDetail_20' ) end [2025-02-22 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:01:21] Production.INFO: ==12267== Releasing lock... [2025-02-22 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:01:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:02:05 [end_date_ymd] => 2025-02-22 22:02:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:02:05' and `end` < '2025-02-22 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-02-22 22:02:17] Production.INFO: count ==1625 [2025-02-22 22:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:02:05 - End Time 2025-02-22 22:02:05 [2025-02-22 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535337', 'tblTempUsageDetail_20' ) start [2025-02-22 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535337', 'tblTempUsageDetail_20' ) end [2025-02-22 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535337', 'tblTempVendorCDR_20' ) start [2025-02-22 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535337', 'tblTempVendorCDR_20' ) end [2025-02-22 22:02:17] Production.INFO: ProcessCDR(1,14535337,1,1,2) [2025-02-22 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535337', 'tblTempUsageDetail_20' ) start [2025-02-22 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535337', 'tblTempUsageDetail_20' ) end [2025-02-22 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:02:22] Production.INFO: ==12338== Releasing lock... [2025-02-22 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:02:22] Production.INFO: 40 MB #Memory Used# [2025-02-22 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:03:05 [end_date_ymd] => 2025-02-22 22:03:05 [RateCDR] => 1 ) [2025-02-22 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:03:05' and `end` < '2025-02-22 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:03:17] Production.INFO: count ==1624 [2025-02-22 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:03:05 - End Time 2025-02-22 22:03:05 [2025-02-22 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535342', 'tblTempUsageDetail_20' ) start [2025-02-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535342', 'tblTempUsageDetail_20' ) end [2025-02-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535342', 'tblTempVendorCDR_20' ) start [2025-02-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535342', 'tblTempVendorCDR_20' ) end [2025-02-22 22:03:18] Production.INFO: ProcessCDR(1,14535342,1,1,2) [2025-02-22 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535342', 'tblTempUsageDetail_20' ) start [2025-02-22 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535342', 'tblTempUsageDetail_20' ) end [2025-02-22 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:03:21] Production.INFO: ==12417== Releasing lock... [2025-02-22 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:03:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-22 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:04:05 [end_date_ymd] => 2025-02-22 22:04:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:04:05' and `end` < '2025-02-22 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-02-22 22:04:17] Production.INFO: count ==1611 [2025-02-22 22:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:04:05 - End Time 2025-02-22 22:04:05 [2025-02-22 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535347', 'tblTempUsageDetail_20' ) start [2025-02-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535347', 'tblTempUsageDetail_20' ) end [2025-02-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535347', 'tblTempVendorCDR_20' ) start [2025-02-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535347', 'tblTempVendorCDR_20' ) end [2025-02-22 22:04:17] Production.INFO: ProcessCDR(1,14535347,1,1,2) [2025-02-22 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535347', 'tblTempUsageDetail_20' ) start [2025-02-22 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535347', 'tblTempUsageDetail_20' ) end [2025-02-22 22:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:04:20] Production.INFO: ==12515== Releasing lock... [2025-02-22 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:04:20] Production.INFO: 40 MB #Memory Used# [2025-02-22 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:05:05 [end_date_ymd] => 2025-02-22 22:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:05:05' and `end` < '2025-02-22 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-02-22 22:05:17] Production.INFO: count ==1615 [2025-02-22 22:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:05:05 - End Time 2025-02-22 22:05:05 [2025-02-22 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535352', 'tblTempUsageDetail_20' ) start [2025-02-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535352', 'tblTempUsageDetail_20' ) end [2025-02-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535352', 'tblTempVendorCDR_20' ) start [2025-02-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535352', 'tblTempVendorCDR_20' ) end [2025-02-22 22:05:17] Production.INFO: ProcessCDR(1,14535352,1,1,2) [2025-02-22 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535352', 'tblTempUsageDetail_20' ) start [2025-02-22 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535352', 'tblTempUsageDetail_20' ) end [2025-02-22 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:05:22] Production.INFO: ==12605== Releasing lock... [2025-02-22 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:05:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:06:05 [end_date_ymd] => 2025-02-22 22:06:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:06:05' and `end` < '2025-02-22 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-02-22 22:06:17] Production.INFO: count ==1599 [2025-02-22 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:06:05 - End Time 2025-02-22 22:06:05 [2025-02-22 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535357', 'tblTempUsageDetail_20' ) start [2025-02-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535357', 'tblTempUsageDetail_20' ) end [2025-02-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535357', 'tblTempVendorCDR_20' ) start [2025-02-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535357', 'tblTempVendorCDR_20' ) end [2025-02-22 22:06:18] Production.INFO: ProcessCDR(1,14535357,1,1,2) [2025-02-22 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535357', 'tblTempUsageDetail_20' ) start [2025-02-22 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535357', 'tblTempUsageDetail_20' ) end [2025-02-22 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:06:21] Production.INFO: ==12701== Releasing lock... [2025-02-22 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:06:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:07:05 [end_date_ymd] => 2025-02-22 22:07:05 [RateCDR] => 1 ) [2025-02-22 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:07:05' and `end` < '2025-02-22 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:07:17] Production.INFO: count ==1588 [2025-02-22 22:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:07:05 - End Time 2025-02-22 22:07:05 [2025-02-22 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535362', 'tblTempUsageDetail_20' ) start [2025-02-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535362', 'tblTempUsageDetail_20' ) end [2025-02-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535362', 'tblTempVendorCDR_20' ) start [2025-02-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535362', 'tblTempVendorCDR_20' ) end [2025-02-22 22:07:17] Production.INFO: ProcessCDR(1,14535362,1,1,2) [2025-02-22 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535362', 'tblTempUsageDetail_20' ) start [2025-02-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535362', 'tblTempUsageDetail_20' ) end [2025-02-22 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:07:22] Production.INFO: ==12782== Releasing lock... [2025-02-22 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:07:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:08:05 [end_date_ymd] => 2025-02-22 22:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:08:05' and `end` < '2025-02-22 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-02-22 22:08:17] Production.INFO: count ==1578 [2025-02-22 22:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:08:05 - End Time 2025-02-22 22:08:05 [2025-02-22 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535367', 'tblTempUsageDetail_20' ) start [2025-02-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535367', 'tblTempUsageDetail_20' ) end [2025-02-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535367', 'tblTempVendorCDR_20' ) start [2025-02-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535367', 'tblTempVendorCDR_20' ) end [2025-02-22 22:08:17] Production.INFO: ProcessCDR(1,14535367,1,1,2) [2025-02-22 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535367', 'tblTempUsageDetail_20' ) start [2025-02-22 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535367', 'tblTempUsageDetail_20' ) end [2025-02-22 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:08:21] Production.INFO: ==12888== Releasing lock... [2025-02-22 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:08:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-22 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:09:05 [end_date_ymd] => 2025-02-22 22:09:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:09:05' and `end` < '2025-02-22 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-02-22 22:09:17] Production.INFO: count ==1576 [2025-02-22 22:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:09:05 - End Time 2025-02-22 22:09:05 [2025-02-22 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535372', 'tblTempUsageDetail_20' ) start [2025-02-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535372', 'tblTempUsageDetail_20' ) end [2025-02-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535372', 'tblTempVendorCDR_20' ) start [2025-02-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535372', 'tblTempVendorCDR_20' ) end [2025-02-22 22:09:17] Production.INFO: ProcessCDR(1,14535372,1,1,2) [2025-02-22 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535372', 'tblTempUsageDetail_20' ) start [2025-02-22 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535372', 'tblTempUsageDetail_20' ) end [2025-02-22 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:09:20] Production.INFO: ==12975== Releasing lock... [2025-02-22 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:09:20] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:10:05 [end_date_ymd] => 2025-02-22 22:10:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:10:05' and `end` < '2025-02-22 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-02-22 22:10:17] Production.INFO: count ==1575 [2025-02-22 22:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:10:05 - End Time 2025-02-22 22:10:05 [2025-02-22 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535378', 'tblTempUsageDetail_20' ) start [2025-02-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535378', 'tblTempUsageDetail_20' ) end [2025-02-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535378', 'tblTempVendorCDR_20' ) start [2025-02-22 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535378', 'tblTempVendorCDR_20' ) end [2025-02-22 22:10:18] Production.INFO: ProcessCDR(1,14535378,1,1,2) [2025-02-22 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535378', 'tblTempUsageDetail_20' ) start [2025-02-22 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535378', 'tblTempUsageDetail_20' ) end [2025-02-22 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:10:21] Production.INFO: ==13067== Releasing lock... [2025-02-22 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:10:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:11:05 [end_date_ymd] => 2025-02-22 22:11:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:11:05' and `end` < '2025-02-22 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-02-22 22:11:17] Production.INFO: count ==1551 [2025-02-22 22:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:11:05 - End Time 2025-02-22 22:11:05 [2025-02-22 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535383', 'tblTempUsageDetail_20' ) start [2025-02-22 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535383', 'tblTempUsageDetail_20' ) end [2025-02-22 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535383', 'tblTempVendorCDR_20' ) start [2025-02-22 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535383', 'tblTempVendorCDR_20' ) end [2025-02-22 22:11:17] Production.INFO: ProcessCDR(1,14535383,1,1,2) [2025-02-22 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535383', 'tblTempUsageDetail_20' ) start [2025-02-22 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535383', 'tblTempUsageDetail_20' ) end [2025-02-22 22:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:11:20] Production.INFO: ==13159== Releasing lock... [2025-02-22 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:11:20] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:12:05 [end_date_ymd] => 2025-02-22 22:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:12:05' and `end` < '2025-02-22 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-02-22 22:12:17] Production.INFO: count ==1550 [2025-02-22 22:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:12:05 - End Time 2025-02-22 22:12:05 [2025-02-22 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535388', 'tblTempUsageDetail_20' ) start [2025-02-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535388', 'tblTempUsageDetail_20' ) end [2025-02-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535388', 'tblTempVendorCDR_20' ) start [2025-02-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535388', 'tblTempVendorCDR_20' ) end [2025-02-22 22:12:17] Production.INFO: ProcessCDR(1,14535388,1,1,2) [2025-02-22 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535388', 'tblTempUsageDetail_20' ) start [2025-02-22 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535388', 'tblTempUsageDetail_20' ) end [2025-02-22 22:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:12:20] Production.INFO: ==13253== Releasing lock... [2025-02-22 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:12:20] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:13:06 [end_date_ymd] => 2025-02-22 22:13:06 [RateCDR] => 1 ) [2025-02-22 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:13:06' and `end` < '2025-02-22 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:13:17] Production.INFO: count ==1554 [2025-02-22 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:13:06 - End Time 2025-02-22 22:13:06 [2025-02-22 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535393', 'tblTempUsageDetail_20' ) start [2025-02-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535393', 'tblTempUsageDetail_20' ) end [2025-02-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535393', 'tblTempVendorCDR_20' ) start [2025-02-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535393', 'tblTempVendorCDR_20' ) end [2025-02-22 22:13:18] Production.INFO: ProcessCDR(1,14535393,1,1,2) [2025-02-22 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535393', 'tblTempUsageDetail_20' ) start [2025-02-22 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535393', 'tblTempUsageDetail_20' ) end [2025-02-22 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:13:22] Production.INFO: ==13342== Releasing lock... [2025-02-22 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:13:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:14:05 [end_date_ymd] => 2025-02-22 22:14:05 [RateCDR] => 1 ) [2025-02-22 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:14:05' and `end` < '2025-02-22 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:14:17] Production.INFO: count ==1552 [2025-02-22 22:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:14:05 - End Time 2025-02-22 22:14:05 [2025-02-22 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535398', 'tblTempUsageDetail_20' ) start [2025-02-22 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535398', 'tblTempUsageDetail_20' ) end [2025-02-22 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535398', 'tblTempVendorCDR_20' ) start [2025-02-22 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535398', 'tblTempVendorCDR_20' ) end [2025-02-22 22:14:17] Production.INFO: ProcessCDR(1,14535398,1,1,2) [2025-02-22 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535398', 'tblTempUsageDetail_20' ) start [2025-02-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535398', 'tblTempUsageDetail_20' ) end [2025-02-22 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:14:21] Production.INFO: ==13429== Releasing lock... [2025-02-22 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:14:21] Production.INFO: 40 MB #Memory Used# [2025-02-22 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:15:06 [end_date_ymd] => 2025-02-22 22:15:06 [RateCDR] => 1 ) [2025-02-22 22: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-02-22 19:15:06' and `end` < '2025-02-22 22: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-02-22 22:15:18] Production.INFO: count ==1537 [2025-02-22 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:15:06 - End Time 2025-02-22 22:15:06 [2025-02-22 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535403', 'tblTempUsageDetail_20' ) start [2025-02-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535403', 'tblTempUsageDetail_20' ) end [2025-02-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535403', 'tblTempVendorCDR_20' ) start [2025-02-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535403', 'tblTempVendorCDR_20' ) end [2025-02-22 22:15:18] Production.INFO: ProcessCDR(1,14535403,1,1,2) [2025-02-22 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535403', 'tblTempUsageDetail_20' ) start [2025-02-22 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535403', 'tblTempUsageDetail_20' ) end [2025-02-22 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:15:22] Production.INFO: ==13576== Releasing lock... [2025-02-22 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:15:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:16:05 [end_date_ymd] => 2025-02-22 22:16:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:16:05' and `end` < '2025-02-22 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-02-22 22:16:17] Production.INFO: count ==1525 [2025-02-22 22:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:16:05 - End Time 2025-02-22 22:16:05 [2025-02-22 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535408', 'tblTempUsageDetail_20' ) start [2025-02-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535408', 'tblTempUsageDetail_20' ) end [2025-02-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535408', 'tblTempVendorCDR_20' ) start [2025-02-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535408', 'tblTempVendorCDR_20' ) end [2025-02-22 22:16:17] Production.INFO: ProcessCDR(1,14535408,1,1,2) [2025-02-22 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535408', 'tblTempUsageDetail_20' ) start [2025-02-22 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535408', 'tblTempUsageDetail_20' ) end [2025-02-22 22:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:16:20] Production.INFO: ==13667== Releasing lock... [2025-02-22 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:16:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:17:05 [end_date_ymd] => 2025-02-22 22:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:17:05' and `end` < '2025-02-22 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-02-22 22:17:17] Production.INFO: count ==1520 [2025-02-22 22:17:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:17:05 - End Time 2025-02-22 22:17:05 [2025-02-22 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535413', 'tblTempUsageDetail_20' ) start [2025-02-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535413', 'tblTempUsageDetail_20' ) end [2025-02-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535413', 'tblTempVendorCDR_20' ) start [2025-02-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535413', 'tblTempVendorCDR_20' ) end [2025-02-22 22:17:18] Production.INFO: ProcessCDR(1,14535413,1,1,2) [2025-02-22 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535413', 'tblTempUsageDetail_20' ) start [2025-02-22 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535413', 'tblTempUsageDetail_20' ) end [2025-02-22 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:17:21] Production.INFO: ==13791== Releasing lock... [2025-02-22 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:17:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:18:05 [end_date_ymd] => 2025-02-22 22:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:18:05' and `end` < '2025-02-22 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-02-22 22:18:17] Production.INFO: count ==1526 [2025-02-22 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:18:05 - End Time 2025-02-22 22:18:05 [2025-02-22 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535418', 'tblTempUsageDetail_20' ) start [2025-02-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535418', 'tblTempUsageDetail_20' ) end [2025-02-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535418', 'tblTempVendorCDR_20' ) start [2025-02-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535418', 'tblTempVendorCDR_20' ) end [2025-02-22 22:18:18] Production.INFO: ProcessCDR(1,14535418,1,1,2) [2025-02-22 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535418', 'tblTempUsageDetail_20' ) start [2025-02-22 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535418', 'tblTempUsageDetail_20' ) end [2025-02-22 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:18:21] Production.INFO: ==13894== Releasing lock... [2025-02-22 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:18:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:19:05 [end_date_ymd] => 2025-02-22 22:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:19:05' and `end` < '2025-02-22 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-02-22 22:19:17] Production.INFO: count ==1520 [2025-02-22 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:19:05 - End Time 2025-02-22 22:19:05 [2025-02-22 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535423', 'tblTempUsageDetail_20' ) start [2025-02-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535423', 'tblTempUsageDetail_20' ) end [2025-02-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535423', 'tblTempVendorCDR_20' ) start [2025-02-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535423', 'tblTempVendorCDR_20' ) end [2025-02-22 22:19:18] Production.INFO: ProcessCDR(1,14535423,1,1,2) [2025-02-22 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535423', 'tblTempUsageDetail_20' ) start [2025-02-22 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535423', 'tblTempUsageDetail_20' ) end [2025-02-22 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:19:21] Production.INFO: ==13993== Releasing lock... [2025-02-22 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-22 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:20:06 [end_date_ymd] => 2025-02-22 22:20:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:20:06' and `end` < '2025-02-22 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-02-22 22:20:18] Production.INFO: count ==1518 [2025-02-22 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:20:06 - End Time 2025-02-22 22:20:06 [2025-02-22 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535429', 'tblTempUsageDetail_20' ) start [2025-02-22 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535429', 'tblTempUsageDetail_20' ) end [2025-02-22 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535429', 'tblTempVendorCDR_20' ) start [2025-02-22 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535429', 'tblTempVendorCDR_20' ) end [2025-02-22 22:20:18] Production.INFO: ProcessCDR(1,14535429,1,1,2) [2025-02-22 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535429', 'tblTempUsageDetail_20' ) start [2025-02-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535429', 'tblTempUsageDetail_20' ) end [2025-02-22 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:20:22] Production.INFO: ==14091== Releasing lock... [2025-02-22 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:20:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:21:05 [end_date_ymd] => 2025-02-22 22:21:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:21:05' and `end` < '2025-02-22 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-02-22 22:21:17] Production.INFO: count ==1504 [2025-02-22 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:21:05 - End Time 2025-02-22 22:21:05 [2025-02-22 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535434', 'tblTempUsageDetail_20' ) start [2025-02-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535434', 'tblTempUsageDetail_20' ) end [2025-02-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535434', 'tblTempVendorCDR_20' ) start [2025-02-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535434', 'tblTempVendorCDR_20' ) end [2025-02-22 22:21:18] Production.INFO: ProcessCDR(1,14535434,1,1,2) [2025-02-22 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535434', 'tblTempUsageDetail_20' ) start [2025-02-22 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535434', 'tblTempUsageDetail_20' ) end [2025-02-22 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:21:22] Production.INFO: ==14197== Releasing lock... [2025-02-22 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:21:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:22:05 [end_date_ymd] => 2025-02-22 22:22:05 [RateCDR] => 1 ) [2025-02-22 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:22:05' and `end` < '2025-02-22 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:22:17] Production.INFO: count ==1504 [2025-02-22 22:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:22:05 - End Time 2025-02-22 22:22:05 [2025-02-22 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535439', 'tblTempUsageDetail_20' ) start [2025-02-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535439', 'tblTempUsageDetail_20' ) end [2025-02-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535439', 'tblTempVendorCDR_20' ) start [2025-02-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535439', 'tblTempVendorCDR_20' ) end [2025-02-22 22:22:18] Production.INFO: ProcessCDR(1,14535439,1,1,2) [2025-02-22 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535439', 'tblTempUsageDetail_20' ) start [2025-02-22 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535439', 'tblTempUsageDetail_20' ) end [2025-02-22 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:22:21] Production.INFO: ==14274== Releasing lock... [2025-02-22 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:22:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:23:05 [end_date_ymd] => 2025-02-22 22:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:23:05' and `end` < '2025-02-22 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-02-22 22:23:17] Production.INFO: count ==1493 [2025-02-22 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:23:05 - End Time 2025-02-22 22:23:05 [2025-02-22 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535444', 'tblTempUsageDetail_20' ) start [2025-02-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535444', 'tblTempUsageDetail_20' ) end [2025-02-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535444', 'tblTempVendorCDR_20' ) start [2025-02-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535444', 'tblTempVendorCDR_20' ) end [2025-02-22 22:23:18] Production.INFO: ProcessCDR(1,14535444,1,1,2) [2025-02-22 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535444', 'tblTempUsageDetail_20' ) start [2025-02-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535444', 'tblTempUsageDetail_20' ) end [2025-02-22 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:23:21] Production.INFO: ==14344== Releasing lock... [2025-02-22 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:23:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:24:05 [end_date_ymd] => 2025-02-22 22:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:24:05' and `end` < '2025-02-22 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-02-22 22:24:17] Production.INFO: count ==1488 [2025-02-22 22:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:24:05 - End Time 2025-02-22 22:24:05 [2025-02-22 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535449', 'tblTempUsageDetail_20' ) start [2025-02-22 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535449', 'tblTempUsageDetail_20' ) end [2025-02-22 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535449', 'tblTempVendorCDR_20' ) start [2025-02-22 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535449', 'tblTempVendorCDR_20' ) end [2025-02-22 22:24:17] Production.INFO: ProcessCDR(1,14535449,1,1,2) [2025-02-22 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535449', 'tblTempUsageDetail_20' ) start [2025-02-22 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535449', 'tblTempUsageDetail_20' ) end [2025-02-22 22:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:24:20] Production.INFO: ==14415== Releasing lock... [2025-02-22 22:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:24:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:25:05 [end_date_ymd] => 2025-02-22 22:25:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:25:05' and `end` < '2025-02-22 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-02-22 22:25:17] Production.INFO: count ==1478 [2025-02-22 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:25:05 - End Time 2025-02-22 22:25:05 [2025-02-22 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535454', 'tblTempUsageDetail_20' ) start [2025-02-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535454', 'tblTempUsageDetail_20' ) end [2025-02-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535454', 'tblTempVendorCDR_20' ) start [2025-02-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535454', 'tblTempVendorCDR_20' ) end [2025-02-22 22:25:18] Production.INFO: ProcessCDR(1,14535454,1,1,2) [2025-02-22 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535454', 'tblTempUsageDetail_20' ) start [2025-02-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535454', 'tblTempUsageDetail_20' ) end [2025-02-22 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:25:21] Production.INFO: ==14492== Releasing lock... [2025-02-22 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:25:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-22 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:26:05 [end_date_ymd] => 2025-02-22 22:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:26:05' and `end` < '2025-02-22 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-02-22 22:26:17] Production.INFO: count ==1477 [2025-02-22 22:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:26:05 - End Time 2025-02-22 22:26:05 [2025-02-22 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535459', 'tblTempUsageDetail_20' ) start [2025-02-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535459', 'tblTempUsageDetail_20' ) end [2025-02-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535459', 'tblTempVendorCDR_20' ) start [2025-02-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535459', 'tblTempVendorCDR_20' ) end [2025-02-22 22:26:17] Production.INFO: ProcessCDR(1,14535459,1,1,2) [2025-02-22 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535459', 'tblTempUsageDetail_20' ) start [2025-02-22 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535459', 'tblTempUsageDetail_20' ) end [2025-02-22 22:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:26:20] Production.INFO: ==14562== Releasing lock... [2025-02-22 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:26:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:27:05 [end_date_ymd] => 2025-02-22 22:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:27:05' and `end` < '2025-02-22 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-02-22 22:27:17] Production.INFO: count ==1477 [2025-02-22 22:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:27:05 - End Time 2025-02-22 22:27:05 [2025-02-22 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535464', 'tblTempUsageDetail_20' ) start [2025-02-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535464', 'tblTempUsageDetail_20' ) end [2025-02-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535464', 'tblTempVendorCDR_20' ) start [2025-02-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535464', 'tblTempVendorCDR_20' ) end [2025-02-22 22:27:17] Production.INFO: ProcessCDR(1,14535464,1,1,2) [2025-02-22 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535464', 'tblTempUsageDetail_20' ) start [2025-02-22 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535464', 'tblTempUsageDetail_20' ) end [2025-02-22 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:27:21] Production.INFO: ==14632== Releasing lock... [2025-02-22 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:27:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:28:06 [end_date_ymd] => 2025-02-22 22:28:06 [RateCDR] => 1 ) [2025-02-22 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:28:06' and `end` < '2025-02-22 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:28:18] Production.INFO: count ==1472 [2025-02-22 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:28:06 - End Time 2025-02-22 22:28:06 [2025-02-22 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535469', 'tblTempUsageDetail_20' ) start [2025-02-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535469', 'tblTempUsageDetail_20' ) end [2025-02-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535469', 'tblTempVendorCDR_20' ) start [2025-02-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535469', 'tblTempVendorCDR_20' ) end [2025-02-22 22:28:18] Production.INFO: ProcessCDR(1,14535469,1,1,2) [2025-02-22 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535469', 'tblTempUsageDetail_20' ) start [2025-02-22 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535469', 'tblTempUsageDetail_20' ) end [2025-02-22 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:28:21] Production.INFO: ==14716== Releasing lock... [2025-02-22 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:28:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:29:05 [end_date_ymd] => 2025-02-22 22:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:29:05' and `end` < '2025-02-22 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-02-22 22:29:17] Production.INFO: count ==1471 [2025-02-22 22:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:29:05 - End Time 2025-02-22 22:29:05 [2025-02-22 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535474', 'tblTempUsageDetail_20' ) start [2025-02-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535474', 'tblTempUsageDetail_20' ) end [2025-02-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535474', 'tblTempVendorCDR_20' ) start [2025-02-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535474', 'tblTempVendorCDR_20' ) end [2025-02-22 22:29:17] Production.INFO: ProcessCDR(1,14535474,1,1,2) [2025-02-22 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535474', 'tblTempUsageDetail_20' ) start [2025-02-22 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535474', 'tblTempUsageDetail_20' ) end [2025-02-22 22:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:29:20] Production.INFO: ==14785== Releasing lock... [2025-02-22 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:29:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:30:06 [end_date_ymd] => 2025-02-22 22:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:30:06' and `end` < '2025-02-22 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-02-22 22:30:18] Production.INFO: count ==1470 [2025-02-22 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 19:30:06 - End Time 2025-02-22 22:30:06 [2025-02-22 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535480', 'tblTempUsageDetail_20' ) start [2025-02-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535480', 'tblTempUsageDetail_20' ) end [2025-02-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535480', 'tblTempVendorCDR_20' ) start [2025-02-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535480', 'tblTempVendorCDR_20' ) end [2025-02-22 22:30:19] Production.INFO: ProcessCDR(1,14535480,1,1,2) [2025-02-22 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535480', 'tblTempUsageDetail_20' ) start [2025-02-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535480', 'tblTempUsageDetail_20' ) end [2025-02-22 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:30:22] Production.INFO: ==14899== Releasing lock... [2025-02-22 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:30:22] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:31:05 [end_date_ymd] => 2025-02-22 22:31:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:31:05' and `end` < '2025-02-22 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-02-22 22:31:17] Production.INFO: count ==1459 [2025-02-22 22:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:31:05 - End Time 2025-02-22 22:31:05 [2025-02-22 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535485', 'tblTempUsageDetail_20' ) start [2025-02-22 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535485', 'tblTempUsageDetail_20' ) end [2025-02-22 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535485', 'tblTempVendorCDR_20' ) start [2025-02-22 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535485', 'tblTempVendorCDR_20' ) end [2025-02-22 22:31:17] Production.INFO: ProcessCDR(1,14535485,1,1,2) [2025-02-22 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535485', 'tblTempUsageDetail_20' ) start [2025-02-22 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535485', 'tblTempUsageDetail_20' ) end [2025-02-22 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:31:20] Production.INFO: ==14971== Releasing lock... [2025-02-22 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:31:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:32:05 [end_date_ymd] => 2025-02-22 22:32:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:32:05' and `end` < '2025-02-22 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-02-22 22:32:17] Production.INFO: count ==1460 [2025-02-22 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:32:05 - End Time 2025-02-22 22:32:05 [2025-02-22 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535490', 'tblTempUsageDetail_20' ) start [2025-02-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535490', 'tblTempUsageDetail_20' ) end [2025-02-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535490', 'tblTempVendorCDR_20' ) start [2025-02-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535490', 'tblTempVendorCDR_20' ) end [2025-02-22 22:32:18] Production.INFO: ProcessCDR(1,14535490,1,1,2) [2025-02-22 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535490', 'tblTempUsageDetail_20' ) start [2025-02-22 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535490', 'tblTempUsageDetail_20' ) end [2025-02-22 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:32:22] Production.INFO: ==15043== Releasing lock... [2025-02-22 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:32:22] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:33:05 [end_date_ymd] => 2025-02-22 22:33:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:33:05' and `end` < '2025-02-22 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-02-22 22:33:17] Production.INFO: count ==1455 [2025-02-22 22:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:33:05 - End Time 2025-02-22 22:33:05 [2025-02-22 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535495', 'tblTempUsageDetail_20' ) start [2025-02-22 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535495', 'tblTempUsageDetail_20' ) end [2025-02-22 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535495', 'tblTempVendorCDR_20' ) start [2025-02-22 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535495', 'tblTempVendorCDR_20' ) end [2025-02-22 22:33:17] Production.INFO: ProcessCDR(1,14535495,1,1,2) [2025-02-22 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535495', 'tblTempUsageDetail_20' ) start [2025-02-22 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535495', 'tblTempUsageDetail_20' ) end [2025-02-22 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:33:21] Production.INFO: ==15113== Releasing lock... [2025-02-22 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:33:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:34:05 [end_date_ymd] => 2025-02-22 22:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:34:05' and `end` < '2025-02-22 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-02-22 22:34:17] Production.INFO: count ==1455 [2025-02-22 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:34:05 - End Time 2025-02-22 22:34:05 [2025-02-22 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535500', 'tblTempUsageDetail_20' ) start [2025-02-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535500', 'tblTempUsageDetail_20' ) end [2025-02-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535500', 'tblTempVendorCDR_20' ) start [2025-02-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535500', 'tblTempVendorCDR_20' ) end [2025-02-22 22:34:17] Production.INFO: ProcessCDR(1,14535500,1,1,2) [2025-02-22 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535500', 'tblTempUsageDetail_20' ) start [2025-02-22 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535500', 'tblTempUsageDetail_20' ) end [2025-02-22 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:34:20] Production.INFO: ==15200== Releasing lock... [2025-02-22 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:34:20] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:35:05 [end_date_ymd] => 2025-02-22 22:35:05 [RateCDR] => 1 ) [2025-02-22 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:35:05' and `end` < '2025-02-22 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:35:17] Production.INFO: count ==1475 [2025-02-22 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:35:05 - End Time 2025-02-22 22:35:05 [2025-02-22 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535505', 'tblTempUsageDetail_20' ) start [2025-02-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535505', 'tblTempUsageDetail_20' ) end [2025-02-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535505', 'tblTempVendorCDR_20' ) start [2025-02-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535505', 'tblTempVendorCDR_20' ) end [2025-02-22 22:35:18] Production.INFO: ProcessCDR(1,14535505,1,1,2) [2025-02-22 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535505', 'tblTempUsageDetail_20' ) start [2025-02-22 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535505', 'tblTempUsageDetail_20' ) end [2025-02-22 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:35:22] Production.INFO: ==15273== Releasing lock... [2025-02-22 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:35:22] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:36:05 [end_date_ymd] => 2025-02-22 22:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:36:05' and `end` < '2025-02-22 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-02-22 22:36:17] Production.INFO: count ==1477 [2025-02-22 22:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:36:05 - End Time 2025-02-22 22:36:05 [2025-02-22 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535510', 'tblTempUsageDetail_20' ) start [2025-02-22 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535510', 'tblTempUsageDetail_20' ) end [2025-02-22 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535510', 'tblTempVendorCDR_20' ) start [2025-02-22 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535510', 'tblTempVendorCDR_20' ) end [2025-02-22 22:36:17] Production.INFO: ProcessCDR(1,14535510,1,1,2) [2025-02-22 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535510', 'tblTempUsageDetail_20' ) start [2025-02-22 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535510', 'tblTempUsageDetail_20' ) end [2025-02-22 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:36:22] Production.INFO: ==15345== Releasing lock... [2025-02-22 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:36:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:37:05 [end_date_ymd] => 2025-02-22 22:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:37:05' and `end` < '2025-02-22 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-02-22 22:37:17] Production.INFO: count ==1475 [2025-02-22 22:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:37:05 - End Time 2025-02-22 22:37:05 [2025-02-22 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535515', 'tblTempUsageDetail_20' ) start [2025-02-22 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535515', 'tblTempUsageDetail_20' ) end [2025-02-22 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535515', 'tblTempVendorCDR_20' ) start [2025-02-22 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535515', 'tblTempVendorCDR_20' ) end [2025-02-22 22:37:17] Production.INFO: ProcessCDR(1,14535515,1,1,2) [2025-02-22 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535515', 'tblTempUsageDetail_20' ) start [2025-02-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535515', 'tblTempUsageDetail_20' ) end [2025-02-22 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:37:21] Production.INFO: ==15415== Releasing lock... [2025-02-22 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:37:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:38:04 [end_date_ymd] => 2025-02-22 22:38:04 [RateCDR] => 1 ) [2025-02-22 22:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:38:04' and `end` < '2025-02-22 22:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:38:17] Production.INFO: count ==1478 [2025-02-22 22:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:38:04 - End Time 2025-02-22 22:38:04 [2025-02-22 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535520', 'tblTempUsageDetail_20' ) start [2025-02-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535520', 'tblTempUsageDetail_20' ) end [2025-02-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535520', 'tblTempVendorCDR_20' ) start [2025-02-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535520', 'tblTempVendorCDR_20' ) end [2025-02-22 22:38:17] Production.INFO: ProcessCDR(1,14535520,1,1,2) [2025-02-22 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535520', 'tblTempUsageDetail_20' ) start [2025-02-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535520', 'tblTempUsageDetail_20' ) end [2025-02-22 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:38:20] Production.INFO: ==15485== Releasing lock... [2025-02-22 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:38:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:39:05 [end_date_ymd] => 2025-02-22 22:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:39:05' and `end` < '2025-02-22 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-02-22 22:39:17] Production.INFO: count ==1484 [2025-02-22 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:39:05 - End Time 2025-02-22 22:39:05 [2025-02-22 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535525', 'tblTempUsageDetail_20' ) start [2025-02-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535525', 'tblTempUsageDetail_20' ) end [2025-02-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535525', 'tblTempVendorCDR_20' ) start [2025-02-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535525', 'tblTempVendorCDR_20' ) end [2025-02-22 22:39:18] Production.INFO: ProcessCDR(1,14535525,1,1,2) [2025-02-22 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535525', 'tblTempUsageDetail_20' ) start [2025-02-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535525', 'tblTempUsageDetail_20' ) end [2025-02-22 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:39:21] Production.INFO: ==15559== Releasing lock... [2025-02-22 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:39:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:40:05 [end_date_ymd] => 2025-02-22 22:40:05 [RateCDR] => 1 ) [2025-02-22 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:40:05' and `end` < '2025-02-22 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:40:17] Production.INFO: count ==1486 [2025-02-22 22:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:40:05 - End Time 2025-02-22 22:40:05 [2025-02-22 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535531', 'tblTempUsageDetail_20' ) start [2025-02-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535531', 'tblTempUsageDetail_20' ) end [2025-02-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535531', 'tblTempVendorCDR_20' ) start [2025-02-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535531', 'tblTempVendorCDR_20' ) end [2025-02-22 22:40:18] Production.INFO: ProcessCDR(1,14535531,1,1,2) [2025-02-22 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535531', 'tblTempUsageDetail_20' ) start [2025-02-22 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535531', 'tblTempUsageDetail_20' ) end [2025-02-22 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:40:21] Production.INFO: ==15633== Releasing lock... [2025-02-22 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:40:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:41:05 [end_date_ymd] => 2025-02-22 22:41:05 [RateCDR] => 1 ) [2025-02-22 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:41:05' and `end` < '2025-02-22 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:41:17] Production.INFO: count ==1457 [2025-02-22 22:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:41:05 - End Time 2025-02-22 22:41:05 [2025-02-22 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535536', 'tblTempUsageDetail_20' ) start [2025-02-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535536', 'tblTempUsageDetail_20' ) end [2025-02-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535536', 'tblTempVendorCDR_20' ) start [2025-02-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535536', 'tblTempVendorCDR_20' ) end [2025-02-22 22:41:17] Production.INFO: ProcessCDR(1,14535536,1,1,2) [2025-02-22 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535536', 'tblTempUsageDetail_20' ) start [2025-02-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535536', 'tblTempUsageDetail_20' ) end [2025-02-22 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:41:20] Production.INFO: ==15716== Releasing lock... [2025-02-22 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:41:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:42:05 [end_date_ymd] => 2025-02-22 22:42:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:42:05' and `end` < '2025-02-22 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-02-22 22:42:17] Production.INFO: count ==1450 [2025-02-22 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:42:05 - End Time 2025-02-22 22:42:05 [2025-02-22 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535541', 'tblTempUsageDetail_20' ) start [2025-02-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535541', 'tblTempUsageDetail_20' ) end [2025-02-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535541', 'tblTempVendorCDR_20' ) start [2025-02-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535541', 'tblTempVendorCDR_20' ) end [2025-02-22 22:42:18] Production.INFO: ProcessCDR(1,14535541,1,1,2) [2025-02-22 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535541', 'tblTempUsageDetail_20' ) start [2025-02-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535541', 'tblTempUsageDetail_20' ) end [2025-02-22 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:42:21] Production.INFO: ==15788== Releasing lock... [2025-02-22 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:42:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:43:05 [end_date_ymd] => 2025-02-22 22:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:43:05' and `end` < '2025-02-22 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-02-22 22:43:17] Production.INFO: count ==1447 [2025-02-22 22:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:43:05 - End Time 2025-02-22 22:43:05 [2025-02-22 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535546', 'tblTempUsageDetail_20' ) start [2025-02-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535546', 'tblTempUsageDetail_20' ) end [2025-02-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535546', 'tblTempVendorCDR_20' ) start [2025-02-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535546', 'tblTempVendorCDR_20' ) end [2025-02-22 22:43:17] Production.INFO: ProcessCDR(1,14535546,1,1,2) [2025-02-22 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535546', 'tblTempUsageDetail_20' ) start [2025-02-22 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535546', 'tblTempUsageDetail_20' ) end [2025-02-22 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:43:20] Production.INFO: ==15858== Releasing lock... [2025-02-22 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:43:20] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:44:05 [end_date_ymd] => 2025-02-22 22:44:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:44:05' and `end` < '2025-02-22 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-02-22 22:44:17] Production.INFO: count ==1447 [2025-02-22 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:44:05 - End Time 2025-02-22 22:44:05 [2025-02-22 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535551', 'tblTempUsageDetail_20' ) start [2025-02-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535551', 'tblTempUsageDetail_20' ) end [2025-02-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535551', 'tblTempVendorCDR_20' ) start [2025-02-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535551', 'tblTempVendorCDR_20' ) end [2025-02-22 22:44:18] Production.INFO: ProcessCDR(1,14535551,1,1,2) [2025-02-22 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535551', 'tblTempUsageDetail_20' ) start [2025-02-22 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535551', 'tblTempUsageDetail_20' ) end [2025-02-22 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:44:21] Production.INFO: ==15934== Releasing lock... [2025-02-22 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:44:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:45:05 [end_date_ymd] => 2025-02-22 22:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:45:05' and `end` < '2025-02-22 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-02-22 22:45:17] Production.INFO: count ==1444 [2025-02-22 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:45:05 - End Time 2025-02-22 22:45:05 [2025-02-22 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535556', 'tblTempUsageDetail_20' ) start [2025-02-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535556', 'tblTempUsageDetail_20' ) end [2025-02-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535556', 'tblTempVendorCDR_20' ) start [2025-02-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535556', 'tblTempVendorCDR_20' ) end [2025-02-22 22:45:18] Production.INFO: ProcessCDR(1,14535556,1,1,2) [2025-02-22 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535556', 'tblTempUsageDetail_20' ) start [2025-02-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535556', 'tblTempUsageDetail_20' ) end [2025-02-22 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:45:21] Production.INFO: ==16005== Releasing lock... [2025-02-22 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:45:21] Production.INFO: 39 MB #Memory Used# [2025-02-22 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:46:06 [end_date_ymd] => 2025-02-22 22:46:06 [RateCDR] => 1 ) [2025-02-22 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:46:06' and `end` < '2025-02-22 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:46:18] Production.INFO: count ==1443 [2025-02-22 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:46:06 - End Time 2025-02-22 22:46:06 [2025-02-22 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535561', 'tblTempUsageDetail_20' ) start [2025-02-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535561', 'tblTempUsageDetail_20' ) end [2025-02-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535561', 'tblTempVendorCDR_20' ) start [2025-02-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535561', 'tblTempVendorCDR_20' ) end [2025-02-22 22:46:18] Production.INFO: ProcessCDR(1,14535561,1,1,2) [2025-02-22 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535561', 'tblTempUsageDetail_20' ) start [2025-02-22 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535561', 'tblTempUsageDetail_20' ) end [2025-02-22 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:46:21] Production.INFO: ==16123== Releasing lock... [2025-02-22 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:46:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:47:05 [end_date_ymd] => 2025-02-22 22:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:47:05' and `end` < '2025-02-22 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-02-22 22:47:17] Production.INFO: count ==1439 [2025-02-22 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:47:05 - End Time 2025-02-22 22:47:05 [2025-02-22 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535566', 'tblTempUsageDetail_20' ) start [2025-02-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535566', 'tblTempUsageDetail_20' ) end [2025-02-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535566', 'tblTempVendorCDR_20' ) start [2025-02-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535566', 'tblTempVendorCDR_20' ) end [2025-02-22 22:47:17] Production.INFO: ProcessCDR(1,14535566,1,1,2) [2025-02-22 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535566', 'tblTempUsageDetail_20' ) start [2025-02-22 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535566', 'tblTempUsageDetail_20' ) end [2025-02-22 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:47:22] Production.INFO: ==16198== Releasing lock... [2025-02-22 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:47:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-22 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:48:05 [end_date_ymd] => 2025-02-22 22:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:48:05' and `end` < '2025-02-22 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-02-22 22:48:17] Production.INFO: count ==1438 [2025-02-22 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:48:05 - End Time 2025-02-22 22:48:05 [2025-02-22 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535571', 'tblTempUsageDetail_20' ) start [2025-02-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535571', 'tblTempUsageDetail_20' ) end [2025-02-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535571', 'tblTempVendorCDR_20' ) start [2025-02-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535571', 'tblTempVendorCDR_20' ) end [2025-02-22 22:48:18] Production.INFO: ProcessCDR(1,14535571,1,1,2) [2025-02-22 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535571', 'tblTempUsageDetail_20' ) start [2025-02-22 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535571', 'tblTempUsageDetail_20' ) end [2025-02-22 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:48:21] Production.INFO: ==16269== Releasing lock... [2025-02-22 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:48:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:49:05 [end_date_ymd] => 2025-02-22 22:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:49:05' and `end` < '2025-02-22 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-02-22 22:49:17] Production.INFO: count ==1427 [2025-02-22 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:49:05 - End Time 2025-02-22 22:49:05 [2025-02-22 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535576', 'tblTempUsageDetail_20' ) start [2025-02-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535576', 'tblTempUsageDetail_20' ) end [2025-02-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535576', 'tblTempVendorCDR_20' ) start [2025-02-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535576', 'tblTempVendorCDR_20' ) end [2025-02-22 22:49:18] Production.INFO: ProcessCDR(1,14535576,1,1,2) [2025-02-22 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535576', 'tblTempUsageDetail_20' ) start [2025-02-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535576', 'tblTempUsageDetail_20' ) end [2025-02-22 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:49:21] Production.INFO: ==16343== Releasing lock... [2025-02-22 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:50:06 [end_date_ymd] => 2025-02-22 22:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:50:06' and `end` < '2025-02-22 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-02-22 22:50:18] Production.INFO: count ==1423 [2025-02-22 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 19:50:06 - End Time 2025-02-22 22:50:06 [2025-02-22 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535582', 'tblTempUsageDetail_20' ) start [2025-02-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535582', 'tblTempUsageDetail_20' ) end [2025-02-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535582', 'tblTempVendorCDR_20' ) start [2025-02-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535582', 'tblTempVendorCDR_20' ) end [2025-02-22 22:50:19] Production.INFO: ProcessCDR(1,14535582,1,1,2) [2025-02-22 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535582', 'tblTempUsageDetail_20' ) start [2025-02-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535582', 'tblTempUsageDetail_20' ) end [2025-02-22 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:50:22] Production.INFO: ==16414== Releasing lock... [2025-02-22 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:50:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:51:05 [end_date_ymd] => 2025-02-22 22:51:05 [RateCDR] => 1 ) [2025-02-22 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:51:05' and `end` < '2025-02-22 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:51:17] Production.INFO: count ==1397 [2025-02-22 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:51:05 - End Time 2025-02-22 22:51:05 [2025-02-22 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535587', 'tblTempUsageDetail_20' ) start [2025-02-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535587', 'tblTempUsageDetail_20' ) end [2025-02-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535587', 'tblTempVendorCDR_20' ) start [2025-02-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535587', 'tblTempVendorCDR_20' ) end [2025-02-22 22:51:17] Production.INFO: ProcessCDR(1,14535587,1,1,2) [2025-02-22 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535587', 'tblTempUsageDetail_20' ) start [2025-02-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535587', 'tblTempUsageDetail_20' ) end [2025-02-22 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:51:22] Production.INFO: ==16488== Releasing lock... [2025-02-22 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:52:05 [end_date_ymd] => 2025-02-22 22:52:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:52:05' and `end` < '2025-02-22 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-02-22 22:52:17] Production.INFO: count ==1387 [2025-02-22 22:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:52:05 - End Time 2025-02-22 22:52:05 [2025-02-22 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535592', 'tblTempUsageDetail_20' ) start [2025-02-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535592', 'tblTempUsageDetail_20' ) end [2025-02-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535592', 'tblTempVendorCDR_20' ) start [2025-02-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535592', 'tblTempVendorCDR_20' ) end [2025-02-22 22:52:17] Production.INFO: ProcessCDR(1,14535592,1,1,2) [2025-02-22 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535592', 'tblTempUsageDetail_20' ) start [2025-02-22 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535592', 'tblTempUsageDetail_20' ) end [2025-02-22 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:52:20] Production.INFO: ==16558== Releasing lock... [2025-02-22 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:52:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:53:05 [end_date_ymd] => 2025-02-22 22:53:05 [RateCDR] => 1 ) [2025-02-22 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:53:05' and `end` < '2025-02-22 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:53:17] Production.INFO: count ==1382 [2025-02-22 22:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:53:05 - End Time 2025-02-22 22:53:05 [2025-02-22 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535597', 'tblTempUsageDetail_20' ) start [2025-02-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535597', 'tblTempUsageDetail_20' ) end [2025-02-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535597', 'tblTempVendorCDR_20' ) start [2025-02-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535597', 'tblTempVendorCDR_20' ) end [2025-02-22 22:53:17] Production.INFO: ProcessCDR(1,14535597,1,1,2) [2025-02-22 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535597', 'tblTempUsageDetail_20' ) start [2025-02-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535597', 'tblTempUsageDetail_20' ) end [2025-02-22 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:53:22] Production.INFO: ==16637== Releasing lock... [2025-02-22 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-22 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:54:05 [end_date_ymd] => 2025-02-22 22:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:54:05' and `end` < '2025-02-22 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-02-22 22:54:17] Production.INFO: count ==1381 [2025-02-22 22:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:54:05 - End Time 2025-02-22 22:54:05 [2025-02-22 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535602', 'tblTempUsageDetail_20' ) start [2025-02-22 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535602', 'tblTempUsageDetail_20' ) end [2025-02-22 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535602', 'tblTempVendorCDR_20' ) start [2025-02-22 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535602', 'tblTempVendorCDR_20' ) end [2025-02-22 22:54:17] Production.INFO: ProcessCDR(1,14535602,1,1,2) [2025-02-22 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535602', 'tblTempUsageDetail_20' ) start [2025-02-22 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535602', 'tblTempUsageDetail_20' ) end [2025-02-22 22:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:54:20] Production.INFO: ==16711== Releasing lock... [2025-02-22 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:54:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:55:05 [end_date_ymd] => 2025-02-22 22:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:55:05' and `end` < '2025-02-22 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-02-22 22:55:17] Production.INFO: count ==1377 [2025-02-22 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 19:55:05 - End Time 2025-02-22 22:55:05 [2025-02-22 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535607', 'tblTempUsageDetail_20' ) start [2025-02-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535607', 'tblTempUsageDetail_20' ) end [2025-02-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535607', 'tblTempVendorCDR_20' ) start [2025-02-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535607', 'tblTempVendorCDR_20' ) end [2025-02-22 22:55:18] Production.INFO: ProcessCDR(1,14535607,1,1,2) [2025-02-22 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535607', 'tblTempUsageDetail_20' ) start [2025-02-22 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535607', 'tblTempUsageDetail_20' ) end [2025-02-22 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:55:21] Production.INFO: ==16780== Releasing lock... [2025-02-22 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:56:05 [end_date_ymd] => 2025-02-22 22:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:56:05' and `end` < '2025-02-22 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-02-22 22:56:17] Production.INFO: count ==1377 [2025-02-22 22:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:56:05 - End Time 2025-02-22 22:56:05 [2025-02-22 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535612', 'tblTempUsageDetail_20' ) start [2025-02-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535612', 'tblTempUsageDetail_20' ) end [2025-02-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535612', 'tblTempVendorCDR_20' ) start [2025-02-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535612', 'tblTempVendorCDR_20' ) end [2025-02-22 22:56:17] Production.INFO: ProcessCDR(1,14535612,1,1,2) [2025-02-22 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535612', 'tblTempUsageDetail_20' ) start [2025-02-22 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535612', 'tblTempUsageDetail_20' ) end [2025-02-22 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:56:20] Production.INFO: ==16850== Releasing lock... [2025-02-22 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:56:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-22 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:57:05 [end_date_ymd] => 2025-02-22 22:57:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:57:05' and `end` < '2025-02-22 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-02-22 22:57:17] Production.INFO: count ==1380 [2025-02-22 22:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:57:05 - End Time 2025-02-22 22:57:05 [2025-02-22 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535617', 'tblTempUsageDetail_20' ) start [2025-02-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535617', 'tblTempUsageDetail_20' ) end [2025-02-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535617', 'tblTempVendorCDR_20' ) start [2025-02-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535617', 'tblTempVendorCDR_20' ) end [2025-02-22 22:57:17] Production.INFO: ProcessCDR(1,14535617,1,1,2) [2025-02-22 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535617', 'tblTempUsageDetail_20' ) start [2025-02-22 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535617', 'tblTempUsageDetail_20' ) end [2025-02-22 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:57:22] Production.INFO: ==16921== Releasing lock... [2025-02-22 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:58:05 [end_date_ymd] => 2025-02-22 22:58:05 [RateCDR] => 1 ) [2025-02-22 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 19:58:05' and `end` < '2025-02-22 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 22:58:17] Production.INFO: count ==1380 [2025-02-22 22:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:58:05 - End Time 2025-02-22 22:58:05 [2025-02-22 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535622', 'tblTempUsageDetail_20' ) start [2025-02-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535622', 'tblTempUsageDetail_20' ) end [2025-02-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535622', 'tblTempVendorCDR_20' ) start [2025-02-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535622', 'tblTempVendorCDR_20' ) end [2025-02-22 22:58:17] Production.INFO: ProcessCDR(1,14535622,1,1,2) [2025-02-22 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535622', 'tblTempUsageDetail_20' ) start [2025-02-22 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535622', 'tblTempUsageDetail_20' ) end [2025-02-22 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:58:20] Production.INFO: ==16993== Releasing lock... [2025-02-22 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:58:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 19:59:05 [end_date_ymd] => 2025-02-22 22:59:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 19:59:05' and `end` < '2025-02-22 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-02-22 22:59:17] Production.INFO: count ==1380 [2025-02-22 22:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 19:59:05 - End Time 2025-02-22 22:59:05 [2025-02-22 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535627', 'tblTempUsageDetail_20' ) start [2025-02-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535627', 'tblTempUsageDetail_20' ) end [2025-02-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535627', 'tblTempVendorCDR_20' ) start [2025-02-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535627', 'tblTempVendorCDR_20' ) end [2025-02-22 22:59:17] Production.INFO: ProcessCDR(1,14535627,1,1,2) [2025-02-22 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535627', 'tblTempUsageDetail_20' ) start [2025-02-22 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535627', 'tblTempUsageDetail_20' ) end [2025-02-22 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 22:59:20] Production.INFO: ==17070== Releasing lock... [2025-02-22 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 22:59:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:00:06 [end_date_ymd] => 2025-02-22 23:00:06 [RateCDR] => 1 ) [2025-02-22 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:00:06' and `end` < '2025-02-22 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:00:18] Production.INFO: count ==1382 [2025-02-22 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:00:06 - End Time 2025-02-22 23:00:06 [2025-02-22 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535633', 'tblTempUsageDetail_20' ) start [2025-02-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535633', 'tblTempUsageDetail_20' ) end [2025-02-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535633', 'tblTempVendorCDR_20' ) start [2025-02-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535633', 'tblTempVendorCDR_20' ) end [2025-02-22 23:00:18] Production.INFO: ProcessCDR(1,14535633,1,1,2) [2025-02-22 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535633', 'tblTempUsageDetail_20' ) start [2025-02-22 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535633', 'tblTempUsageDetail_20' ) end [2025-02-22 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:00:22] Production.INFO: ==17148== Releasing lock... [2025-02-22 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-22 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:01:05 [end_date_ymd] => 2025-02-22 23:01:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:01:05' and `end` < '2025-02-22 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-02-22 23:01:17] Production.INFO: count ==1323 [2025-02-22 23:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:01:05 - End Time 2025-02-22 23:01:05 [2025-02-22 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535638', 'tblTempUsageDetail_20' ) start [2025-02-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535638', 'tblTempUsageDetail_20' ) end [2025-02-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535638', 'tblTempVendorCDR_20' ) start [2025-02-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535638', 'tblTempVendorCDR_20' ) end [2025-02-22 23:01:17] Production.INFO: ProcessCDR(1,14535638,1,1,2) [2025-02-22 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535638', 'tblTempUsageDetail_20' ) start [2025-02-22 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535638', 'tblTempUsageDetail_20' ) end [2025-02-22 23:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:01:20] Production.INFO: ==17270== Releasing lock... [2025-02-22 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:01:20] Production.INFO: 38 MB #Memory Used# [2025-02-22 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:02:06 [end_date_ymd] => 2025-02-22 23:02:06 [RateCDR] => 1 ) [2025-02-22 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:02:06' and `end` < '2025-02-22 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:02:18] Production.INFO: count ==1304 [2025-02-22 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:02:06 - End Time 2025-02-22 23:02:06 [2025-02-22 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535643', 'tblTempUsageDetail_20' ) start [2025-02-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535643', 'tblTempUsageDetail_20' ) end [2025-02-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535643', 'tblTempVendorCDR_20' ) start [2025-02-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535643', 'tblTempVendorCDR_20' ) end [2025-02-22 23:02:18] Production.INFO: ProcessCDR(1,14535643,1,1,2) [2025-02-22 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535643', 'tblTempUsageDetail_20' ) start [2025-02-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535643', 'tblTempUsageDetail_20' ) end [2025-02-22 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:02:21] Production.INFO: ==17419== Releasing lock... [2025-02-22 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:02:21] Production.INFO: 38 MB #Memory Used# [2025-02-22 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:03:06 [end_date_ymd] => 2025-02-22 23:03:06 [RateCDR] => 1 ) [2025-02-22 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:03:06' and `end` < '2025-02-22 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:03:18] Production.INFO: count ==1277 [2025-02-22 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:03:06 - End Time 2025-02-22 23:03:06 [2025-02-22 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535648', 'tblTempUsageDetail_20' ) start [2025-02-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535648', 'tblTempUsageDetail_20' ) end [2025-02-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535648', 'tblTempVendorCDR_20' ) start [2025-02-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535648', 'tblTempVendorCDR_20' ) end [2025-02-22 23:03:18] Production.INFO: ProcessCDR(1,14535648,1,1,2) [2025-02-22 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535648', 'tblTempUsageDetail_20' ) start [2025-02-22 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535648', 'tblTempUsageDetail_20' ) end [2025-02-22 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:03:21] Production.INFO: ==17497== Releasing lock... [2025-02-22 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:03:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:04:06 [end_date_ymd] => 2025-02-22 23:04:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:04:06' and `end` < '2025-02-22 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-02-22 23:04:18] Production.INFO: count ==1259 [2025-02-22 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:04:06 - End Time 2025-02-22 23:04:06 [2025-02-22 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535653', 'tblTempUsageDetail_20' ) start [2025-02-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535653', 'tblTempUsageDetail_20' ) end [2025-02-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535653', 'tblTempVendorCDR_20' ) start [2025-02-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535653', 'tblTempVendorCDR_20' ) end [2025-02-22 23:04:18] Production.INFO: ProcessCDR(1,14535653,1,1,2) [2025-02-22 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535653', 'tblTempUsageDetail_20' ) start [2025-02-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535653', 'tblTempUsageDetail_20' ) end [2025-02-22 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:04:21] Production.INFO: ==17569== Releasing lock... [2025-02-22 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:04:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-22 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:05:05 [end_date_ymd] => 2025-02-22 23:05:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:05:05' and `end` < '2025-02-22 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-02-22 23:05:17] Production.INFO: count ==1242 [2025-02-22 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:05:05 - End Time 2025-02-22 23:05:05 [2025-02-22 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535658', 'tblTempUsageDetail_20' ) start [2025-02-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535658', 'tblTempUsageDetail_20' ) end [2025-02-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535658', 'tblTempVendorCDR_20' ) start [2025-02-22 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535658', 'tblTempVendorCDR_20' ) end [2025-02-22 23:05:17] Production.INFO: ProcessCDR(1,14535658,1,1,2) [2025-02-22 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535658', 'tblTempUsageDetail_20' ) start [2025-02-22 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535658', 'tblTempUsageDetail_20' ) end [2025-02-22 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:05:20] Production.INFO: ==17719== Releasing lock... [2025-02-22 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:05:20] Production.INFO: 38 MB #Memory Used# [2025-02-22 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:06:06 [end_date_ymd] => 2025-02-22 23:06:06 [RateCDR] => 1 ) [2025-02-22 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:06:06' and `end` < '2025-02-22 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:06:18] Production.INFO: count ==1225 [2025-02-22 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:06:06 - End Time 2025-02-22 23:06:06 [2025-02-22 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535663', 'tblTempUsageDetail_20' ) start [2025-02-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535663', 'tblTempUsageDetail_20' ) end [2025-02-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535663', 'tblTempVendorCDR_20' ) start [2025-02-22 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535663', 'tblTempVendorCDR_20' ) end [2025-02-22 23:06:18] Production.INFO: ProcessCDR(1,14535663,1,1,2) [2025-02-22 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535663', 'tblTempUsageDetail_20' ) start [2025-02-22 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535663', 'tblTempUsageDetail_20' ) end [2025-02-22 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:06:21] Production.INFO: ==17790== Releasing lock... [2025-02-22 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:06:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:07:05 [end_date_ymd] => 2025-02-22 23:07:05 [RateCDR] => 1 ) [2025-02-22 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:07:05' and `end` < '2025-02-22 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:07:17] Production.INFO: count ==1209 [2025-02-22 23:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:07:05 - End Time 2025-02-22 23:07:05 [2025-02-22 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535668', 'tblTempUsageDetail_20' ) start [2025-02-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535668', 'tblTempUsageDetail_20' ) end [2025-02-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535668', 'tblTempVendorCDR_20' ) start [2025-02-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535668', 'tblTempVendorCDR_20' ) end [2025-02-22 23:07:17] Production.INFO: ProcessCDR(1,14535668,1,1,2) [2025-02-22 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535668', 'tblTempUsageDetail_20' ) start [2025-02-22 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535668', 'tblTempUsageDetail_20' ) end [2025-02-22 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:07:22] Production.INFO: ==17860== Releasing lock... [2025-02-22 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:07:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-22 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:08:05 [end_date_ymd] => 2025-02-22 23:08:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:08:05' and `end` < '2025-02-22 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-02-22 23:08:17] Production.INFO: count ==1187 [2025-02-22 23:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:08:05 - End Time 2025-02-22 23:08:05 [2025-02-22 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535673', 'tblTempUsageDetail_20' ) start [2025-02-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535673', 'tblTempUsageDetail_20' ) end [2025-02-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535673', 'tblTempVendorCDR_20' ) start [2025-02-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535673', 'tblTempVendorCDR_20' ) end [2025-02-22 23:08:17] Production.INFO: ProcessCDR(1,14535673,1,1,2) [2025-02-22 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535673', 'tblTempUsageDetail_20' ) start [2025-02-22 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535673', 'tblTempUsageDetail_20' ) end [2025-02-22 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:08:20] Production.INFO: ==17969== Releasing lock... [2025-02-22 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:08:20] Production.INFO: 37 MB #Memory Used# [2025-02-22 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:09:05 [end_date_ymd] => 2025-02-22 23:09:05 [RateCDR] => 1 ) [2025-02-22 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:09:05' and `end` < '2025-02-22 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:09:17] Production.INFO: count ==1163 [2025-02-22 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:09:05 - End Time 2025-02-22 23:09:05 [2025-02-22 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535678', 'tblTempUsageDetail_20' ) start [2025-02-22 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535678', 'tblTempUsageDetail_20' ) end [2025-02-22 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535678', 'tblTempVendorCDR_20' ) start [2025-02-22 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535678', 'tblTempVendorCDR_20' ) end [2025-02-22 23:09:17] Production.INFO: ProcessCDR(1,14535678,1,1,2) [2025-02-22 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535678', 'tblTempUsageDetail_20' ) start [2025-02-22 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535678', 'tblTempUsageDetail_20' ) end [2025-02-22 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:09:20] Production.INFO: ==18080== Releasing lock... [2025-02-22 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:09:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:10:06 [end_date_ymd] => 2025-02-22 23:10:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:10:06' and `end` < '2025-02-22 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-02-22 23:10:18] Production.INFO: count ==1130 [2025-02-22 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-22 20:10:06 - End Time 2025-02-22 23:10:06 [2025-02-22 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535684', 'tblTempUsageDetail_20' ) start [2025-02-22 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535684', 'tblTempUsageDetail_20' ) end [2025-02-22 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535684', 'tblTempVendorCDR_20' ) start [2025-02-22 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535684', 'tblTempVendorCDR_20' ) end [2025-02-22 23:10:19] Production.INFO: ProcessCDR(1,14535684,1,1,2) [2025-02-22 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535684', 'tblTempUsageDetail_20' ) start [2025-02-22 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535684', 'tblTempUsageDetail_20' ) end [2025-02-22 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:10:22] Production.INFO: ==18153== Releasing lock... [2025-02-22 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:10:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-22 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:11:05 [end_date_ymd] => 2025-02-22 23:11:05 [RateCDR] => 1 ) [2025-02-22 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:11:05' and `end` < '2025-02-22 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:11:17] Production.INFO: count ==1083 [2025-02-22 23:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:11:05 - End Time 2025-02-22 23:11:05 [2025-02-22 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535689', 'tblTempUsageDetail_20' ) start [2025-02-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535689', 'tblTempUsageDetail_20' ) end [2025-02-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535689', 'tblTempVendorCDR_20' ) start [2025-02-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535689', 'tblTempVendorCDR_20' ) end [2025-02-22 23:11:17] Production.INFO: ProcessCDR(1,14535689,1,1,2) [2025-02-22 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535689', 'tblTempUsageDetail_20' ) start [2025-02-22 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535689', 'tblTempUsageDetail_20' ) end [2025-02-22 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:11:20] Production.INFO: ==18226== Releasing lock... [2025-02-22 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:11:20] Production.INFO: 36 MB #Memory Used# [2025-02-22 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:12:05 [end_date_ymd] => 2025-02-22 23:12:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:12:05' and `end` < '2025-02-22 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-02-22 23:12:17] Production.INFO: count ==1073 [2025-02-22 23:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:12:05 - End Time 2025-02-22 23:12:05 [2025-02-22 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535694', 'tblTempUsageDetail_20' ) start [2025-02-22 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535694', 'tblTempUsageDetail_20' ) end [2025-02-22 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535694', 'tblTempVendorCDR_20' ) start [2025-02-22 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535694', 'tblTempVendorCDR_20' ) end [2025-02-22 23:12:17] Production.INFO: ProcessCDR(1,14535694,1,1,2) [2025-02-22 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535694', 'tblTempUsageDetail_20' ) start [2025-02-22 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535694', 'tblTempUsageDetail_20' ) end [2025-02-22 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:12:21] Production.INFO: ==18375== Releasing lock... [2025-02-22 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:12:21] Production.INFO: 36 MB #Memory Used# [2025-02-22 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:13:05 [end_date_ymd] => 2025-02-22 23:13:05 [RateCDR] => 1 ) [2025-02-22 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:13:05' and `end` < '2025-02-22 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:13:17] Production.INFO: count ==1061 [2025-02-22 23:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:13:05 - End Time 2025-02-22 23:13:05 [2025-02-22 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535699', 'tblTempUsageDetail_20' ) start [2025-02-22 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535699', 'tblTempUsageDetail_20' ) end [2025-02-22 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535699', 'tblTempVendorCDR_20' ) start [2025-02-22 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535699', 'tblTempVendorCDR_20' ) end [2025-02-22 23:13:17] Production.INFO: ProcessCDR(1,14535699,1,1,2) [2025-02-22 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535699', 'tblTempUsageDetail_20' ) start [2025-02-22 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535699', 'tblTempUsageDetail_20' ) end [2025-02-22 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:13:20] Production.INFO: ==18445== Releasing lock... [2025-02-22 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:13:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:14:05 [end_date_ymd] => 2025-02-22 23:14:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:14:05' and `end` < '2025-02-22 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-02-22 23:14:17] Production.INFO: count ==1054 [2025-02-22 23:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:14:05 - End Time 2025-02-22 23:14:05 [2025-02-22 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535704', 'tblTempUsageDetail_20' ) start [2025-02-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535704', 'tblTempUsageDetail_20' ) end [2025-02-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535704', 'tblTempVendorCDR_20' ) start [2025-02-22 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535704', 'tblTempVendorCDR_20' ) end [2025-02-22 23:14:17] Production.INFO: ProcessCDR(1,14535704,1,1,2) [2025-02-22 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535704', 'tblTempUsageDetail_20' ) start [2025-02-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535704', 'tblTempUsageDetail_20' ) end [2025-02-22 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:14:21] Production.INFO: ==18518== Releasing lock... [2025-02-22 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:14:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-22 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:15:05 [end_date_ymd] => 2025-02-22 23:15:05 [RateCDR] => 1 ) [2025-02-22 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:15:05' and `end` < '2025-02-22 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:15:17] Production.INFO: count ==1050 [2025-02-22 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:15:05 - End Time 2025-02-22 23:15:05 [2025-02-22 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535709', 'tblTempUsageDetail_20' ) start [2025-02-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535709', 'tblTempUsageDetail_20' ) end [2025-02-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535709', 'tblTempVendorCDR_20' ) start [2025-02-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535709', 'tblTempVendorCDR_20' ) end [2025-02-22 23:15:17] Production.INFO: ProcessCDR(1,14535709,1,1,2) [2025-02-22 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535709', 'tblTempUsageDetail_20' ) start [2025-02-22 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535709', 'tblTempUsageDetail_20' ) end [2025-02-22 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:15:20] Production.INFO: ==18675== Releasing lock... [2025-02-22 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:15:20] Production.INFO: 36 MB #Memory Used# [2025-02-22 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:16:06 [end_date_ymd] => 2025-02-22 23:16:06 [RateCDR] => 1 ) [2025-02-22 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:16:06' and `end` < '2025-02-22 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:16:18] Production.INFO: count ==1045 [2025-02-22 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:16:06 - End Time 2025-02-22 23:16:06 [2025-02-22 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535714', 'tblTempUsageDetail_20' ) start [2025-02-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535714', 'tblTempUsageDetail_20' ) end [2025-02-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535714', 'tblTempVendorCDR_20' ) start [2025-02-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535714', 'tblTempVendorCDR_20' ) end [2025-02-22 23:16:18] Production.INFO: ProcessCDR(1,14535714,1,1,2) [2025-02-22 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535714', 'tblTempUsageDetail_20' ) start [2025-02-22 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535714', 'tblTempUsageDetail_20' ) end [2025-02-22 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:16:22] Production.INFO: ==18745== Releasing lock... [2025-02-22 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:17:05 [end_date_ymd] => 2025-02-22 23:17:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:17:05' and `end` < '2025-02-22 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-02-22 23:17:17] Production.INFO: count ==1036 [2025-02-22 23:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:17:05 - End Time 2025-02-22 23:17:05 [2025-02-22 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535719', 'tblTempUsageDetail_20' ) start [2025-02-22 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535719', 'tblTempUsageDetail_20' ) end [2025-02-22 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535719', 'tblTempVendorCDR_20' ) start [2025-02-22 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535719', 'tblTempVendorCDR_20' ) end [2025-02-22 23:17:17] Production.INFO: ProcessCDR(1,14535719,1,1,2) [2025-02-22 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535719', 'tblTempUsageDetail_20' ) start [2025-02-22 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535719', 'tblTempUsageDetail_20' ) end [2025-02-22 23:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:17:20] Production.INFO: ==18856== Releasing lock... [2025-02-22 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:17:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:18:05 [end_date_ymd] => 2025-02-22 23:18:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:18:05' and `end` < '2025-02-22 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-02-22 23:18:17] Production.INFO: count ==1035 [2025-02-22 23:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:18:05 - End Time 2025-02-22 23:18:05 [2025-02-22 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535724', 'tblTempUsageDetail_20' ) start [2025-02-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535724', 'tblTempUsageDetail_20' ) end [2025-02-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535724', 'tblTempVendorCDR_20' ) start [2025-02-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535724', 'tblTempVendorCDR_20' ) end [2025-02-22 23:18:17] Production.INFO: ProcessCDR(1,14535724,1,1,2) [2025-02-22 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535724', 'tblTempUsageDetail_20' ) start [2025-02-22 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535724', 'tblTempUsageDetail_20' ) end [2025-02-22 23:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:18:20] Production.INFO: ==18928== Releasing lock... [2025-02-22 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:18:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:19:05 [end_date_ymd] => 2025-02-22 23:19:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:19:05' and `end` < '2025-02-22 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-02-22 23:19:17] Production.INFO: count ==1027 [2025-02-22 23:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:19:05 - End Time 2025-02-22 23:19:05 [2025-02-22 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535729', 'tblTempUsageDetail_20' ) start [2025-02-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535729', 'tblTempUsageDetail_20' ) end [2025-02-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535729', 'tblTempVendorCDR_20' ) start [2025-02-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535729', 'tblTempVendorCDR_20' ) end [2025-02-22 23:19:17] Production.INFO: ProcessCDR(1,14535729,1,1,2) [2025-02-22 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535729', 'tblTempUsageDetail_20' ) start [2025-02-22 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535729', 'tblTempUsageDetail_20' ) end [2025-02-22 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:19:20] Production.INFO: ==19006== Releasing lock... [2025-02-22 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:19:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:20:06 [end_date_ymd] => 2025-02-22 23:20:06 [RateCDR] => 1 ) [2025-02-22 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:20:06' and `end` < '2025-02-22 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:20:18] Production.INFO: count ==1023 [2025-02-22 23:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:20:06 - End Time 2025-02-22 23:20:06 [2025-02-22 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535735', 'tblTempUsageDetail_20' ) start [2025-02-22 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535735', 'tblTempUsageDetail_20' ) end [2025-02-22 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535735', 'tblTempVendorCDR_20' ) start [2025-02-22 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535735', 'tblTempVendorCDR_20' ) end [2025-02-22 23:20:18] Production.INFO: ProcessCDR(1,14535735,1,1,2) [2025-02-22 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535735', 'tblTempUsageDetail_20' ) start [2025-02-22 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535735', 'tblTempUsageDetail_20' ) end [2025-02-22 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:20:22] Production.INFO: ==19079== Releasing lock... [2025-02-22 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-22 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:21:04 [end_date_ymd] => 2025-02-22 23:21:04 [RateCDR] => 1 ) [2025-02-22 23: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-02-22 20:21:04' and `end` < '2025-02-22 23: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-02-22 23:21:16] Production.INFO: count ==993 [2025-02-22 23:21:16] Production.ERROR: pbx CDR StartTime 2025-02-22 20:21:04 - End Time 2025-02-22 23:21:04 [2025-02-22 23:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535740', 'tblTempUsageDetail_20' ) start [2025-02-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535740', 'tblTempUsageDetail_20' ) end [2025-02-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535740', 'tblTempVendorCDR_20' ) start [2025-02-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535740', 'tblTempVendorCDR_20' ) end [2025-02-22 23:21:16] Production.INFO: ProcessCDR(1,14535740,1,1,2) [2025-02-22 23:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535740', 'tblTempUsageDetail_20' ) start [2025-02-22 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535740', 'tblTempUsageDetail_20' ) end [2025-02-22 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:21:20] Production.INFO: ==19155== Releasing lock... [2025-02-22 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:21:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:22:05 [end_date_ymd] => 2025-02-22 23:22:05 [RateCDR] => 1 ) [2025-02-22 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:22:05' and `end` < '2025-02-22 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:22:17] Production.INFO: count ==990 [2025-02-22 23:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:22:05 - End Time 2025-02-22 23:22:05 [2025-02-22 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535745', 'tblTempUsageDetail_20' ) start [2025-02-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535745', 'tblTempUsageDetail_20' ) end [2025-02-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535745', 'tblTempVendorCDR_20' ) start [2025-02-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535745', 'tblTempVendorCDR_20' ) end [2025-02-22 23:22:17] Production.INFO: ProcessCDR(1,14535745,1,1,2) [2025-02-22 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535745', 'tblTempUsageDetail_20' ) start [2025-02-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535745', 'tblTempUsageDetail_20' ) end [2025-02-22 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:22:21] Production.INFO: ==19225== Releasing lock... [2025-02-22 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:22:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:23:05 [end_date_ymd] => 2025-02-22 23:23:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:23:05' and `end` < '2025-02-22 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-02-22 23:23:17] Production.INFO: count ==990 [2025-02-22 23:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:23:05 - End Time 2025-02-22 23:23:05 [2025-02-22 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535750', 'tblTempUsageDetail_20' ) start [2025-02-22 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535750', 'tblTempUsageDetail_20' ) end [2025-02-22 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535750', 'tblTempVendorCDR_20' ) start [2025-02-22 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535750', 'tblTempVendorCDR_20' ) end [2025-02-22 23:23:17] Production.INFO: ProcessCDR(1,14535750,1,1,2) [2025-02-22 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535750', 'tblTempUsageDetail_20' ) start [2025-02-22 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535750', 'tblTempUsageDetail_20' ) end [2025-02-22 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:23:20] Production.INFO: ==19303== Releasing lock... [2025-02-22 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:23:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:24:05 [end_date_ymd] => 2025-02-22 23:24:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:24:05' and `end` < '2025-02-22 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-02-22 23:24:17] Production.INFO: count ==987 [2025-02-22 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:24:05 - End Time 2025-02-22 23:24:05 [2025-02-22 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535755', 'tblTempUsageDetail_20' ) start [2025-02-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535755', 'tblTempUsageDetail_20' ) end [2025-02-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535755', 'tblTempVendorCDR_20' ) start [2025-02-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535755', 'tblTempVendorCDR_20' ) end [2025-02-22 23:24:18] Production.INFO: ProcessCDR(1,14535755,1,1,2) [2025-02-22 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535755', 'tblTempUsageDetail_20' ) start [2025-02-22 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535755', 'tblTempUsageDetail_20' ) end [2025-02-22 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:24:21] Production.INFO: ==19375== Releasing lock... [2025-02-22 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:24:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:25:05 [end_date_ymd] => 2025-02-22 23:25:05 [RateCDR] => 1 ) [2025-02-22 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:25:05' and `end` < '2025-02-22 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:25:17] Production.INFO: count ==985 [2025-02-22 23:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:25:05 - End Time 2025-02-22 23:25:05 [2025-02-22 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535760', 'tblTempUsageDetail_20' ) start [2025-02-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535760', 'tblTempUsageDetail_20' ) end [2025-02-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535760', 'tblTempVendorCDR_20' ) start [2025-02-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535760', 'tblTempVendorCDR_20' ) end [2025-02-22 23:25:17] Production.INFO: ProcessCDR(1,14535760,1,1,2) [2025-02-22 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535760', 'tblTempUsageDetail_20' ) start [2025-02-22 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535760', 'tblTempUsageDetail_20' ) end [2025-02-22 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:25:20] Production.INFO: ==19446== Releasing lock... [2025-02-22 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:25:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:26:05 [end_date_ymd] => 2025-02-22 23:26:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:26:05' and `end` < '2025-02-22 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-02-22 23:26:17] Production.INFO: count ==984 [2025-02-22 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:26:05 - End Time 2025-02-22 23:26:05 [2025-02-22 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535765', 'tblTempUsageDetail_20' ) start [2025-02-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535765', 'tblTempUsageDetail_20' ) end [2025-02-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535765', 'tblTempVendorCDR_20' ) start [2025-02-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535765', 'tblTempVendorCDR_20' ) end [2025-02-22 23:26:17] Production.INFO: ProcessCDR(1,14535765,1,1,2) [2025-02-22 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535765', 'tblTempUsageDetail_20' ) start [2025-02-22 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535765', 'tblTempUsageDetail_20' ) end [2025-02-22 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:26:20] Production.INFO: ==19520== Releasing lock... [2025-02-22 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:26:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:27:05 [end_date_ymd] => 2025-02-22 23:27:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:27:05' and `end` < '2025-02-22 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-02-22 23:27:17] Production.INFO: count ==980 [2025-02-22 23:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:27:05 - End Time 2025-02-22 23:27:05 [2025-02-22 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535770', 'tblTempUsageDetail_20' ) start [2025-02-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535770', 'tblTempUsageDetail_20' ) end [2025-02-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535770', 'tblTempVendorCDR_20' ) start [2025-02-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535770', 'tblTempVendorCDR_20' ) end [2025-02-22 23:27:17] Production.INFO: ProcessCDR(1,14535770,1,1,2) [2025-02-22 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535770', 'tblTempUsageDetail_20' ) start [2025-02-22 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535770', 'tblTempUsageDetail_20' ) end [2025-02-22 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:27:20] Production.INFO: ==19590== Releasing lock... [2025-02-22 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:27:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:28:05 [end_date_ymd] => 2025-02-22 23:28:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:28:05' and `end` < '2025-02-22 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-02-22 23:28:17] Production.INFO: count ==980 [2025-02-22 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:28:05 - End Time 2025-02-22 23:28:05 [2025-02-22 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535775', 'tblTempUsageDetail_20' ) start [2025-02-22 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535775', 'tblTempUsageDetail_20' ) end [2025-02-22 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535775', 'tblTempVendorCDR_20' ) start [2025-02-22 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535775', 'tblTempVendorCDR_20' ) end [2025-02-22 23:28:17] Production.INFO: ProcessCDR(1,14535775,1,1,2) [2025-02-22 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535775', 'tblTempUsageDetail_20' ) start [2025-02-22 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535775', 'tblTempUsageDetail_20' ) end [2025-02-22 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:28:22] Production.INFO: ==19661== Releasing lock... [2025-02-22 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:28:22] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:29:05 [end_date_ymd] => 2025-02-22 23:29:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:29:05' and `end` < '2025-02-22 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-02-22 23:29:17] Production.INFO: count ==978 [2025-02-22 23:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:29:05 - End Time 2025-02-22 23:29:05 [2025-02-22 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535780', 'tblTempUsageDetail_20' ) start [2025-02-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535780', 'tblTempUsageDetail_20' ) end [2025-02-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535780', 'tblTempVendorCDR_20' ) start [2025-02-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535780', 'tblTempVendorCDR_20' ) end [2025-02-22 23:29:17] Production.INFO: ProcessCDR(1,14535780,1,1,2) [2025-02-22 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535780', 'tblTempUsageDetail_20' ) start [2025-02-22 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535780', 'tblTempUsageDetail_20' ) end [2025-02-22 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:29:20] Production.INFO: ==19732== Releasing lock... [2025-02-22 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:29:20] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:30:06 [end_date_ymd] => 2025-02-22 23:30:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:30:06' and `end` < '2025-02-22 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-02-22 23:30:18] Production.INFO: count ==978 [2025-02-22 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:30:06 - End Time 2025-02-22 23:30:06 [2025-02-22 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535786', 'tblTempUsageDetail_20' ) start [2025-02-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535786', 'tblTempUsageDetail_20' ) end [2025-02-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535786', 'tblTempVendorCDR_20' ) start [2025-02-22 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535786', 'tblTempVendorCDR_20' ) end [2025-02-22 23:30:18] Production.INFO: ProcessCDR(1,14535786,1,1,2) [2025-02-22 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535786', 'tblTempUsageDetail_20' ) start [2025-02-22 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535786', 'tblTempUsageDetail_20' ) end [2025-02-22 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:30:21] Production.INFO: ==19806== Releasing lock... [2025-02-22 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:30:21] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:31:05 [end_date_ymd] => 2025-02-22 23:31:05 [RateCDR] => 1 ) [2025-02-22 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:31:05' and `end` < '2025-02-22 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:31:17] Production.INFO: count ==968 [2025-02-22 23:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:31:05 - End Time 2025-02-22 23:31:05 [2025-02-22 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535791', 'tblTempUsageDetail_20' ) start [2025-02-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535791', 'tblTempUsageDetail_20' ) end [2025-02-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535791', 'tblTempVendorCDR_20' ) start [2025-02-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535791', 'tblTempVendorCDR_20' ) end [2025-02-22 23:31:17] Production.INFO: ProcessCDR(1,14535791,1,1,2) [2025-02-22 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535791', 'tblTempUsageDetail_20' ) start [2025-02-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535791', 'tblTempUsageDetail_20' ) end [2025-02-22 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:31:21] Production.INFO: ==19878== Releasing lock... [2025-02-22 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:32:04 [end_date_ymd] => 2025-02-22 23:32:04 [RateCDR] => 1 ) [2025-02-22 23: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-02-22 20:32:04' and `end` < '2025-02-22 23:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:32:16] Production.INFO: count ==968 [2025-02-22 23:32:16] Production.ERROR: pbx CDR StartTime 2025-02-22 20:32:04 - End Time 2025-02-22 23:32:04 [2025-02-22 23:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535796', 'tblTempUsageDetail_20' ) start [2025-02-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535796', 'tblTempUsageDetail_20' ) end [2025-02-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535796', 'tblTempVendorCDR_20' ) start [2025-02-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535796', 'tblTempVendorCDR_20' ) end [2025-02-22 23:32:16] Production.INFO: ProcessCDR(1,14535796,1,1,2) [2025-02-22 23:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535796', 'tblTempUsageDetail_20' ) start [2025-02-22 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535796', 'tblTempUsageDetail_20' ) end [2025-02-22 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:32:20] Production.INFO: ==19988== Releasing lock... [2025-02-22 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:32:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:33:05 [end_date_ymd] => 2025-02-22 23:33:05 [RateCDR] => 1 ) [2025-02-22 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:33:05' and `end` < '2025-02-22 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:33:17] Production.INFO: count ==964 [2025-02-22 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:33:05 - End Time 2025-02-22 23:33:05 [2025-02-22 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535801', 'tblTempUsageDetail_20' ) start [2025-02-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535801', 'tblTempUsageDetail_20' ) end [2025-02-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535801', 'tblTempVendorCDR_20' ) start [2025-02-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535801', 'tblTempVendorCDR_20' ) end [2025-02-22 23:33:17] Production.INFO: ProcessCDR(1,14535801,1,1,2) [2025-02-22 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535801', 'tblTempUsageDetail_20' ) start [2025-02-22 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535801', 'tblTempUsageDetail_20' ) end [2025-02-22 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:33:22] Production.INFO: ==20063== Releasing lock... [2025-02-22 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:33:22] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:34:05 [end_date_ymd] => 2025-02-22 23:34:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:34:05' and `end` < '2025-02-22 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-02-22 23:34:17] Production.INFO: count ==965 [2025-02-22 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:34:05 - End Time 2025-02-22 23:34:05 [2025-02-22 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535806', 'tblTempUsageDetail_20' ) start [2025-02-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535806', 'tblTempUsageDetail_20' ) end [2025-02-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535806', 'tblTempVendorCDR_20' ) start [2025-02-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535806', 'tblTempVendorCDR_20' ) end [2025-02-22 23:34:17] Production.INFO: ProcessCDR(1,14535806,1,1,2) [2025-02-22 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535806', 'tblTempUsageDetail_20' ) start [2025-02-22 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535806', 'tblTempUsageDetail_20' ) end [2025-02-22 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:34:21] Production.INFO: ==20138== Releasing lock... [2025-02-22 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:34:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:35:05 [end_date_ymd] => 2025-02-22 23:35:05 [RateCDR] => 1 ) [2025-02-22 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:35:05' and `end` < '2025-02-22 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:35:17] Production.INFO: count ==965 [2025-02-22 23:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:35:05 - End Time 2025-02-22 23:35:05 [2025-02-22 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535811', 'tblTempUsageDetail_20' ) start [2025-02-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535811', 'tblTempUsageDetail_20' ) end [2025-02-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535811', 'tblTempVendorCDR_20' ) start [2025-02-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535811', 'tblTempVendorCDR_20' ) end [2025-02-22 23:35:17] Production.INFO: ProcessCDR(1,14535811,1,1,2) [2025-02-22 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535811', 'tblTempUsageDetail_20' ) start [2025-02-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535811', 'tblTempUsageDetail_20' ) end [2025-02-22 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:35:22] Production.INFO: ==20208== Releasing lock... [2025-02-22 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:35:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:36:05 [end_date_ymd] => 2025-02-22 23:36:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:36:05' and `end` < '2025-02-22 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-02-22 23:36:17] Production.INFO: count ==965 [2025-02-22 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:36:05 - End Time 2025-02-22 23:36:05 [2025-02-22 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535816', 'tblTempUsageDetail_20' ) start [2025-02-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535816', 'tblTempUsageDetail_20' ) end [2025-02-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535816', 'tblTempVendorCDR_20' ) start [2025-02-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535816', 'tblTempVendorCDR_20' ) end [2025-02-22 23:36:17] Production.INFO: ProcessCDR(1,14535816,1,1,2) [2025-02-22 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535816', 'tblTempUsageDetail_20' ) start [2025-02-22 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535816', 'tblTempUsageDetail_20' ) end [2025-02-22 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:36:20] Production.INFO: ==20282== Releasing lock... [2025-02-22 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:36:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:37:05 [end_date_ymd] => 2025-02-22 23:37:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:37:05' and `end` < '2025-02-22 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-02-22 23:37:17] Production.INFO: count ==965 [2025-02-22 23:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:37:05 - End Time 2025-02-22 23:37:05 [2025-02-22 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535821', 'tblTempUsageDetail_20' ) start [2025-02-22 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535821', 'tblTempUsageDetail_20' ) end [2025-02-22 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535821', 'tblTempVendorCDR_20' ) start [2025-02-22 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535821', 'tblTempVendorCDR_20' ) end [2025-02-22 23:37:17] Production.INFO: ProcessCDR(1,14535821,1,1,2) [2025-02-22 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535821', 'tblTempUsageDetail_20' ) start [2025-02-22 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535821', 'tblTempUsageDetail_20' ) end [2025-02-22 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:37:20] Production.INFO: ==20354== Releasing lock... [2025-02-22 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:37:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:38:05 [end_date_ymd] => 2025-02-22 23:38:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:38:05' and `end` < '2025-02-22 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-02-22 23:38:17] Production.INFO: count ==965 [2025-02-22 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:38:05 - End Time 2025-02-22 23:38:05 [2025-02-22 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535826', 'tblTempUsageDetail_20' ) start [2025-02-22 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535826', 'tblTempUsageDetail_20' ) end [2025-02-22 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535826', 'tblTempVendorCDR_20' ) start [2025-02-22 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535826', 'tblTempVendorCDR_20' ) end [2025-02-22 23:38:17] Production.INFO: ProcessCDR(1,14535826,1,1,2) [2025-02-22 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535826', 'tblTempUsageDetail_20' ) start [2025-02-22 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535826', 'tblTempUsageDetail_20' ) end [2025-02-22 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:38:20] Production.INFO: ==20428== Releasing lock... [2025-02-22 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:38:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:39:05 [end_date_ymd] => 2025-02-22 23:39:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:39:05' and `end` < '2025-02-22 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-02-22 23:39:17] Production.INFO: count ==963 [2025-02-22 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:39:05 - End Time 2025-02-22 23:39:05 [2025-02-22 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535831', 'tblTempUsageDetail_20' ) start [2025-02-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535831', 'tblTempUsageDetail_20' ) end [2025-02-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535831', 'tblTempVendorCDR_20' ) start [2025-02-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535831', 'tblTempVendorCDR_20' ) end [2025-02-22 23:39:17] Production.INFO: ProcessCDR(1,14535831,1,1,2) [2025-02-22 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535831', 'tblTempUsageDetail_20' ) start [2025-02-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535831', 'tblTempUsageDetail_20' ) end [2025-02-22 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:39:21] Production.INFO: ==20501== Releasing lock... [2025-02-22 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:40:06 [end_date_ymd] => 2025-02-22 23:40:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:40:06' and `end` < '2025-02-22 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-02-22 23:40:18] Production.INFO: count ==964 [2025-02-22 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:40:06 - End Time 2025-02-22 23:40:06 [2025-02-22 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535837', 'tblTempUsageDetail_20' ) start [2025-02-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535837', 'tblTempUsageDetail_20' ) end [2025-02-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535837', 'tblTempVendorCDR_20' ) start [2025-02-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535837', 'tblTempVendorCDR_20' ) end [2025-02-22 23:40:18] Production.INFO: ProcessCDR(1,14535837,1,1,2) [2025-02-22 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535837', 'tblTempUsageDetail_20' ) start [2025-02-22 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535837', 'tblTempUsageDetail_20' ) end [2025-02-22 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:40:21] Production.INFO: ==20575== Releasing lock... [2025-02-22 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:40:21] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:41:05 [end_date_ymd] => 2025-02-22 23:41:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:41:05' and `end` < '2025-02-22 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-02-22 23:41:17] Production.INFO: count ==980 [2025-02-22 23:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:41:05 - End Time 2025-02-22 23:41:05 [2025-02-22 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535842', 'tblTempUsageDetail_20' ) start [2025-02-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535842', 'tblTempUsageDetail_20' ) end [2025-02-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535842', 'tblTempVendorCDR_20' ) start [2025-02-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535842', 'tblTempVendorCDR_20' ) end [2025-02-22 23:41:17] Production.INFO: ProcessCDR(1,14535842,1,1,2) [2025-02-22 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535842', 'tblTempUsageDetail_20' ) start [2025-02-22 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535842', 'tblTempUsageDetail_20' ) end [2025-02-22 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:41:20] Production.INFO: ==20650== Releasing lock... [2025-02-22 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:41:20] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:42:06 [end_date_ymd] => 2025-02-22 23:42:06 [RateCDR] => 1 ) [2025-02-22 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:42:06' and `end` < '2025-02-22 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:42:18] Production.INFO: count ==980 [2025-02-22 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:42:06 - End Time 2025-02-22 23:42:06 [2025-02-22 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535847', 'tblTempUsageDetail_20' ) start [2025-02-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535847', 'tblTempUsageDetail_20' ) end [2025-02-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535847', 'tblTempVendorCDR_20' ) start [2025-02-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535847', 'tblTempVendorCDR_20' ) end [2025-02-22 23:42:18] Production.INFO: ProcessCDR(1,14535847,1,1,2) [2025-02-22 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535847', 'tblTempUsageDetail_20' ) start [2025-02-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535847', 'tblTempUsageDetail_20' ) end [2025-02-22 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:42:21] Production.INFO: ==20731== Releasing lock... [2025-02-22 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:42:21] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:43:05 [end_date_ymd] => 2025-02-22 23:43:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:43:05' and `end` < '2025-02-22 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-02-22 23:43:17] Production.INFO: count ==985 [2025-02-22 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:43:05 - End Time 2025-02-22 23:43:05 [2025-02-22 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535852', 'tblTempUsageDetail_20' ) start [2025-02-22 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535852', 'tblTempUsageDetail_20' ) end [2025-02-22 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535852', 'tblTempVendorCDR_20' ) start [2025-02-22 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535852', 'tblTempVendorCDR_20' ) end [2025-02-22 23:43:17] Production.INFO: ProcessCDR(1,14535852,1,1,2) [2025-02-22 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535852', 'tblTempUsageDetail_20' ) start [2025-02-22 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535852', 'tblTempUsageDetail_20' ) end [2025-02-22 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:43:22] Production.INFO: ==20802== Releasing lock... [2025-02-22 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:43:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:44:05 [end_date_ymd] => 2025-02-22 23:44:05 [RateCDR] => 1 ) [2025-02-22 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:44:05' and `end` < '2025-02-22 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:44:17] Production.INFO: count ==987 [2025-02-22 23:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:44:05 - End Time 2025-02-22 23:44:05 [2025-02-22 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535857', 'tblTempUsageDetail_20' ) start [2025-02-22 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535857', 'tblTempUsageDetail_20' ) end [2025-02-22 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535857', 'tblTempVendorCDR_20' ) start [2025-02-22 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535857', 'tblTempVendorCDR_20' ) end [2025-02-22 23:44:17] Production.INFO: ProcessCDR(1,14535857,1,1,2) [2025-02-22 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535857', 'tblTempUsageDetail_20' ) start [2025-02-22 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535857', 'tblTempUsageDetail_20' ) end [2025-02-22 23:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:44:20] Production.INFO: ==20875== Releasing lock... [2025-02-22 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:44:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:45:05 [end_date_ymd] => 2025-02-22 23:45:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:45:05' and `end` < '2025-02-22 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-02-22 23:45:17] Production.INFO: count ==986 [2025-02-22 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:45:05 - End Time 2025-02-22 23:45:05 [2025-02-22 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535862', 'tblTempUsageDetail_20' ) start [2025-02-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535862', 'tblTempUsageDetail_20' ) end [2025-02-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535862', 'tblTempVendorCDR_20' ) start [2025-02-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535862', 'tblTempVendorCDR_20' ) end [2025-02-22 23:45:17] Production.INFO: ProcessCDR(1,14535862,1,1,2) [2025-02-22 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535862', 'tblTempUsageDetail_20' ) start [2025-02-22 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535862', 'tblTempUsageDetail_20' ) end [2025-02-22 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:45:20] Production.INFO: ==20948== Releasing lock... [2025-02-22 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:45:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:46:05 [end_date_ymd] => 2025-02-22 23:46:05 [RateCDR] => 1 ) [2025-02-22 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:46:05' and `end` < '2025-02-22 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:46:17] Production.INFO: count ==992 [2025-02-22 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:46:05 - End Time 2025-02-22 23:46:05 [2025-02-22 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535867', 'tblTempUsageDetail_20' ) start [2025-02-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535867', 'tblTempUsageDetail_20' ) end [2025-02-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535867', 'tblTempVendorCDR_20' ) start [2025-02-22 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535867', 'tblTempVendorCDR_20' ) end [2025-02-22 23:46:17] Production.INFO: ProcessCDR(1,14535867,1,1,2) [2025-02-22 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535867', 'tblTempUsageDetail_20' ) start [2025-02-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535867', 'tblTempUsageDetail_20' ) end [2025-02-22 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:46:21] Production.INFO: ==21021== Releasing lock... [2025-02-22 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:46:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:47:05 [end_date_ymd] => 2025-02-22 23:47:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:47:05' and `end` < '2025-02-22 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-02-22 23:47:17] Production.INFO: count ==989 [2025-02-22 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:47:05 - End Time 2025-02-22 23:47:05 [2025-02-22 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535872', 'tblTempUsageDetail_20' ) start [2025-02-22 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535872', 'tblTempUsageDetail_20' ) end [2025-02-22 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535872', 'tblTempVendorCDR_20' ) start [2025-02-22 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535872', 'tblTempVendorCDR_20' ) end [2025-02-22 23:47:17] Production.INFO: ProcessCDR(1,14535872,1,1,2) [2025-02-22 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535872', 'tblTempUsageDetail_20' ) start [2025-02-22 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535872', 'tblTempUsageDetail_20' ) end [2025-02-22 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:47:20] Production.INFO: ==21094== Releasing lock... [2025-02-22 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:47:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:48:05 [end_date_ymd] => 2025-02-22 23:48:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:48:05' and `end` < '2025-02-22 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-02-22 23:48:17] Production.INFO: count ==988 [2025-02-22 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:48:05 - End Time 2025-02-22 23:48:05 [2025-02-22 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535877', 'tblTempUsageDetail_20' ) start [2025-02-22 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535877', 'tblTempUsageDetail_20' ) end [2025-02-22 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535877', 'tblTempVendorCDR_20' ) start [2025-02-22 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535877', 'tblTempVendorCDR_20' ) end [2025-02-22 23:48:17] Production.INFO: ProcessCDR(1,14535877,1,1,2) [2025-02-22 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535877', 'tblTempUsageDetail_20' ) start [2025-02-22 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535877', 'tblTempUsageDetail_20' ) end [2025-02-22 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:48:20] Production.INFO: ==21211== Releasing lock... [2025-02-22 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:48:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:49:05 [end_date_ymd] => 2025-02-22 23:49:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:49:05' and `end` < '2025-02-22 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-02-22 23:49:17] Production.INFO: count ==981 [2025-02-22 23:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:49:05 - End Time 2025-02-22 23:49:05 [2025-02-22 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535882', 'tblTempUsageDetail_20' ) start [2025-02-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535882', 'tblTempUsageDetail_20' ) end [2025-02-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535882', 'tblTempVendorCDR_20' ) start [2025-02-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535882', 'tblTempVendorCDR_20' ) end [2025-02-22 23:49:17] Production.INFO: ProcessCDR(1,14535882,1,1,2) [2025-02-22 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535882', 'tblTempUsageDetail_20' ) start [2025-02-22 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535882', 'tblTempUsageDetail_20' ) end [2025-02-22 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:49:20] Production.INFO: ==21286== Releasing lock... [2025-02-22 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:49:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-22 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:50:06 [end_date_ymd] => 2025-02-22 23:50:06 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:50:06' and `end` < '2025-02-22 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-02-22 23:50:18] Production.INFO: count ==973 [2025-02-22 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:50:06 - End Time 2025-02-22 23:50:06 [2025-02-22 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535888', 'tblTempUsageDetail_20' ) start [2025-02-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535888', 'tblTempUsageDetail_20' ) end [2025-02-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535888', 'tblTempVendorCDR_20' ) start [2025-02-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535888', 'tblTempVendorCDR_20' ) end [2025-02-22 23:50:18] Production.INFO: ProcessCDR(1,14535888,1,1,2) [2025-02-22 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535888', 'tblTempUsageDetail_20' ) start [2025-02-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535888', 'tblTempUsageDetail_20' ) end [2025-02-22 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:50:22] Production.INFO: ==21361== Releasing lock... [2025-02-22 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:50:22] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:51:05 [end_date_ymd] => 2025-02-22 23:51:05 [RateCDR] => 1 ) [2025-02-22 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:51:05' and `end` < '2025-02-22 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:51:17] Production.INFO: count ==952 [2025-02-22 23:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:51:05 - End Time 2025-02-22 23:51:05 [2025-02-22 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535893', 'tblTempUsageDetail_20' ) start [2025-02-22 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535893', 'tblTempUsageDetail_20' ) end [2025-02-22 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535893', 'tblTempVendorCDR_20' ) start [2025-02-22 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535893', 'tblTempVendorCDR_20' ) end [2025-02-22 23:51:17] Production.INFO: ProcessCDR(1,14535893,1,1,2) [2025-02-22 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535893', 'tblTempUsageDetail_20' ) start [2025-02-22 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535893', 'tblTempUsageDetail_20' ) end [2025-02-22 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:51:20] Production.INFO: ==21436== Releasing lock... [2025-02-22 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:51:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:52:06 [end_date_ymd] => 2025-02-22 23:52:06 [RateCDR] => 1 ) [2025-02-22 23: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-02-22 20:52:06' and `end` < '2025-02-22 23: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-02-22 23:52:18] Production.INFO: count ==944 [2025-02-22 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:52:06 - End Time 2025-02-22 23:52:06 [2025-02-22 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535898', 'tblTempUsageDetail_20' ) start [2025-02-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535898', 'tblTempUsageDetail_20' ) end [2025-02-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535898', 'tblTempVendorCDR_20' ) start [2025-02-22 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535898', 'tblTempVendorCDR_20' ) end [2025-02-22 23:52:18] Production.INFO: ProcessCDR(1,14535898,1,1,2) [2025-02-22 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535898', 'tblTempUsageDetail_20' ) start [2025-02-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535898', 'tblTempUsageDetail_20' ) end [2025-02-22 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:52:22] Production.INFO: ==21508== Releasing lock... [2025-02-22 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:52:22] Production.INFO: 35 MB #Memory Used# [2025-02-22 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:53:04 [end_date_ymd] => 2025-02-22 23:53:04 [RateCDR] => 1 ) [2025-02-22 23: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-02-22 20:53:04' and `end` < '2025-02-22 23: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-02-22 23:53:16] Production.INFO: count ==934 [2025-02-22 23:53:16] Production.ERROR: pbx CDR StartTime 2025-02-22 20:53:04 - End Time 2025-02-22 23:53:04 [2025-02-22 23:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535903', 'tblTempUsageDetail_20' ) start [2025-02-22 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535903', 'tblTempUsageDetail_20' ) end [2025-02-22 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535903', 'tblTempVendorCDR_20' ) start [2025-02-22 23:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535903', 'tblTempVendorCDR_20' ) end [2025-02-22 23:53:16] Production.INFO: ProcessCDR(1,14535903,1,1,2) [2025-02-22 23:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535903', 'tblTempUsageDetail_20' ) start [2025-02-22 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535903', 'tblTempUsageDetail_20' ) end [2025-02-22 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:53:20] Production.INFO: ==21581== Releasing lock... [2025-02-22 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:53:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:54:05 [end_date_ymd] => 2025-02-22 23:54:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:54:05' and `end` < '2025-02-22 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-02-22 23:54:17] Production.INFO: count ==931 [2025-02-22 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:54:05 - End Time 2025-02-22 23:54:05 [2025-02-22 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535908', 'tblTempUsageDetail_20' ) start [2025-02-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535908', 'tblTempUsageDetail_20' ) end [2025-02-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535908', 'tblTempVendorCDR_20' ) start [2025-02-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535908', 'tblTempVendorCDR_20' ) end [2025-02-22 23:54:17] Production.INFO: ProcessCDR(1,14535908,1,1,2) [2025-02-22 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535908', 'tblTempUsageDetail_20' ) start [2025-02-22 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535908', 'tblTempUsageDetail_20' ) end [2025-02-22 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:54:20] Production.INFO: ==21654== Releasing lock... [2025-02-22 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:54:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-22 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:55:05 [end_date_ymd] => 2025-02-22 23:55:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:55:05' and `end` < '2025-02-22 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-02-22 23:55:17] Production.INFO: count ==922 [2025-02-22 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:55:05 - End Time 2025-02-22 23:55:05 [2025-02-22 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535913', 'tblTempUsageDetail_20' ) start [2025-02-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535913', 'tblTempUsageDetail_20' ) end [2025-02-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535913', 'tblTempVendorCDR_20' ) start [2025-02-22 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535913', 'tblTempVendorCDR_20' ) end [2025-02-22 23:55:18] Production.INFO: ProcessCDR(1,14535913,1,1,2) [2025-02-22 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535913', 'tblTempUsageDetail_20' ) start [2025-02-22 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535913', 'tblTempUsageDetail_20' ) end [2025-02-22 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:55:22] Production.INFO: ==21728== Releasing lock... [2025-02-22 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:55:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:56:05 [end_date_ymd] => 2025-02-22 23:56:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:56:05' and `end` < '2025-02-22 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-02-22 23:56:17] Production.INFO: count ==907 [2025-02-22 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:56:05 - End Time 2025-02-22 23:56:05 [2025-02-22 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535918', 'tblTempUsageDetail_20' ) start [2025-02-22 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535918', 'tblTempUsageDetail_20' ) end [2025-02-22 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535918', 'tblTempVendorCDR_20' ) start [2025-02-22 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535918', 'tblTempVendorCDR_20' ) end [2025-02-22 23:56:17] Production.INFO: ProcessCDR(1,14535918,1,1,2) [2025-02-22 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535918', 'tblTempUsageDetail_20' ) start [2025-02-22 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535918', 'tblTempUsageDetail_20' ) end [2025-02-22 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:56:20] Production.INFO: ==21800== Releasing lock... [2025-02-22 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:56:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:57:05 [end_date_ymd] => 2025-02-22 23:57:05 [RateCDR] => 1 ) [2025-02-22 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 20:57:05' and `end` < '2025-02-22 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-22 23:57:17] Production.INFO: count ==903 [2025-02-22 23:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:57:05 - End Time 2025-02-22 23:57:05 [2025-02-22 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535923', 'tblTempUsageDetail_20' ) start [2025-02-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535923', 'tblTempUsageDetail_20' ) end [2025-02-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535923', 'tblTempVendorCDR_20' ) start [2025-02-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535923', 'tblTempVendorCDR_20' ) end [2025-02-22 23:57:17] Production.INFO: ProcessCDR(1,14535923,1,1,2) [2025-02-22 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535923', 'tblTempUsageDetail_20' ) start [2025-02-22 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535923', 'tblTempUsageDetail_20' ) end [2025-02-22 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:57:20] Production.INFO: ==21871== Releasing lock... [2025-02-22 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:57:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-22 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:58:05 [end_date_ymd] => 2025-02-22 23:58:05 [RateCDR] => 1 ) [2025-02-22 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-02-22 20:58:05' and `end` < '2025-02-22 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-02-22 23:58:17] Production.INFO: count ==900 [2025-02-22 23:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 20:58:05 - End Time 2025-02-22 23:58:05 [2025-02-22 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535928', 'tblTempUsageDetail_20' ) start [2025-02-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535928', 'tblTempUsageDetail_20' ) end [2025-02-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535928', 'tblTempVendorCDR_20' ) start [2025-02-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535928', 'tblTempVendorCDR_20' ) end [2025-02-22 23:58:17] Production.INFO: ProcessCDR(1,14535928,1,1,2) [2025-02-22 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535928', 'tblTempUsageDetail_20' ) start [2025-02-22 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535928', 'tblTempUsageDetail_20' ) end [2025-02-22 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:58:20] Production.INFO: ==21944== Releasing lock... [2025-02-22 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:58:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-22 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 20:59:06 [end_date_ymd] => 2025-02-22 23:59:06 [RateCDR] => 1 ) [2025-02-22 23: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-02-22 20:59:06' and `end` < '2025-02-22 23: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-02-22 23:59:18] Production.INFO: count ==900 [2025-02-22 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 20:59:06 - End Time 2025-02-22 23:59:06 [2025-02-22 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535933', 'tblTempUsageDetail_20' ) start [2025-02-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535933', 'tblTempUsageDetail_20' ) end [2025-02-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535933', 'tblTempVendorCDR_20' ) start [2025-02-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535933', 'tblTempVendorCDR_20' ) end [2025-02-22 23:59:18] Production.INFO: ProcessCDR(1,14535933,1,1,2) [2025-02-22 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-22 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-22 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535933', 'tblTempUsageDetail_20' ) start [2025-02-22 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535933', 'tblTempUsageDetail_20' ) end [2025-02-22 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-22 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-22 23:59:21] Production.INFO: ==22019== Releasing lock... [2025-02-22 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-22 23:59:21] Production.INFO: 34.5 MB #Memory Used#